Type
magento2-module
Rebuild Magento 2 Visual Merchandiser categories using the CLI tool
magento2-module
MIT
None
None
None
None
None
Rebuild Magento 2 Visual Merchandiser categories using the CLI tool or a scheduled task.
:warning: NOTE: This module is not fully tested, please make sure to test this on a non-production system first, and use at your own risk!
app/code
directory of your Magento 2 EE projectphp bin/magento setup:upgrade
command to enable the modulecomposer require dakzilla/magento2-visual-merchandiser-rebuild
php bin/magento setup:upgrade
bin/magento catalog:visual-merchandiser:rebuild
bin/magento catalog:visual-merchandiser:show
The above command should display a nifty table like this one
In Magento Admin, in the Visual Merchandiser options, you can set a cron expression to be used to rebuild the smart categories on schedule. The example below will execute the job every day at 1:45 AM. If you're not sure, use Crontab Generator to create a valid cron expression.
This module was tested on Magento 2 Enterprise Edition versions 2.1.5 to 2.1.7. Compatibility with older versions is not guaranteed, but should not be an issue anyhow.
catalog:visual-merchandiser:show
command to display a useful information table about your smart categories