Reorder Minimums

mkauffma
Shopify Partner
3 0 0

hello,

I am trying to add in a script for a reorder minimum for our customers. We have a minimum order for first time customers that is $250, and we want a reorder minimum for returning customers to be $100. How can I do this?

0 Likes
Mandelbrotian
Shopify Partner
132 1 19

Hi There,

You can check a logged in customers order count and then show a checkout button or notice of the order minimum using something like

{% if customer.orders_count > 0 %}
// display info for a customer who has already placed an order
{% else %}
// display info for a customer who hasn't logged in, or who hasn't placed an order
{% endif %}

Cheers,

Elliott

Feeling a bit lost? Contact elliot@mandelbrotian.com for help with theme setup, alterations, custom functionality, and app development.
0 Likes