fix for invite program
This commit is contained in:
parent
6505d4e79d
commit
dcecac1122
@ -19,6 +19,10 @@ if(($sponsor = Tools::getValue('sponsor')) && strlen($sponsor) > 12) {
|
||||
}
|
||||
|
||||
$url = parse_url($_SERVER['REQUEST_URI']);
|
||||
if(Tools::getIsset('lpes')) {
|
||||
$lp = Tools::getValue('lpes');
|
||||
Tools::redirect('?sponsor='.rawurlencode($cipherTool->encrypt('1|'.$email.'|')).(isset($lp)? '&lpes='.$lp: ''));
|
||||
}
|
||||
|
||||
if(Tools::getIsset('lp')) {
|
||||
$lp = Tools::getValue('lp');
|
||||
|
@ -25,14 +25,17 @@
|
||||
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
|
||||
</p>
|
||||
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<p class="required referralprogram">
|
||||
<label for="referralprogram_lp">{l s='E-mail address of your sponsor' mod='landingpages'}</label>
|
||||
<input type="text" size="52" maxlength="128" class="text" id="referralprogram_lp" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var mail = $("#referralprogram").val();
|
||||
var mail = $("#referralprogram_lp").val();
|
||||
var data = mail.split('@');
|
||||
if(data[1] == 'bebeboutik.com'){
|
||||
$("#referralprogram").parent().hide();
|
||||
$("#referralprogram_lp").parent().hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user