Hello,
This script removes all categories without associated products.
Built for an integrated store with Bigbuy, where this supplier creates categories without products at each request.
Running in Prestashop 1.7.7 and 1.7.8
Instalation:
1 - unzip
2 - upload the file remove-empty-categories.php to your prestashop root
3 - run the script from yourdomain.com/remove-empty-categories.php
Note: If you have you store integrated with other platform or supplier erp, you can add a cron job to run the url.
This script removes all categories without associated products.
Built for an integrated store with Bigbuy, where this supplier creates categories without products at each request.
Running in Prestashop 1.7.7 and 1.7.8
Instalation:
1 - unzip
2 - upload the file remove-empty-categories.php to your prestashop root
3 - run the script from yourdomain.com/remove-empty-categories.php
Note: If you have you store integrated with other platform or supplier erp, you can add a cron job to run the url.