Posted - 02/04/2022 : 16:50:28
Steven,
I may be on a newer version of 7.4.6 as it has the verify email option. That said, what I have is this: [code] var regex=/[^@]+@[^@]+\.[a-z]{2,}$/i; chkfocus(!regex.test(frm.email.value),frm.email,"<?php print jscheck($GLOBALS['xxValEm'])?>"); <?php if(@$GLOBALS['verifyemail']){ ?> chkfocus(!regex.test(frm.email2.value),frm.email2,"<?php print jscheck($GLOBALS['xxEmVerf'].'\n\n'.$GLOBALS['xxValEm'])?>"); chkfocus(frm.email.value!=frm.email2.value,frm.email2,"<?php print jscheck($GLOBALS['xxEmNoMa'])?>"); <?php } } ?>
CHANGE TO
var regex=/[^@]+@[^@]+\.[a-z]{2,}$/i; if(frm.email.value=="sample@email.tst") { window.location.href="https://ih1.redbubble.net/image.717939983.4497/flat,750x,075,f-pad,750x1000,f8f8f8.u6.jpg"; return(false); } else chkfocus(!regex.test(frm.email.value),frm.email,"<?php print jscheck($GLOBALS['xxValEm'])?>"); <?php if(@$GLOBALS['verifyemail']){ ?> chkfocus(!regex.test(frm.email2.value),frm.email2,"<?php print jscheck($GLOBALS['xxEmVerf'].'\n\n'.$GLOBALS['xxValEm'])?>"); chkfocus(frm.email.value!=frm.email2.value,frm.email2,"<?php print jscheck($GLOBALS['xxEmNoMa'])?>"); <?php } } ?> [/code]
I HAVE NOT TESTED THIS! so I make no promises at this point. Make sure you have the most current version of 7.4.6 and backup the vsadmin/incart.php file. Let me know if it works.
[red]I had the opportunity to test it and it works fine.[/red]
Marshall CENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
Edited by - Marshall on 02/05/2022 08:13:19
|