Personalized checkout and custom promotions with Shopify Scripts
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?
# DisableDiscountCodesCampaign
#
# Any discount codes will be rejected with the entered message.
# ================================================================
class DisableDiscountCodesCampaign
def initialize(rejection_message)
@rejection_message = rejection_message
end
def run(cart)
return if cart.discount_code.nil?
cart.discount_code.reject(message: @rejection_message)
end
end
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024