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

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

@ anyone can help

i found the solution maybe someone help this

{% assign cart_totals = cart.total_price | money_without_currency%}
               
              {% if cart_totals  >= '30' %}
               
                {%- unless section.settings.cart_ajax_enable -%}
                
                {%- endunless -%}
             
                 
                
                  
                

                {% else %}
                
                  You haven’t reached the minimum order value to checkout   
                

              {% 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