// wrong modif on ProductSale

This commit is contained in:
gRoussac
2013-10-04 18:35:30 +02:00
parent c2bcc5baa1
commit d141f5bdc0
+1 -2
View File
@@ -86,8 +86,7 @@ class ProductSaleCore
MAX(image_shop.`id_image`) id_image, il.`legend`,
ps.`quantity` AS sales, t.`rate`, pl.`meta_keywords`, pl.`meta_title`, pl.`meta_description`,
DATEDIFF(p.`date_add`, DATE_SUB(NOW(),
INTERVAL '.$interval.' DAY)) > 0 AS new,
IFNULL(pa.minimal_quantity, p.minimal_quantity) as minimal_quantity
INTERVAL '.$interval.' DAY)) > 0 AS new
FROM `'._DB_PREFIX_.'product_sale` ps
LEFT JOIN `'._DB_PREFIX_.'product` p ON ps.`id_product` = p.`id_product`
'.Shop::addSqlAssociation('product', 'p', false).'