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

mantte

Active member
Elite
XNullUser
Joined
Nov 29, 2020
Messages
367
Reaction score
206
Points
43
NullCash
13
very nice share, very usefull addon, thanks you!
 

noti_italy

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

koblote

Active member
Elite
XNullUser
Joined
May 11, 2022
Messages
172
Reaction score
237
Points
43
NullCash
1,698
Thank you for this version hope to have the 6.0.0 version
 

Ptikikoo

Well-known member
Master
Diamond
Elite
XNullUser
Joined
Oct 26, 2021
Messages
111
Reaction score
519
Points
93
NullCash
742
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

Well-known member
Diamond
Elite
XNullUser
Joined
Nov 22, 2019
Messages
198
Reaction score
430
Points
63
NullCash
720
Thanks a lot for sharing.. great module to have!
 

Seyfigsm

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

vivozivo

Well-known member
Master
Diamond
Elite
Joined
Sep 24, 2019
Messages
1,533
Reaction score
991
Points
113
NullCash
1,114
Thank you very much! It can be useful module!
 

raoulfild

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

niaque

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

niaque

Member
XNullUser
Joined
Jul 2, 2019
Messages
64
Reaction score
0
Points
6
NullCash
8
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