good module thanks for shared
hookDisplayProductAdditionalInfo
public function hookDisplayProductAdditionalInfo($params)
{public function hookDisplayProductAdditionalInfo($params)
{
if (version_compare(_PS_VERSION_, '1.7', '<')) {
$moduleIsInHook = false;
} else {
$moduleIsInHook = false;
$modulesInHook = Hook::getHookModuleExecList('displayProductPriceBlock');
if (is_array($modulesInHook) && count($modulesInHook) > 0) {
foreach ($modulesInHook as $moduleInHook) {
if ($moduleInHook['module'] === $this->name) {
$moduleIsInHook = true;
}
}
}
}
On my template the message
"You will get $3.82 in reward when purchase 1 of this product. The reward can be used to pay for your next orders, converted into voucher code or withdrawn to your bank account. "
is not printed on:Code:hookDisplayProductAdditionalInfo
Knowing others addons is displayed correctly on this hook
Has anyone ever had this problem? and can help me ?
Demo:
View attachment 4868
My own template:
View attachment 4869
Post automatically merged:
Solved !
in /ets_affiliatemarketing.php line 3251
PHP:public function hookDisplayProductAdditionalInfo($params) {public function hookDisplayProductAdditionalInfo($params) {
Put this code:
PHP:if (version_compare(_PS_VERSION_, '1.7', '<')) { $moduleIsInHook = false; } else { $moduleIsInHook = false; $modulesInHook = Hook::getHookModuleExecList('displayProductPriceBlock'); if (is_array($modulesInHook) && count($modulesInHook) > 0) { foreach ($modulesInHook as $moduleInHook) { if ($moduleInHook['module'] === $this->name) { $moduleIsInHook = true; } } } }
View attachment 4872
Now works fine
View attachment 4873
This module is working and awesome