bonsoir,
je viens de télécharger la version 2.3.4.
Le filtre sur un champ de selection ne fonctionne pas. il génère l'erreur suivante :
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR b.certification LIKE 'BDLO,%' OR b.certification LIKE '%,BDLO' OR b.certifica' at line 1 SQL=SELECT DISTINCT b.* FROM hfn_hikashop_product_category AS a LEFT JOIN hfn_hikashop_product AS b ON a.product_id=b.product_id WHERE b.product_published=1 AND b.product_type = 'main' AND a.category_id IN (2) AND b.product_quantity!=0 AND (b.product_access = 'all' OR b.product_access LIKE '%,9,%') AND (b.certification = 'BDLO' OR OR b.certification LIKE 'BDLO,%' OR b.certification LIKE '%,BDLO' OR b.certification LIKE '%,BDLO,%') ORDER BY a.ordering ASC LIMIT 0, 21
J'ai remplacé la modification faite dans filter.php par celle donnée ci desssus :
$fieldsList[] = 'b.'.$filter->filter_options.' = '.$database->Quote($field);
$fieldsList[] = 'b.'.$filter->filter_options.' LIKE \''.hikashop_getEscaped($field,true).',%\'';
$fieldsList[] = 'b.'.$filter->filter_options.' LIKE \'%,'.hikashop_getEscaped($field,true).'\'';
$fieldsList[] = 'b.'.$filter->filter_options.' LIKE \'%,'.hikashop_getEscaped($field,true).',%\'';
J'ai fait un essai. Maintenant cela fonctionne. Je n'ai plus aucun problème entre les codes 'BDL' et 'BDLO'.
Meilleures salutations
Michel ROTTENBERG