diff --git a/ps_contactinfo.php b/ps_contactinfo.php index fcb3e41..ec4bdc4 100644 --- a/ps_contactinfo.php +++ b/ps_contactinfo.php @@ -41,7 +41,7 @@ public function __construct() { $this->name = 'ps_contactinfo'; $this->author = 'PrestaShop'; - $this->version = '3.3.3'; + $this->version = '3.3.4'; $this->bootstrap = true; parent::__construct(); @@ -98,7 +98,7 @@ public function getWidgetVariables($hookName = null, array $configuration = []) 'address2' => $address->address2, 'postcode' => $address->postcode, 'city' => $address->city, - 'state' => (!empty($address->id_state) ? (new State($address->id_state))->name[$this->context->language->id] : null), + 'state' => (!empty($address->id_state) ? (new State($address->id_state))->name : null), 'country' => (new Country($address->id_country))->name[$this->context->language->id], ], 'phone' => Configuration::get('PS_SHOP_PHONE'),