setting minimum order value in dawn theme using code

setting minimum order value in dawn theme using code

notlakshay
Visitor
1 0 0

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

Reply 1 (1)

Huptech-Web
Shopify Partner
941 188 197

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.

disable_checkout.png

 

Do the same for the Cart Page. You will find the code in "main-cart-footer.liquid" file in the sections.


AT...

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required