How can I set a minimum order amount on my website?

Topic summary

A user seeks to implement a minimum order amount of Rs. 500 on their Shopify store using the Dawn theme, while already offering free delivery over Rs. 4000.

Proposed Solutions:

  • App-based approach: Multiple participants recommend Shopify apps like OrderLogic, MinCart, and Cart Lock. The Cart Lock app solution includes step-by-step instructions: create a rule with “Cart subtotal” condition set to “less than 500” and add an error message to block checkout.

  • Code-based approach: One contributor suggests editing the cart template by wrapping the checkout button in conditional code that hides it when cart.total_price < 500. They recommend adding this to sections/main-cart-footer.liquid.

Ongoing Issues:

  • The original poster requests more specific guidance on where to insert the code within their cart.json file and provides their current template code.
  • Another user reports the checkout button remains missing even after the cart exceeds Rs. 500, suggesting potential caching or implementation issues.
  • Multiple users express similar needs, indicating this is a common requirement.

Status: The discussion remains open with unresolved technical implementation questions about the code-based solution.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

hello dear,

can you please guide me a bit more, where should I add this code & in which file?

I have attached the screenshot of my cart.json template & there is nothing like checkout.

cart.json contain following code

{
“sections”: {
“cart-items”: {
“type”: “main-cart-items”,
“settings”: {
“padding_top”: 36,
“padding_bottom”: 36
}
},
“cart-footer”: {
“type”: “main-cart-footer”,
“blocks”: {
“subtotal”: {
“type”: “subtotal”,
“settings”: {
}
},
“buttons”: {
“type”: “buttons”,
“settings”: {
}
}
},
“block_order”: [
“subtotal”,
“buttons”
],
“settings”: {
}
}
},
“order”: [
“cart-items”,
“cart-footer”
]
}