version 0.0.2:add payment gateway, advanced payment, cancellation, algo improved, bug fixed, cart lock

This commit is contained in:
Vinay Yadav
2016-01-07 16:30:50 +05:30
parent 1b4d30d69f
commit 3e6ba393c0
1267 changed files with 135135 additions and 2410 deletions

View File

@@ -278,7 +278,7 @@ class FrontControllerCore extends Controller
$country = new Country($id_country, (int)$this->context->cookie->id_lang);
if (validate::isLoadedObject($country) && $this->context->country->id !== $country->id) {
if (!$has_currency && validate::isLoadedObject($country) && $this->context->country->id !== $country->id) {
$this->context->country = $country;
$this->context->cookie->id_currency = (int)Currency::getCurrencyInstance($country->id_currency ? (int)$country->id_currency : (int)Configuration::get('PS_CURRENCY_DEFAULT'))->id;
$this->context->cookie->iso_code_country = strtoupper($country->iso_code);