V1.7 Loyalty, referral & affiliate program (reward points) by ETS-Soft [v1.1.9]

LuziCH

Well-known member
Master
Diamond
Elite
Joined
Oct 12, 2020
Messages
174
Reaction score
695
Points
93
NullCash
4,381
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:
Screenshot_1.png
My own template:
Screenshot_2.png

:cautious::cautious::cautious::cautious:
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;
                    }
                }
            }
        }

Screenshot_3.png

Now works fine

Screenshot_4.png
 
Last edited:

torotero

Well-known member
Diamond
Elite
Joined
Jan 7, 2020
Messages
1,119
Reaction score
198
Points
63
NullCash
45
Thank you for sharing this module.
Greetings
 

2020behtarinha

New member
XNullUser
Joined
Nov 1, 2020
Messages
6
Reaction score
0
Points
1
NullCash
0
Thank you for sharing the last version of this module

Great module for anyone
Post automatically merged:

please add version 1.2.5
 

AaiRIz

Member
XNullUser
Joined
Sep 6, 2020
Messages
98
Reaction score
1
Points
8
NullCash
31
very thanks for the important module. will test and update..
Post automatically merged:

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

:cautious::cautious::cautious::cautious:
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


thanks for the detailed solution
 
Last edited:

am123

Member
XNullUser
Joined
Mar 24, 2020
Messages
364
Reaction score
1
Points
18
NullCash
4
Great. After verifying that everything works properly, I will let you know.
 

alexis21490

New member
XNullUser
Joined
Nov 16, 2019
Messages
22
Reaction score
0
Points
1
NullCash
0
Thanks for this ressource guy !
Post automatically merged:

Thanks for this ressource guy !
Post automatically merged:

Thanks for this ressource guy !
 

shoaibktk

Active member
Elite
XNullUser
Joined
Jun 22, 2020
Messages
257
Reaction score
144
Points
43
NullCash
471
loyalty-referral-affiliate-program-reward-points.jpg


DEMO HERE

Enjoy​
This module is working and awesome
 
Top