// Replace shop->sqlAsso(), shop->sqlLang() and shop->sqlRestriction() with shop->addSqlAssociation(), shop->addSqlRestrictionOnLang() and shop->addSqlRestriction()
This commit is contained in:
@@ -91,7 +91,7 @@ class AdminTrackingController extends AdminController
|
||||
LEFT JOIN `'._DB_PREFIX_.'attribute_lang` al ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = '.(int)$this->context->language->id.')
|
||||
LEFT JOIN `'._DB_PREFIX_.'attribute_group_lang` agl ON (ag.`id_attribute_group` = agl.`id_attribute_group` AND agl.`id_lang` = '.(int)$this->context->language->id.')
|
||||
LEFT JOIN `'._DB_PREFIX_.'product` p ON (p.`id_product` = pa.`id_product`)
|
||||
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product` AND pl.`id_lang` = '.(int)$this->context->language->id.$this->context->shop->sqlLang('pl').')
|
||||
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product` AND pl.`id_lang` = '.(int)$this->context->language->id.$this->context->shop->addSqlRestrictionOnLang('pl').')
|
||||
'.Product::sqlStock('p', 'pa').'
|
||||
LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON (p.`id_manufacturer` = m.`id_manufacturer`)
|
||||
WHERE stock.quantity <= 0
|
||||
|
||||
@@ -92,7 +92,7 @@ class StoresControllerCore extends FrontController
|
||||
$stores = Db::getInstance()->executeS('
|
||||
SELECT s.*, cl.name country, st.iso_code state
|
||||
FROM '._DB_PREFIX_.'store s
|
||||
'.$this->context->shop->sqlAsso('shop', 's').'
|
||||
'.$this->context->shop->addSqlAssociation('shop', 's').'
|
||||
LEFT JOIN '._DB_PREFIX_.'country_lang cl ON (cl.id_country = s.id_country)
|
||||
LEFT JOIN '._DB_PREFIX_.'state st ON (st.id_state = s.id_state)
|
||||
WHERE s.active = 1 AND cl.id_lang = '.(int)$this->context->language->id);
|
||||
@@ -118,7 +118,7 @@ class StoresControllerCore extends FrontController
|
||||
$stores = Db::getInstance()->executeS('
|
||||
SELECT s.*, cl.name country, st.iso_code state
|
||||
FROM '._DB_PREFIX_.'store s
|
||||
'.$this->context->shop->sqlAsso('shop', 's').'
|
||||
'.$this->context->shop->addSqlAssociation('shop', 's').'
|
||||
LEFT JOIN '._DB_PREFIX_.'country_lang cl ON (cl.id_country = s.id_country)
|
||||
LEFT JOIN '._DB_PREFIX_.'state st ON (st.id_state = s.id_state)
|
||||
WHERE s.active = 1 AND cl.id_lang = '.(int)$this->context->language->id);
|
||||
@@ -141,7 +141,7 @@ class StoresControllerCore extends FrontController
|
||||
) distance,
|
||||
cl.id_country id_country
|
||||
FROM '._DB_PREFIX_.'store s
|
||||
'.$this->context->shop->sqlAsso('shop', 's').'
|
||||
'.$this->context->shop->addSqlAssociation('shop', 's').'
|
||||
LEFT JOIN '._DB_PREFIX_.'country_lang cl ON (cl.id_country = s.id_country)
|
||||
LEFT JOIN '._DB_PREFIX_.'state st ON (st.id_state = s.id_state)
|
||||
WHERE s.active = 1 AND cl.id_lang = '.(int)$this->context->language->id.'
|
||||
|
||||
Reference in New Issue
Block a user