Shopify themes, liquid, logos, and UX
Hello!
I am building an ecommerce bakery website using the Taste Theme and I want to set a cart total minimum order value of £15 which means the 'Checkout' button is greyed out until a person has added £15 worth of product to their cart.
I also want to set a maximum order value as I am a small-batch baker so want people to message me before placing large orders. I know there are apps available, but I am trying to keep running costs to a minimum, so is it possible to do in the code?
Here is the link to my website: https://batchedcookies.co.uk/
Any advice that can be provided will be greatly received!
Hi@liambeauchamp for the minimum cart value please refer to the below code also can you please confirm what is the minimum order limit?
{% assign _pVal = cart.total_price | divided_by : 100 %}
{% if _pVal > 10 %}
// Put all your checkout code here
{% else %}
<div style="border:solid 2px red;">Order must be greater than 100 </div>
{% endif %}
Code:
if you are not familiar with coding do let me know i can help you.
thanks
Thank you @Liquid_xPert_SJ. The minimum order value is £15 and yes, I am familiar with coding so will try adding this in
thats good then you can use the same code above and change the price according to your need and it will work.
thanks
Apologies @Liquid_xPert_SJ - that didn't quite work although that is more likely because of my coding. If you can talk me through the coding process and just confirm what I need to add and where, that would be greatly appreciated!
This works great @Liquid_xPert_SJ , but is there a way to still show the items in the cart, right now it hides everything until you get over $500.00:
You can set a minimum and maximum order value in the cart using the PayRules: Hide Payment Methods app to manage payment methods based on order value. Here's how you can do it:
This setup will ensure that the checkout button is only active within the specified order value range.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024