Shopify themes, liquid, logos, and UX
I need to set a minimum purchase amount of $300 for the Customer Tag 'wholesaler' or the Collection 'Wholesale'. The site is using the Impulse theme.
So you can do this by redirecting from the cart with a js snippet. In your main-cart-page.liquid you can add something to the bottom of the file before the schema
{% if customer.tags contains "wholesaler" %}
{% if cart.total_price < 30000 %}
<script>
alert('You need to spend at least $300 as a wholesaler')
window.location.href="/collections/all"
</script>
{% endif %}
{% endif %}
Something like that. If you get the gist of that I'm sure you'll be able to tweak it.
Unfortunately you need to have Shopify plus to edit the checkout, so if someone manually enters the checkout page you won't be able to redirect that.
Thank you for your response! I appreciate you reaching out with a solution.
I do not have Shopify Plus. Does that mean I cannot add your code to main-cart-page.liquid or does that mean in some instances it might not work?
You can use the solution but yes, they would be able to go into the url bar and add /checkout to the main url in order to access the checkout. They are however making changes to the checkout process as we speak, though it's a little unclear to me how this will work. I am constantly in the space so when I understand a bit more I can update.
Hi @BHBC
You can disabled checkout button at cart page and put the validation code provided by @Ninthony
Once validation is success trigger the click of checkout.
Hope it helps...
Hello,
Wholesale Pricing Discount offers minimum cart requirements. You can set either, minimum cart quantity or minimum order amount ($), or both for the discount to be applied for a specific tag as per your requirement.
If a minimum cart requirement is in place, then the price in the cart for the product is going to be based on its retail price. When the minimum purchase amount (in local currency) is reached, the discount applies immediately.
I am a customer success specialist at Wholesale Helper. Happy to walk you through too if you’d like a personalized demo.
I hope this helps 🙂
Ahmed Talha
It is possible to set minimum order value $300 by customer tag or collection using the Cart Lock https://apps.shopify.com/cart-lock app. For this you have to do this:
That's it. Now your wholesale customer cannot buy less than $300.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By 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, 2024