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

yasir_naseer
Shopify Partner
8 0 3

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

Replies 3 (3)
WhiteWater_Web
Shopify Expert
434 16 36

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

A certified Shopify Partner and Expert, WhiteWater Web (WWW) is a premium digital solutions company specializing in advanced Shopify Dev, Usability/Design, and Online Strategy. WWW has been working with the Shopify platform since 2006.
info@whitewatersolutions.com
yasir_naseer
Shopify Partner
8 0 3

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

 

Stephensjo1
Visitor
1 0 0

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.