Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vishalarora91/236c549b39f233ab1bf6557a097144fc to your computer and use it in GitHub Desktop.

Select an option

Save vishalarora91/236c549b39f233ab1bf6557a097144fc to your computer and use it in GitHub Desktop.
Minimum order amount validation on Checkout Page - Shopify
{% if checkout.total_price < 20000%}
<style>
.step__footer{ position: relative; padding-top: 35px; }
.step__footer:before{
content: 'Minimum orders have to be over $200.00.';
position: absolute;
top: 0;
left: 0;
font-size: 16px;
text-align: center;
width: 100%;
color: #197bbd;
font-weight: 600;
}
.step__footer__continue-btn{ display: none; }
.anyflexbox .step__footer{
-webkit-flex-direction: initial;
-ms-flex-direction: initial;
flex-direction: initial;
}
</style>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment