Smart Categories for Magento 2 - User Guide
Extension Installation
Prerequisites
- Magento 2.3.x – 2.4.x installed and functioning.
- PHP version compatible with your Magento release.
Magento Marketplace Customers Method
- Access your server CLI via SSH and navigate to your Magento root directory.
- Run the Composer command to fetch the extension:
composer require meetanshi/magento-2-smart-categories - Enable the extension module:
php bin/magento module:enable Meetanshi_SmartCategories - Run the upgrade command:
php bin/magento setup:upgrade - Deploy static content based on your Magento version:
- For Magento 2.0.x – 2.1.x:
php bin/magento setup:static-content:deploy - For Magento 2.2.x & above:
php bin/magento setup:static-content:deploy -f
- For Magento 2.0.x – 2.1.x:
- Flush the Magento cache:
php bin/magento cache:flush
Direct ZIP / Meetanshi Customers Method
- Download the extension ZIP file from your Meetanshi account area.
- Extract the archive contents and upload them to your server under
<Magento_Root>/app/code/Meetanshi/SmartCategories/. - Connect to your Magento server via SSH and execute the following commands:
php bin/magento setup:upgrade- For Magento 2.0.x – 2.1.x:
php bin/magento setup:static-content:deploy - For Magento 2.2.x & above:
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush - For Magento 2.0.x – 2.1.x:
Smart Categories for Magento 2 automates product category management by dynamically assigning products based on custom conditions and product attributes.

Category Rule Settings
Navigate to Catalog > Categories in your Magento Admin Panel, select any category from the category tree, and open the Smart Category Rules tab.
- Enable Smart Category: Select Yes to enable dynamic rule-based product assignment for this category, or No to revert to manual category management.
- Conditions: Define rules using product attributes, stock status, pricing, or custom category rules (leave blank to match all products).

Preview Products & Manual Overrides
The Smart Category Rules tab provides real-time previewing and granular product overrides.
- Preview Products: Click the Preview Products button to inspect a live list of matching products before saving the category rules.
- Pin Product: Enter a Product ID and click Add Override with type Pinned to force a product to stay in this category regardless of rule updates.
- Exclude Product: Enter a Product ID and click Add Override with type Excluded to keep a product out of this category even if it meets rule conditions.

Smart Category Activity Log
View background execution history directly under the Activity Log section in the category edit screen.
- Trigger Source: Identifies whether products were reassigned by cron schedule, manual admin action, category save, or product save events.
- Products Added / Removed: Displays exact counts of products added to or removed from the category during each execution.
- Execution Time: Tracks the duration of rule processing in milliseconds.
