Alejandro Troncoso
2019-10-11T17:15:12Z

minimum_order.liquid

| {% if order.subtotal < 100 %}
|
| // Add this to your checkout block. Change the minimum from 100 to your desired number. Use a large number to block all purchase, change to 0 to block none
| // Design your message
| var message = 'There is a minimum order required of 100 USD'
| var alert_m = ' ' + message + ' &larr; {% t "Go back & Keep Shopping" %} '
|
|
| $(document).ready(function(){
| $("#checkout").before(alert_m)
| $('input').attr('disabled','disabled');
| $('#checkout').attr('style',"background: #e6e6e6;").hide();
| })
|
|
| {% endif %}