edit \allinone_rewards\allinone_rewards.phpThis is not working anymore without a licence.
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>';
}
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>';
}