Skip to content

Commit

Permalink
Initialize the Country object correctly during the checkout process t…
Browse files Browse the repository at this point in the history
…o avoid any problems
  • Loading branch information
PululuK authored Sep 20, 2024
1 parent 5541617 commit f715232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/controller/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public function init()

if (isset($cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) && $cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}) {
$infos = Address::getCountryAndState((int) $cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
$country = new Country((int) $infos['id_country']);
$country = new Country((int) $infos['id_country'], (int) $this->context->language->id);
$this->context->country = $country;
}

Expand Down

0 comments on commit f715232

Please sign in to comment.