From f7152320c67786bd8a1825afde22c595bcda34e1 Mon Sep 17 00:00:00 2001 From: PululuK Date: Fri, 20 Sep 2024 11:34:48 +0200 Subject: [PATCH] Initialize the Country object correctly during the checkout process to avoid any problems --- classes/controller/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index a984d8a665031..e98f2b17085c7 100644 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -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; }