Translate Your Online Store
You can easily add several Languages in your Online Store, just go to the Language Section in the Admin Panel. Here, you can add as many languages ...
Sometimes you want to restrict sales to a minimum quantity of products per order. You need to check quantity of item per products.
{% assign qty_valid = true %}
{% for product in order.products %}
{% if product.qty < 5 %}
{% assign qty_valid = false %}
{% endif %}
{% endfor %}
Now, the variable returns true or false if all products in the cart have 5 or more items.
You can then use this varriable to perform logic operations, like hiding a button via CSS.
{% unless qty_valid %}
<style type="text/css">
#button-id{display:none;}
</style>
{% endunless %}
What about restricting orders bellow a certain price amount?
You can perform a check on the {{ order.total }} or any of the other variables:
{{ order.subtotal }}
{{ order.shipping }}
{{ order.tax }}
{{ order.discount }}
Free trial for 14 days. No credit card required.