Meetanshi Docs Magento 2 Smart Categories

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

  1. Access your server CLI via SSH and navigate to your Magento root directory.
  2. Run the Composer command to fetch the extension:
    composer require meetanshi/magento-2-smart-categories
    
  3. Enable the extension module:
    php bin/magento module:enable Meetanshi_SmartCategories
    
  4. Run the upgrade command:
    php bin/magento setup:upgrade
    
  5. 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
      
  6. Flush the Magento cache:
    php bin/magento cache:flush
    

Direct ZIP / Meetanshi Customers Method

  1. Download the extension ZIP file from your Meetanshi account area.
  2. Extract the archive contents and upload them to your server under <Magento_Root>/app/code/Meetanshi/SmartCategories/.
  3. 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
    

Smart Categories for Magento 2 automates product category management by dynamically assigning products based on custom conditions and product attributes.

Smart Categories Overview

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).

Smart Category Configuration

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.

Preview & Overrides

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.

Smart Category Activity Log

Updated: Jul 21, 2026Top ↑