Skip to content

Commit

Permalink
create Github tag & register hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cchalamon committed Jul 3, 2023
1 parent 675c470 commit d5dde2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions everpsorderoptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct()
{
$this->name = 'everpsorderoptions';
$this->tab = 'front_office_features';
$this->version = '4.5.1';
$this->version = '4.5.2';
$this->author = 'Team Ever';
$this->need_instance = 0;
$this->bootstrap = true;
Expand All @@ -52,6 +52,7 @@ public function install()
include(dirname(__FILE__).'/sql/install.php');
return (parent::install()
&& $this->registerHook('actionCheckoutRender')
&& $this->registerHook('actionEmailSendBefore')
&& $this->registerHook('actionAdminControllerSetMedia')
&& $this->registerHook('displayOrderConfirmation')
&& $this->registerHook('displayAdminOrder')
Expand Down Expand Up @@ -679,9 +680,9 @@ private function getSessionOptions($orderedOptions)
foreach ($orderedOptions as $key => $value) {
if ((int)Tools::strlen($key) == 20) {
$field = new EverpsorderoptionsField(
(int)substr($key, 19),
(int)Context::getContext()->shop->id,
(int)Context::getContext()->language->id
(int) substr($key, 19),
(int) Context::getContext()->shop->id,
(int) Context::getContext()->language->id
);
} else {
$field = new EverpsorderoptionsField(
Expand Down

0 comments on commit d5dde2c

Please sign in to comment.