eugene-petrov / magento2-category-filter
Magento 2 category filter
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.2.0
This package is auto-updated.
Last update: 2024-09-13 19:28:03 UTC
README
ReadyToGo_CategoryFilter
Task: we need to display only products that are added to several categories on product listing page
To enable this module execute:
composer require eugene-petrov/magento2-category-filter
or if the cmd above is not working:composer config repositories.readyToGoCategoryFilter vcs git@github.com:eugene-petrov/magento2-category-filter.git
php bin/magento setup:upgrade
php bin/magento cache:clean
Example
Preconditions: magento sample data is installed
Let's imagine that we are on a category page like this one:
And we need a filter to find out which products (from this particular category) are on sale (assigned to the Sale category).
To make it done, let's specify a parameter in the URL cat_ids
with category id (or ids) which we need and observe the result:
This is it. Now we can build something on top of this implementation.