// Replace shop->addSqlRestriction() and shop->addSqlRestrictionOnLang() by static versions
This commit is contained in:
1 parent
d86fb7ec9b
commit
8f0257fc87
58 files changed
+210
-241
No files matched your search
@@ -166,7 +166,7 @@ class StatsBestProducts extends ModuleGrid
|
||||
) AS totalPageViewed
|
||||
FROM '._DB_PREFIX_.'product p
|
||||
'.$this->context->shop->addSqlAssociation('product', 'p').'
|
||||
LEFT JOIN '._DB_PREFIX_.'product_lang pl ON (p.id_product = pl.id_product AND pl.id_lang = '.(int)$this->getLang().$this->context->shop->addSqlRestrictionOnLang('pl').')
|
||||
LEFT JOIN '._DB_PREFIX_.'product_lang pl ON (p.id_product = pl.id_product AND pl.id_lang = '.(int)$this->getLang().Shop::addSqlRestrictionOnLang('pl').')
|
||||
LEFT JOIN '._DB_PREFIX_.'order_detail od ON od.product_id = p.id_product
|
||||
LEFT JOIN '._DB_PREFIX_.'orders o ON od.id_order = o.id_order
|
||||
'.Product::sqlStock('p', 0).'
|
||||
|
||||
Reference in new issue
Block a user