Exclude tagged products from ALL discounts

Hi guys,

Am looking to find a Shopify Script that simply disables all discounts from applying to specific products

Found this Shopify example:

https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/line-item-scripts#disable-discount-codes-for-product

However in this example you need to manually specify/hard code the coupon codes

Is there a way to amend this so it:

  • Applies to all current and future codes automatically (regardless of code)

  • Products to exclude from discounts as done by tag (as with the example)

Many thanks!
Jorge

Would love to get a response to this as well. Same issue.