Skip to content

Commit

Permalink
fix: country code value
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Jan 9, 2025
1 parent 70f0f70 commit 5052ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repository/InfoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ 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);
return $this->db->getValue($this->query);
}
}

0 comments on commit 5052ff8

Please sign in to comment.