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

mantte

Active member
Elite
XNullUser
Joined
Nov 29, 2020
Messages
262
Reaction score
204
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
582
Reaction score
961
Points
93
NullCash
2,164
@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
103
Points
28
NullCash
734
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
105
Reaction score
451
Points
63
NullCash
852
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
191
Reaction score
247
Points
43
NullCash
23
Thanks a lot for sharing.. great module to have!
 

Seyfigsm

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

vivozivo

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

raoulfild

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

niaque

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

niaque

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