What's New
- AuthorPosts
Hi,
I bought the module yesterday but it doesn’t work on my site.
PresaShop version 1.7.5.1
Theme: Leo Theme
Faceted Search module version: 3.3.0
I have applied the following changes:
1) Replace this code $this->searchAdapter->addGroupBy(‘id_product’); in the \modules\ps_facetedsearch\src\Filters\Products.php fileif (\Module::isEnabled(‘stproductsbyattrs’)) {
$this->searchAdapter->addGroupBy(‘id_product, p.id_product_attribute’);
} else {
$this->searchAdapter->addGroupBy(‘id_product’);
}2) Replace this code $this->getSearchAdapter()->addGroupBy(‘id_product’); in the \modules\ps_facetedsearch\src\Product\Search.php file
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
On the module configuration page I created the rules for Search, Categories, Manufacturers, New products page, Best Sales Page. When I save the settings I have an alert message that says:
Warning alla linea 281 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[2] count(): Parameter must be an array or an object that implements CountableNotice alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[8] Undefined variable: rsWarning alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[2] Invalid argument supplied for foreach()Notice alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[8] Undefined variable: rsWarning alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[2] Invalid argument supplied for foreach()Notice alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[8] Undefined variable: rsWarning alla linea 393 nel file my_root/public_html/newversion/modules/stproductsbyattrs/stproductsbyattrs.php
[2] Invalid argument supplied for foreach()Can you help me?
Thank You in advance
PaulAttachments:
I’ve installed the “Separating product by attributes” module here https://beta.ragocalzature.com/en/81-women-s-foulards
I found a small problem which was the color name can’t be added to the product name, I will soon fix it, and install the module on your productive site.Hi,
I configured the module to work in all categories by separating the products by the color attribute.
1. I selected Show attributes in “In Stock only” but I already see all combinations even non in stock;
Yuo can check here: https://beta.ragocalzature.com/en/12-men-s-shoes?page=2
The product ID 1839 “Fratelli Rossetti Test” is in out of stock for color Blu, but is visible.2. In the product lists, in addition to seeing the colors in the name, I also see other attributes
see example above product ID 1839 (Fratelli Rossetti Test – Blu – 40 and Fratelli Rossetti Test – 39 – CACAO;3. the configuration “Sort combinations by” don’t work;
I tried to select Quantity asc, Quantity desc, Price asc, Price desc but all don’t workCan you check please?
Thank you
SerenaHi,
The “Separating product by attributes” module isn’t compatible with Prestashop native filter module, which is compatible with my Easy filter module only: https://www.sunnytoo.com/product/easy-filter-module-for-prestashop1-7,
please see the description of the module.
Best regards.- AuthorPosts
You must be logged in to reply to this topic.