[*] BO : Added combination ean13 in the backend search #PSCFV-10436
This commit is contained in:
+1
-1
@@ -3380,7 +3380,7 @@ class ProductCore extends ObjectModel
|
||||
{
|
||||
$sql->leftJoin('product_attribute', 'pa', 'pa.`id_product` = p.`id_product`');
|
||||
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false));
|
||||
$where .= ' OR pa.`reference` LIKE \'%'.pSQL($query).'%\'';
|
||||
$where .= ' OR pa.`reference` LIKE \'%'.pSQL($query).'%\' OR pa.`ean13` LIKE \'%'.pSQL($query).'%\'';
|
||||
}
|
||||
$sql->where($where);
|
||||
$sql->join(Product::sqlStock('p', 'pa', false, $context->shop));
|
||||
|
||||
Reference in New Issue
Block a user