0 użytkowników i 2 Gości przegląda ten wątek.
$recommended = Db::getInstance()->ExecuteS(' SELECT p.*, pl.description, pl.description_short, pl.link_rewrite, pl.name, i.id_image, il.legend, t.rate FROM '._DB_PREFIX_.'product p LEFT JOIN '._DB_PREFIX_.'product_lang pl ON (p.id_product = pl.id_product AND pl.id_lang = '.intval($cookie->id_lang).') LEFT JOIN '._DB_PREFIX_.'category_product cp ON (cp.id_product = p.id_product) LEFT JOIN '._DB_PREFIX_.'image i ON (i.id_product = p.id_product AND i.cover = 1) LEFT JOIN '._DB_PREFIX_.'image_lang il ON (i.id_image = il.id_image AND il.id_lang = '.intval($cookie->id_lang).') LEFT JOIN '._DB_PREFIX_.'tax t ON t.id_tax WHERE p.active = 1 AND cp.id_category = 1 '. (!Configuration::get('PS_ORDER_OUT_OF_STOCK')?' AND p.quantity > 0':''). ' ORDER BY RAND() LIMIT '. Configuration::get('HOME_MULTIOFFER') .' '); if ($recommended) $recommended = Product::getProductsProperties($cookie->id_lang, $recommended);