How can I restrict our Refill product variant only to returning customers?

How can I restrict our Refill product variant only to returning customers?

synthesis345
Visitor
2 0 0

Hi,

 

We offer refills on certain products and while we have relied on customer integrity up to this point, we keep getting new customers trying to purchase refills at the slightly discounted price of the actual product. How can we restrict this only to customers who have already ordered the full priced product?

Replies 3 (3)

Gavinator
Shopify Partner
1318 15 124

You would need to enable customer accounts and let customers know they need to be logged in to order refills.

 

On the product page template you would then add code to conditionally enable the purchase button only if a customer is logged in.

 

{% if customer %}
  Normal add to cart/quick pay button stuff
{% else %}
  This customer is not logged in - show a message with prompt to log in.
{% endif %}

To only do this for customers that have purchased a particular item you can use customer tags.

www.bookthatapp.com
synthesis345
Visitor
2 0 0
Thank you. That makes perfect sense.


FountainHead
Visitor
1 0 0

Did you get this to work the way you wanted it to? I am trying to implement the exact same system but am having some trouble.