- Posts: 21
- Thank you received: 0
Unable to register and checkout
12 years 3 months ago #161099
by biotoo
Replied by biotoo on topic Unable to register and checkout
if(type=='register'){
//check the password confirmation field only if we are in selector registration and that the user selected "registration" or "simplified registration", or that the registration is on "all in one page" and that the password confirmation field is there
var registrer = document.getElementById('data_register_registration_method0');
if(!registrer){
registrer = document.getElementById('data[register][registration_method]0');
}
var simplified_pwd = document.getElementById('data_register_registration_method3');
if(!simplified_pwd){
simplified_pwd = document.getElementById('data[register][registration_method]3');
}
if((simplified_pwd && simplified_pwd.checked) || (registrer && registrer.checked) || (!simplified_pwd && !registrer)){
//check password
if(typeof varform.elements[password]'] != 'undefined' && typeof varform.elements[password2]'] != 'undefined'){
passwd = varform.elements[password]'];
passwd2 = varform.elements[password2]'];
if(passwd.value!=passwd2.value){
alert(hikashopFieldsJs);
return false;
}
}
}
//check the password confirmation field only if we are in selector registration and that the user selected "registration" or "simplified registration", or that the registration is on "all in one page" and that the password confirmation field is there
var registrer = document.getElementById('data_register_registration_method0');
if(!registrer){
registrer = document.getElementById('data[register][registration_method]0');
}
var simplified_pwd = document.getElementById('data_register_registration_method3');
if(!simplified_pwd){
simplified_pwd = document.getElementById('data[register][registration_method]3');
}
if((simplified_pwd && simplified_pwd.checked) || (registrer && registrer.checked) || (!simplified_pwd && !registrer)){
//check password
if(typeof varform.elements[password]'] != 'undefined' && typeof varform.elements[password2]'] != 'undefined'){
passwd = varform.elements[password]'];
passwd2 = varform.elements[password2]'];
if(passwd.value!=passwd2.value){
alert(hikashopFieldsJs);
return false;
}
}
}
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161122
by biotoo
Replied by biotoo on topic Unable to register and checkout
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161277
by biotoo

*J'ai vidé le cache est OK
Merci
Replied by biotoo on topic Unable to register and checkout
*J'ai vidé le cache est OK
Merci
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161278
by biotoo

J'ai vidé le cache est OK
Merci
Replied by biotoo on topic Unable to register and checkout
J'ai vidé le cache est OK
Merci
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161279
by biotoo

J'ai vidé le cache est OK
Merci
Replied by biotoo on topic Unable to register and checkout
J'ai vidé le cache est OK
Merci
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161385
by nicolas
Replied by nicolas on topic Unable to register and checkout
D'après ce que vous dites, cela fonctionne:
www.hikashop.com/support/forum/5-support...-accueil.html#161132
www.hikashop.com/support/forum/5-support...-accueil.html#161132
Please Log in or Create an account to join the conversation.
Time to create page: 0.201 seconds