[*] BO : Added combination ean13 in the backend search #PSCFV-10436
This commit is contained in:
1 parent
df4cc9d876
commit
8d0b1e9602
1 file changed
+1
-1
+1
-1
@@ -3380,7 +3380,7 @@ class ProductCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
$sql->leftJoin('product_attribute', 'pa', 'pa.`id_product` = p.`id_product`');
|
$sql->leftJoin('product_attribute', 'pa', 'pa.`id_product` = p.`id_product`');
|
||||||
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false));
|
$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->where($where);
|
||||||
$sql->join(Product::sqlStock('p', 'pa', false, $context->shop));
|
$sql->join(Product::sqlStock('p', 'pa', false, $context->shop));
|
||||||
|
|||||||
Reference in new issue
Block a user