Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Everyone,
How can I setup a minimum order amount to DKK 149/-
I dont want any order below DKK. 149/-
Kindly guide me a code or something to do it (I prefer not using a app)
I am using Stiletto theme
Website is www.melchiorjewelry.com
If possible I would like to add a custom message if the order is below 140DKK.
Thanks a lot
@stinem123 wrote:Hello Everyone,
How can I setup a minimum order amount to DKK 149/-
I dont want any order below DKK. 149/-
Kindly guide me a code or something to do it (I prefer not using a app)
I am using Stiletto theme
Website is www.melchiorjewelry.com
If possible I would like to add a custom message if the order is below 140DKK.
Thanks a lot
To set a minimum order amount of DKK 149 on your Shopify store:
document.addEventListener("DOMContentLoaded", function() {
const minOrderAmount = 149;
const cartTotal = Shopify.checkout ? Shopify.checkout.total_price / 100 : 0;
if (cartTotal < minOrderAmount) {
alert(`Minimum order is DKK 149. Your order is DKK ${cartTotal.toFixed(2)}`);
const checkoutButton = document.querySelector('[name="checkout"]');
if (checkoutButton) checkoutButton.disabled = true;
}
});
{% if cart.total_price < 14900 %}
<div class="alert alert-warning">Your order is below DKK 149. Please add more items.</div>
{% endif %}
This will alert users and display a message if their cart total is below DKK 149.
Best regards,
Diana Peters
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024