Quantcast
Channel: Phoca Forum
Viewing all articles
Browse latest Browse all 2106

Phoca Cart • Re: Multiple Specifications as Filters

$
0
0
Hi, thank you very much for the detailed info, now I understand and seems I found the problem, if you are able to edit files on your server, go to:
administrator/components/com_phocacart/libraries/phocacart/search/search.php

and on line cca 441 change

FROM:

Code:

if (I18nHelper::isI18n()) {    $where .= " INNER JOIN #__phocacart_specifications AS s2bx" . $i . " ON s2x" . $i . ".product_id = s2x" . $i . ".product_id AND " . $v;} else {    $where .= " INNER JOIN #__phocacart_specifications AS s2x".$i." ON s2x" . $i . ".product_id = s2x".$i.".product_id AND ". $v;}
TO:

Code:

if (I18nHelper::isI18n()) {    $where .= " INNER JOIN #__phocacart_specifications AS s2bx" . $i . " ON s2x0.product_id = s2x" . $i . ".product_id AND " . $v;} else {    $where .= " INNER JOIN #__phocacart_specifications AS s2x".$i." ON s2x0.product_id = s2x".$i.".product_id AND ". $v;}
This should solve the problem with "All" - only items which will have all selected parameters will be displayed.

Let me know if this works for you.

Jan

Statistics: Posted by Jan — 31 May 2025, 01:13



Viewing all articles
Browse latest Browse all 2106

Trending Articles