Module for Magento 2 responsible for automatically assign products with bestseller attribute to bestseller category.
PHP >= 8.1 Magento Open Source version >= 2.4.4
- Automatically add product with
Bestseller
attribute set onYes
to bestsellers category after product save - Automatically remove product with
Bestseller
attribute set onNo
from bestsellers category after product save - Automatically synchronize product with
Bestseller
attribute to bestsellers category in cronjob every day at 5:00 AM
- Using composer:
composer require macopedia/magento2-bestsellers
- Using zip file:
- Download zip file
- Extract module in directory
app/code/Macopedia/Bestsellers
Enable module and install patches:
bin/magento module:enable Macopedia_Bestsellers
bin/magento setup:upgrade
- If you don't have category created - create
Bestseller
category in your Magento 2 instance - Go to
Stores > Configuration > Macopedia > Bestseller
- In group
General
chooseEnabled
toYes
to activate module - In group
Mappings
selectBestseller Attribute
- this attribute is created automatically and has nameBestseller
- In group
Mappings
selectBestseller Category
- category which you decided to use as category for bestsellers - Save configuration
- Clean configuration cache
- Go to product edit and open group
Product Details
- Change
Bestseller
attribute value toYes
- Save product
@idziakjakub @msloboda-macopedia