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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024