Alejandro Troncoso
2021-08-25T20:32:18Z

add_coupon_to_cart_on_payment_change.js

| const coupon = "ABCDEFG"
| var coupons = function(){
| i("#payments_options input:checked").val() == 362229 ? Jumpseller.addCouponToCart(coupon , {callback: alert("Cupon Agregado")}) : Jumpseller.removeCouponFromCart(coupon, {callback: alert("No hay cupon")}) ;
| }
|
|
| $("#checkout").submit(coupons);