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.
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:.
Open the app and click on the “Add a new rule” button.
Click “Add a new condition” and select the “Collections” then add the related collections.
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.
In the “Error message” field, add an appropriate message which will be displayed in the checkout page.