Personalized checkout and custom promotions with Shopify Scripts
I am looking to ignore a single product from all discount codes in the checkout but the examples from Shopify need each discount manually entered and I was wondering if there was a way to set it for all
Hi Chris,
I'm not sure if this exactly answers your question, but here is a script that doesn't allow ANY discount code to be used if a product with tag 'no-discount' is in the cart. The caveat is that it will prevent any other items in the cart from being discounted as well. You can customize some of the settings at the bottom.
(the script is attached, because the forum is modifying parts of it)
Let me know if that is helpful,
Matthew
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025