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

Hello Everyone,

How can I setup a minimum order amount to Rs. 500/-

I dont want any order below Rs. 500/-

Kindly guide me a code or something to do it

I am also offering free delivery over Rs. 4000, which is already active

I am using Dawn theme

Website is householdpoint.pk

Thanks a lot

Hi @kamm0 ,

Thank you for reaching out to the Community. I’m happy to provide some assistance with this request, to ensure it gets resolved.

To successfully achieve this I recommend checking out the Shopify App Store. We have various apps available that may allow you to complete this. For ease, I’ve gone ahead and made a few suggestions listed below that you can look into:

Additionally, I’d also recommend getting in touch with the app developers directly. They will be able to provide clarification on an app’s capabilities and customizations to confirm whether or not the app will fit your shop’s needs. To get in contact with an app developer, you can head to the Shopify App Store and select Support > Send A Message.

Please let me know if you have any other questions or concerns.

Hello @kamm0 ,

Greetings from the Store Watchers Support Team! Happy to help you today.

Go to Online Store → Actions → Edit code. Then find your cart template.

In your cart template file, look for the checkout button code and wrap it with an if condition similar to the one below to hide the button for orders below 500.

{% if cart.total_price < 500 %}
// Your checkout button code here.
{% endif %}

You can also optionally add a custom message if the order is below 500.

{% unless cart.total_price < 500 %}

Minimum order is 500

{% endunless %}

Let me know if need further assistance

Regards,
Store Watchers Support Team

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”
]
}

Hello @kamm0 ,

You can add it in sections/main-cart-footer.liquid.

Let me know if need further assistance.

Regards,
Store Watchers Support Team

and where should I add or wrap it?

can you please add this in the file which I have attached below?

{{ ‘component-cart.css’ | asset_url | stylesheet_tag }}
{{ ‘component-totals.css’ | asset_url | stylesheet_tag }}
{{ ‘component-price.css’ | asset_url | stylesheet_tag }}
{{ ‘component-discounts.css’ | asset_url | stylesheet_tag }}

{%- if settings.show_cart_note -%} {{ 'sections.cart.note' | t }} {{ cart.note }} {%- endif -%}
{% for block in section.blocks %} {%- case block.type -%} {%- when '@app' -%} {% render block %} {%- when 'subtotal' -%}

{{ 'sections.cart.subtotal' | t }}

{{ cart.total_price | money_with_currency }}

{%- if cart.cart_level_discount_applications.size > 0 -%}
    {%- for discount in cart.cart_level_discount_applications -%}
  • {%- render 'icon-discount' -%} {{ discount.title }} (-{{ discount.total_allocated_amount | money }})
  • {%- endfor -%}
{%- endif -%}
{%- if cart.taxes_included and shop.shipping_policy.body != blank -%} {{ 'sections.cart.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }} {%- elsif cart.taxes_included -%} {{ 'sections.cart.taxes_included_but_shipping_at_checkout' | t }} {%- elsif shop.shipping_policy.body != blank -%} {{ 'sections.cart.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }} {%- else -%} {{ 'sections.cart.taxes_and_shipping_at_checkout' | t }} {%- endif -%}
{%- else -%}
{{ 'sections.cart.update' | t }}

<button
type=“submit”
id=“checkout”
class=“cart__checkout-button button”
name=“checkout”
{% if cart == empty %}
disabled
{% endif %}
form=“cart”

{{ ‘sections.cart.checkout’ | t }}

{%- if additional_checkout_buttons -%}

{{ content_for_additional_checkout_buttons }}
{%- endif -%} {%- endcase -%} {% endfor %}

{% schema %}
{
“name”: “t:sections.main-cart-footer.name”,
“class”: “cart__footer-wrapper”,
“blocks”: [
{
“type”: “subtotal”,
“name”: “t:sections.main-cart-footer.blocks.subtotal.name”,
“limit”: 1
},
{
“type”: “buttons”,
“name”: “t:sections.main-cart-footer.blocks.buttons.name”,
“limit”: 1
},
{
“type”: “@app
}
]
}
{% endschema %}

i am having same issue can you help me

sir

I got this working, but when the cart is updated with >500 worth of products, the buttons remain missing even when i clear the cache, etc. What have I done wrong?? :sob:

You can set a minimum order amount using the Cart Lock https://apps.shopify.com/cart-lock app. Follow the below steps:

  1. Open the app and click on the “Add a new rule” button.
  2. Click “Add a new condition” and select the “Cart subtotal” option.
  3. Set 500 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. Save the rule.

Now no one can order for less than Rs. 500/- from your store.