Liquid, JavaScript, themes, sales channels
How to check the cart minimum value and show checkout button only if minimum value in cart
@ anyone can help
Solved! Go to the solution
This is an accepted solution.
i found the solution maybe someone help this
{% assign cart_totals = cart.total_price | money_without_currency%}
{% if cart_totals >= '30' %}
<div class="cart__submit-controls">
{%- unless section.settings.cart_ajax_enable -%}
<input type="submit" name="update"
class="cart__submit btn btn--secondary"
value="{{ 'cart.general.update' | t }}">
{%- endunless -%}
<input type="submit" name="checkout"
class="cart__submit btn btn--small-wide"
value="{{ 'cart.general.checkout' | t }}">
</div>
{% else %}
<div class="minimum-order-notice">
<span style="color:#990000">You haven’t reached the minimum order value to checkout </span>
</div>
{% endif %}
This is an accepted solution.
i found the solution maybe someone help this
{% assign cart_totals = cart.total_price | money_without_currency%}
{% if cart_totals >= '30' %}
<div class="cart__submit-controls">
{%- unless section.settings.cart_ajax_enable -%}
<input type="submit" name="update"
class="cart__submit btn btn--secondary"
value="{{ 'cart.general.update' | t }}">
{%- endunless -%}
<input type="submit" name="checkout"
class="cart__submit btn btn--small-wide"
value="{{ 'cart.general.checkout' | t }}">
</div>
{% else %}
<div class="minimum-order-notice">
<span style="color:#990000">You haven’t reached the minimum order value to checkout </span>
</div>
{% endif %}
Hi,
Where do I input this code.
Thanks
@CanCartel
most of theme
theme/section/product-template .liquid
else you can find the add to cart button move your cart code inside that condition
do you need more help please share your theme name - and code snippets
Each theme has its own architecture and workflow, so I suggest you hire us and we will work out a solution for your theme, email us at hello@avidbrio.com
User | RANK |
---|---|
24 | |
21 | |
7 | |
6 | |
5 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023