From f6409b9125ee15924afdd66b20d0368c1d2b0899 Mon Sep 17 00:00:00 2001 From: Jonathan Renard <1273438+fox-john@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:17:14 +0100 Subject: [PATCH] fix: country code value (#401) --- src/Repository/InfoRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/InfoRepository.php b/src/Repository/InfoRepository.php index 53f2cd9a..22a2905b 100644 --- a/src/Repository/InfoRepository.php +++ b/src/Repository/InfoRepository.php @@ -67,7 +67,7 @@ public function getShopCountryCode() { $this->generateMinimalQuery('country', 'c'); - $this->query->where('c.active = 1'); + $this->query->where('c.id_country = ' . \Configuration::get('PS_COUNTRY_DEFAULT')); $this->query->select('c.iso_code'); return (string) $this->db->getValue($this->query);