[-] BO: Fix #PSCFV-8179 shop domain used in emails sometimes was for the wrong shop
This commit is contained in:
@@ -135,6 +135,8 @@ abstract class PaymentModuleCore extends Module
|
||||
$this->context->customer = new Customer($this->context->cart->id_customer);
|
||||
$this->context->language = new Language($this->context->cart->id_lang);
|
||||
$this->context->shop = ($shop ? $shop : new Shop($this->context->cart->id_shop));
|
||||
ShopUrl::resetMainDomainCache();
|
||||
|
||||
$id_currency = $currency_special ? (int)$currency_special : (int)$this->context->cart->id_currency;
|
||||
$this->context->currency = new Currency($id_currency, null, $this->context->shop->id);
|
||||
if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery')
|
||||
|
||||
Reference in New Issue
Block a user