fix issue vi

This commit is contained in:
Marion Muszynski 2016-09-19 18:03:07 +02:00
commit b69bd11d6b

View File

@ -77,7 +77,7 @@ function getProductId()
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product`)
LEFT JOIN `'._DB_PREFIX_.'product_attribute_combination` pac ON (pac.`id_product_attribute` = pa.`id_product_attribute`)
LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (al.`id_attribute` = pac.`id_attribute`)
LEFT JOIN `'._DB_PREFIX_.'product_attribute_image` i ON (i.`id_product` = pa.`id_product`)
LEFT JOIN `'._DB_PREFIX_.'product_attribute_image` i ON (i.`id_product_attribute` = pa.`id_product_attribute`)
WHERE pa.`ean13` = '.pSQL($ean).'
AND pl.`id_lang` = '.(int)$cookie->id_lang.'
ORDER BY pa.`id_product_attribute` DESC