V1.7 All-in-one Rewards: loyalty, referral, affiliation v5.2.0

mantte

Active member
Elite
XNullUser
Joined
Nov 29, 2020
Messages
171
Reaction score
196
Points
43
NullCash
6
very nice share, very usefull addon, thanks you!
 

noti_italy

Well-known member
Master
Diamond
Elite
XNullUser
Joined
Jan 15, 2022
Messages
553
Reaction score
902
Points
93
NullCash
2,348
@halo44 contribute to the forum and share something with us, that's the only way to keep the forum active..
 

koblote

Active member
XNullUser
Joined
May 11, 2022
Messages
159
Reaction score
85
Points
28
NullCash
608
Thank you for this version hope to have the 6.0.0 version
 

Ptikikoo

Well-known member
Diamond
Elite
XNullUser
Joined
Oct 26, 2021
Messages
103
Reaction score
402
Points
63
NullCash
943
On
This is not working anymore without a licence.
edit \allinone_rewards\allinone_rewards.php

line 490
Code:
if ($registered == -1) {
                Configuration::updateGlobalValue('REWARDS_REGISTRATION', '');
                $html .= '<div style="margin-left: 10%; font-weight: bold; color: red">'.$this->l('Your order reference was not valid, please try again.').'</div>';
            }
            if ($registered < 1) {
                Configuration::updateGlobalValue('REWARDS_REGISTERED', 0);
                if (Configuration::getGlobalValue('REWARDS_REGISTRATION') != '') {
                    $html .= '<div style="margin-left: 10%; margin-bottom: 20px; font-weight: bold; color: red">'.$this->l('Thanks for your patience, your license is being validated.').'</div>';
                } else {
                    $html .= '
                        <div style="margin-left: 10%; margin-bottom: 20px;">'.
                            $this->l('Please register by entering your order reference. This way, if you are eligible for further updates you will be able to claim for them automatically.').'<br/>
                            <form id="rewards_registration_form" method="post">
                            <input type="text" id="rewards_registration" name="rewards_registration" value="'.Configuration::getGlobalValue('REWARDS_REGISTRATION').'" maxlength="12">
                            <input type="submit" name="submitRegistration" class="button" value="'.$this->l('Register').'">
                            </form>
                        </div>';
                }
            } else {
                Configuration::updateGlobalValue('REWARDS_REGISTERED', 1);
                $html .= '<div style="margin-left: 10%; font-weight: bold">'.$this->l('Congratulation, your license is registered.').'<br><br></div>';
            }
replace by
Code:
            if ($registered == -1) {
                //Configuration::updateGlobalValue('REWARDS_REGISTRATION', 1);
                Configuration::updateGlobalValue('REWARDS_REGISTERED', 1);
                //$html .= '<div style="margin-left: 10%; font-weight: bold; color: red">'.$this->l('Your order reference was not valid, please try again.').'</div>';
            }
            if ($registered < 1) {
                //Configuration::updateGlobalValue('REWARDS_REGISTERED', 0);
                Configuration::updateGlobalValue('REWARDS_REGISTERED', 1);
                /*if (Configuration::getGlobalValue('REWARDS_REGISTRATION') != '') {
                    $html .= '<div style="margin-left: 10%; margin-bottom: 20px; font-weight: bold; color: red">'.$this->l('Thanks for your patience, your license is being validated.').'</div>';
                } else {
                    $html .= '
                        <div style="margin-left: 10%; margin-bottom: 20px;">'.
                            $this->l('Please register by entering your order reference. This way, if you are eligible for further updates you will be able to claim for them automatically.').'<br/>
                            <form id="rewards_registration_form" method="post">
                            <input type="text" id="rewards_registration" name="rewards_registration" value="'.Configuration::getGlobalValue('REWARDS_REGISTRATION').'" maxlength="12">
                            <input type="submit" name="submitRegistration" class="button" value="'.$this->l('Register').'">
                            </form>
                        </div>';
                }*/
            } else {
                Configuration::updateGlobalValue('REWARDS_REGISTERED', 1);
                $html .= '<div style="margin-left: 10%; font-weight: bold">'.$this->l('Congratulation, your license is registered.').'<br><br></div>';
            }

this is no perfect! is finaly work without licence
 

stero11

New member
XNullUser
Joined
May 8, 2023
Messages
11
Reaction score
0
Points
1
Location
Suisse
NullCash
1
Very interesant module... Want to download it
Post automatically merged:

Not work without license
Not work without license
 
Last edited:

ilias00

Active member
Elite
XNullUser
Joined
Nov 22, 2019
Messages
143
Reaction score
207
Points
43
NullCash
11
Thanks a lot for sharing.. great module to have!
 

Seyfigsm

Member
XNullUser
Joined
Jun 13, 2022
Messages
35
Reaction score
0
Points
6
NullCash
19
Большое спасибо за ваше добавление!! Я ценю это
 

vivozivo

Well-known member
Diamond
Elite
Joined
Sep 24, 2019
Messages
1,067
Reaction score
495
Points
83
NullCash
17
Thank you very much! It can be useful module!
 

raoulfild

Member
XNullUser
Joined
Dec 24, 2019
Messages
41
Reaction score
0
Points
6
NullCash
9
Thank you for the sharing module. It is very usefull
 

niaque

Member
XNullUser
Joined
Jul 2, 2019
Messages
46
Reaction score
0
Points
6
NullCash
2
a licence is needed ? or does it work without it ?
 

niaque

Member
XNullUser
Joined
Jul 2, 2019
Messages
46
Reaction score
0
Points
6
NullCash
2
oh founbd solution for licence in posts in this topics,thanks
 

ocio87

Member
XNullUser
Joined
Oct 15, 2021
Messages
98
Reaction score
0
Points
6
NullCash
1
Muchas gracias por compartir! VOy a realizar merge con versión vieja.
 
Top