Last active
November 14, 2022 17:36
-
-
Save aatronco/6de8dd5447694f3f33b54334c7f4dba3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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