Command line interface
This page contains console commands used when operating with the Dynamic Categories extension.
Dynamic category reindex
The following command reindexes all dynamic categories in the store:
php -f bin/magento mirasvit:dynamic-category:reindex
Argument | Description |
---|---|
[category_ID] | To reindex a certain category, add its ID to the end of the command. |
Product validation
This command validates whether the product satisfies conditions of dynamic category:
php -f bin/magento mirasvit:dynamic-category:validate
Argument | Description |
---|---|
[product_ID] | Mandatory argument. Validates whether this product satisfies conditions of any dynamic category; must be added as the first argument to the end of the command. |
[product_ID] [category_ID] | Validates whether this product satisfies conditions of specified category. Dynamic category ID must be added as the second argument using space after the first argument. |