c'est ce que je viens de faire et c'est votre requête qui ne convient pas , il y a bien 140 produits qui correspondent a ce critère de recherche et avec une limit de 50 je devrais en avoir 50
votre requete -->
SELECT a.product_id AS id, a.product_name, a.product_created AS created , a.product_description, "2" AS browsernav, b.category_id as category_id
FROM sacfr_hikashop_product AS a
INNER JOIN sacfr_hikashop_product_category AS b
ON a.product_id=b.product_id
WHERE a.product_published=1
AND a.product_type='main'
AND a.product_quantity!=0
AND (a.product_access = 'all' OR a.product_access LIKE '%,2,%')
AND b.category_id IN (50,75,300,68,65,58,57,56,55,53,54,51,52,320,79,243,244,245,246,247,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,265,266,267,268,269,310,330,340,350,360,370,380,390,400,441,442,443,444,445,446,447,448)
AND ((((a.product_name LIKE '%noir%'))) OR (((a.product_description LIKE '%noir%'))))
ORDER BY a.product_modified DESC
LIMIT 0, 50
une requete qui ne tient pas compte des categories et qui en retourne bien 50 -->
SELECT a.product_id AS id, a.product_name, a.product_created AS created , a.product_description, "2" AS browsernav
FROM sacfr_hikashop_product AS a
WHERE a.product_published=1
AND a.product_type='main'
AND a.product_quantity!=0
AND (a.product_access = 'all' OR a.product_access LIKE '%,2,%')
AND (a.product_name LIKE '%noir%' OR a.product_description LIKE '%noir%')
LIMIT 0, 50
il faudrait aussi pouvoir modifier cette liste des IN et lui dire où chercher dans quelles categories en parametres du plugin
AND b.category_id IN (50,75,300,68,65,58,57,56,55,53,54,51,52,320,79,243,244,245,246,247,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,265,266,267,268,269,310,330,340,350,360,370,380,390,400,441,442,443,444,445,446,447,448)
dans mon cas IN (51,52,53,54,55,56,57,87) est suffisant