Hello, I plan to use Shopify Script Editor for a bundle promo. Currently it's customized so that customers can purchase 4 items for $120, but all discount codes are ineligible. How do I change the setting so only 1 existing code is eligible for this promo?
This code is included to exclude ALL discount codes. Is there a way to edit it?
# Any discount codes will be rejected with the entered message.
@rejection_message = rejection_message
return if cart.discount_code.nil?