Merged Pull Request #242 - thanks @andskiba

This commit is contained in:
vAugagneur
2013-04-29 16:21:33 +02:00
parent ad17dbc700
commit acccaf5fbc
+2
View File
@@ -281,6 +281,8 @@ class SearchCore
$alias = '';
if ($order_by == 'price')
$alias = 'product_shop.';
else if ($order_by == 'date_upd')
$alias = 'p.';
$sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity,
pl.`description_short`, pl.`available_now`, pl.`available_later`, pl.`link_rewrite`, pl.`name`,
MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` manufacturer_name '.$score.', MAX(product_attribute_shop.`id_product_attribute`) id_product_attribute,