how to check the cart minimum value and show checkout button only if minimum value in cart

Solved
AvidBrio
Shopify Expert
128 6 12

How to check the cart minimum value and show checkout button only if minimum value in cart

 

@ anyone can help

If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com
0 Likes
AvidBrio
Shopify Expert
128 6 12

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 %}
If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com
0 Likes