Hello! We have a script on our site for a buy 2 & save extra $100 promo. With that being said, we have a discount code that we want to send out to existing customers that would give them a $100 discount on their next purchase. We do not want this to be stacked with the automatic script discount. As far as I can tell, there is no way to update the script to exclude a specific discount code… but rather you can block ALL discount codes, which unfortunately is not what we want to do, as we want this script and other discount code promos to continue running. Any insight would be much appreciated!
Hi @bmahk , can you do something like this somewhere in your script?
# in a place where your "buy 2" discount is valid ...
if cart.discount_code.code.downcase == "abc1234"
cart.discount_code.reject({message: "You can't use that code with our buy 2 special"})
end
Let me know if that was helpful,
Matthew