Magento 2 extension to display swatch count instead of thumbnails in products list
This extension supports and has been tested on the following versions of Magento:
Open Source Edition
- 2.4.0 - 2.4.5
To install this module, use the following command:
composer require smartex/module-swatches-count
Afterwards, enable this module, run the setup scripts and flush the cache:
./bin/magento module:enable Smartex_SwatchesCount
./bin/magento setup:upgrade
./bin/magento cache:flush
To show the swatch count on the products list, simply change the following config values.
Stores > Configuration > Catalog > Catalog > Storefront
Show Swatches in Product List
: YesShow Swatch as Count (Product List)
: Yes