Extension Updates! 🔒SCA will be rolling out on September 14th, 2019. Update to PayPlans 4.0.14 now 🔥

Helpdesk

Hi,

Using current Payplans 4.0.11, on the checkout page, if a user enter a coupon code and then press Enter, the checkout form is submitted immediately and they go to Paypal or Stripe without having even the coupon applied. All the rest of the form is submitted without them having a chance to enter their details, etc

This is a bug that actually existed in PP 3.x (we reported it) which is why we tested for it.

In PP 3.x, we added the following code to fix the problem and turn Enter key equivalent to clicking the Apply button:


$(document).ready(function() {
$("#app_discount_code_id").keydown(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
$("#app_discount_code_submit").click();
}
});
});


Please be kind to address the issue. I'm sure we can still add and adjust this custom code but it should not be required.

Best regards

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Your time
Stack Ideas HQ
Support is
Offline

It is currently off working hours and most of us aren't around.

Rest assured that we will get back to your issues as soon as the day starts tomorrow!