How to make the discount code mandatory at checkout, if a specific product tag is present

Topic summary

  • Goal: Enforce that a discount code must be entered at checkout whenever the cart contains a product with a specific tag; otherwise checkout/payment should be blocked.

  • Context: The requester is on Shopify Plus and mentions using Shopify Scripts. Others later echo the same requirement.

  • Clarification: A responder confirms this is possible on Shopify Plus and interprets it as disabling the checkout button until a discount code is applied for tagged products. The requester agrees with this interpretation.

  • Plan differences: Another participant on Shopify Basic asks for a solution without upgrading. The responder asks about plan level and suggests options may depend on being on Plus.

  • Outcomes: No public code, script, or step-by-step solution was provided in the thread. One party offered to discuss solutions privately via email.

  • Status: Unresolved and open. Key unanswered question: specific implementation details (e.g., Shopify Script logic or alternative approaches for non-Plus stores).

  • Terminology: Shopify Plus is the enterprise plan with advanced checkout customization (e.g., Shopify Scripts). Shopify Scripts are server-side rules that can modify checkout behavior.

Summarized with AI on January 11. AI used: gpt-5.

I have a requirement, that needs to make the discount code mandatory, if a specific tag product is added to the cart, im using shopify plus, therefore i can use shopify scripts. but i am not sure how to achieve this. Therefore if a specific tag product is added to cart, then the user must apply for discount code on checkout, otherwise the checkout wont be applied. Is this doable? thanks

Hi there, if on Plus this is possible; to confirm you want the checkout button made inactive until a discount code is added - for certain products (tag controlled), correct?

Let us know, info@whitewatersolutions.com.

Take care.

WhiteWater Web

yes thats, right, i mean user cant complete checkout, make payment untill a discount code is added if a specific tag product is in cart

I have the same requirement previously discussed here. What is the solution to this problem? I can’t seem to find anywhere else where this specific functionality is mentioned.

I am also looking for a solution for this problem, how can this be done?

Are you on Shopify Plus?

Cheers.

WhiteWater Web

at the moment shopify basic, would prefer if I didn’t have to update to plus because its not going to be something i need long term, but can consider if there is no other option

Drop us an email to info@whitewatersolutions.com and we can look at options with you.

Take care.

WhiteWater Web