Skip to content

Commit

Permalink
Merge pull request #7 from MassimoConfortiHirooks/patch-js-product-var
Browse files Browse the repository at this point in the history
Patch js product var
  • Loading branch information
salvatore-disavio authored May 6, 2022
2 parents 30923f2 + 6fbedc3 commit abad7ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/soisy.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct()
$this->name = 'soisy';
$this->module_key = '2137af924343568029001f1c00825e9f';
$this->tab = 'payments_gateways';
$this->version = '1.1.7';
$this->version = '1.1.8';
$this->author = 'Soisy S.p.A';
$this->need_instance = 1;
$this->allow_push = true;
Expand Down Expand Up @@ -671,7 +671,9 @@ public function hookDisplayHeader()
}
}
} else {
$this->context->controller->addJS(($this->_path) . 'views/js/product.js');
if ($controller_name == 'product') {
$this->context->controller->addJS(($this->_path) . 'views/js/product.js');
}
$this->smarty->assign('soisyJsUrl', self::SOISY_LOAN_SIMULATION_CDN);
return $this->display(__FILE__, 'views/templates/hook/16/soisy_js_import.tpl');
}
Expand Down

0 comments on commit abad7ce

Please sign in to comment.