mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Catalog generation: Setting default currency if it was not set in the Context
This commit is contained in:
parent
d0ce7c8ec4
commit
41794dca51
@ -56,6 +56,13 @@ class RetailcrmCatalog
|
||||
$this->version = substr(_PS_VERSION_, 0, 3);
|
||||
$this->link = new Link();
|
||||
$this->home_category = Configuration::get('PS_HOME_CATEGORY');
|
||||
|
||||
if (null === Context::getContext()->currency) {
|
||||
if ($this->default_currency) {
|
||||
$currency = new Currency($this->default_currency);
|
||||
Context::getContext()->currency = $currency;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getData()
|
||||
|
Loading…
x
Reference in New Issue
Block a user