I’m trying to do something similar with the Additional Information field – redirect to paypal if the user doesn’t have a coupon code.
basically”
on_sent_ok:”if (jQuery(“#couponCode”).value() == “FREESTUFF”) {
location.replace(‘https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XXXXXXXXX’);
}
However, I can’t find the section of script.js to change (the part that starts with if (1 == data.mailSent) {
Does this change no longer apply in v 3.2.1?