// Another fix with combinations prices

This commit is contained in:
rGaillard
2012-09-13 15:42:33 +00:00
parent 6817e7ff7c
commit bd264e5657
+1 -1
View File
@@ -2486,7 +2486,7 @@ class ProductCore extends ObjectModel
{
$sql->select('product_attribute_shop.id_product_attribute, product_attribute_shop.`price` AS attribute_price, product_attribute_shop.default_on');
$sql->leftJoin('product_attribute', 'pa', 'pa.`id_product` = p.`id_product`');
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.id_shop = p.id_shop_default'));
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.id_shop ='.(int)$id_shop));
}
else
$sql->select('0 as id_product_attribute');