How to disable checkout for specific products without a discount code?

Shopify Partner
1 0 0



Is there a way to disable the checkout button if certain products/collection in cart unless specific discount codes has been entered. I want to create products/collection that are only purchasable when they used specific discount code that i have created and the discount codes itself has different types of discount. Is it possible and if so can anyone help me with this.


Your help would be much appreciated, thank you.

Reply 1 (1)

Shopify Partner
1768 142 187

Restrictions can be imposed on adding products based on logic.


Please refer to how we implement the same in the below URL



For any custom development WhatsApp or connect at Email ID: for quick consultation. | Shopify Free codes
To support Buy Me a Coffee