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

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

Aqila
Shopify Partner
1 0 0

Hi,

 

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.

Replies 2 (2)

gr_trading
Shopify Partner
2000 147 205

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: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

JimJong
Tourist
56 0 1

Yes it is possible to disable checkout for specific products without a discount by using the Cart Lock https://apps.shopify.com/cart-lock app easily. Here is how you can do it:.

 

  1. Open the app and click on the "Add a new rule" button.
  2. Click "Add a new condition" and select the "Collections" then add the related collections.
  3. Click "Add a new condition" again and select the "Discount amount" then put the discount amount related to the discount code in the "Block if less than" field.
  4. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  5. Click "All" in the "Match conditions" field.
  6. Save the rule.

discount.png

 

Now your customers cannot checkout without applying the discount if their cart has the specific collection items.