Setting minimum order value in dawn theme using code

Topic summary

  • Goal: Set a minimum order value of Rs 499 in the Dawn theme without using a paid app.

  • Proposed solution: Disable the checkout button when the cart is empty or when cart.total_price is less than 49900. Shopify stores prices in the smallest currency unit (paise), so 49900 equals Rs 499.

  • Implementation: Add the Liquid condition to the checkout button in cart-drawer.liquid. Repeat the same change for the Cart Page in sections/main-cart-footer.liquid to ensure consistency.

  • Artifact: A screenshot was provided to illustrate where the condition is applied on the checkout button.

  • Status: No confirmation from the requester; resolution appears suggested but not yet verified or marked as solved.

Summarized with AI on December 18. AI used: gpt-5.

hi. i am working with a client right now and he want to add minimum order value to rs499. he does not want to add any paid app. i am using DAWN theme and need a code to set minimum order value yo rs499. i dont know much about coding kindly provide a exact code so i can copy and paste to set the minimum order price to rs499

Hi @notlakshay , You can add a condition to disable the checkout button if the price is less than rs499. If you are using the Dawn theme find the β€œcart-drawer.liquid” snippet find the checkout button and add the below condition to it.

{% if cart == empty or cart.total_price < 49900 %}
              disabled
            {% endif %}

Review the screenshot for reference.

Do the same for the Cart Page. You will find the code in β€œmain-cart-footer.liquid” file in the sections.

AT…

1 Like