[-] CORE: Fix #PSCFV-9185 Wrong product price display on list by manufacturer

Added default_on condition on getProducts() query in Manufacturer class.
This commit is contained in:
raulgundin
2013-05-18 14:38:07 +03:00
parent 110064a0c1
commit e7393dc5d0
+1 -1
View File
@@ -339,7 +339,7 @@ class ManufacturerCore extends ObjectModel
'.Shop::addSqlAssociation('product', 'p').'
LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa
ON (p.`id_product` = pa.`id_product`)
'.Shop::addSqlAssociation('product_attribute', 'pa', false).'
'.Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.`default_on` = 1').'
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl
ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl').')
LEFT JOIN `'._DB_PREFIX_.'image` i