1

I have a checkout process where the payment pane and coupon are on the same page. The issue is when the coupon gives 100% discount, I would like to change the available payment method to a free order that does not require a credit card. But what the coupon is applied with ajax, the cart gets updated, but the payment methods do not.

The only idea I've had is to listen to the .ajaxComplete() event, and when the price is 0, refresh the page. Obviously, I would like to have something smoother that works with ajax.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.