Skip to content

Instantly share code, notes, and snippets.

@aatronco
Last active November 14, 2022 17:36
Show Gist options
  • Save aatronco/6de8dd5447694f3f33b54334c7f4dba3 to your computer and use it in GitHub Desktop.
Save aatronco/6de8dd5447694f3f33b54334c7f4dba3 to your computer and use it in GitHub Desktop.
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment