Description
Separating products by attributes module for PrestaShop 8 & 1.7, this module would be super useful for sites like fashion clothing store, fashion shoes store, etc. It can separate a product via color, size or any other attributes to several products on the front end product listing pages.
Separating product by attributes
Separate a product to several products by attributes. For example if a product has 2 colors and 3 sizes, it will be separated to 2 products when you choose to separate via color, the product will be separated to 6 products if you choose to separate via color and size.
Using different attributes to separate products for different categories, brands.
- You can choose categories and brands where you want this module applying to. For example you can use this module for "Clothing" category and "Shoes" category only. If you need you can set to separate product via "Color" in the "Clothing" category and separate product via "Size" in the "Shoes" category, super flexible, you can create as many different rules as you need.
- You can choose pages to apply this module, for example, you can choose to use this module for the "New products" page and the "Best sales page" page only, in this case products on the "Prices drop" page won't be separated.
Other features.
- Ability to show the corresponded image of the current attribute.
- Ability to hide out of stock attributes.
- Ability to show the attribute value out after the product name.
- For attributes which have no image, you can choose to show the cover image instead or don't separate it out.
- Ability to show the rest attributes out, for example, if a product has two attributes "Color" and "Size", you choose to separate via "Color", then you can set to show sizes out under product price.
- Custom CSS.
- No override files.
- Compatible with multi-store.
Compatibility
- PrestaShop 8 & 1.7
- Transformer theme v4, Panda theme v2, Classic theme and all other standard themes.
- Compatible with the Easy filter module.
- This module doesn't compatible with the PrestaShop's faceted search module, it just can work with the Easy builder module only.
How to install and upgrade.
This Separating product by attributes module can be installed easily without editing any files.
How to install? Use the "Upload a module" button on "BO > Modules" page to install the module.
How to upgrade? Use the "Upload a module" button on "BO > Modules" page to upload the new version to your site, it's the same as how to install, don't worry all your data will be safe, PrestaShop will just upload updated files to your site, it won't reinstall this module.
How to get support.
If you have any questions with this "Separating product by attributes" module, post them out on the prestashop module support forum, we'll help you out.
Documentation.
For example if a product is assign to two categories "Hat" and "Clothing accessories", you set to separate product via color in the "Hat" category, then the product will be separated in the "Hat" category, it won't be separated in the "Clothing accessories" category.
1) Replace this code in the \modules\ps_facetedsearch\src\Filters\Products.php file
1 | $this->searchAdapter->addGroupBy('id_product'); |
With
1 2 3 4 5 | if (\Module::isEnabled('stproductsbyattrs')) { $this->searchAdapter->addGroupBy('id_product, p.id_product_attribute'); } else { $this->searchAdapter->addGroupBy('id_product'); } |
2) Replace this code in the \modules\ps_facetedsearch\src\Product\Search.php file
1 | $this->getSearchAdapter()->addGroupBy('id_product'); |
With
1 2 3 4 5 | if (\Module::isEnabled('stproductsbyattrs')) { $this->getSearchAdapter()->addGroupBy('p.id_product,sa.id_product_attribute'); } else { $this->getSearchAdapter()->addGroupBy('id_product'); } |
3) Replace the \modules\ps_facetedsearch\src\Adapter\MySQL.php file with the one in the attached zip file.
MYSQL for faceted search v3 (96 downloads)
Nice module, it is very useful.
In my case the module only hide products without any attributes and no show separated by attribute products.
Easy and work fine! Just that i want!!!