A repeat customer is a great customer.

You now have access to order.new_customer?, order.repeat_customer? and order.repeat_customer_count

A repeat customer is a great customer.
So look after them!

That is why we added something that you can use in your email snippets. You now have access to order.new_customer?, order.repeat_customer? and order.repeat_customer_count.

This allows you to customise your messages based on if they are a repeat customer or not, and how many orders have they placed.

Here is a great snippet we added to our notify seller emails …

{% if order.repeat_customer? %} 
	<div style="background:#f6f6f6;margin-top:1em;">
		<h2>{{ order.user.email }} is a repeat customer!</h2>
		<p>They have now placed {{ order.repeat_customer_count }} orders.</p>
	</div>
{% endif %}

It just lets us know if they are a repeat customer, and then we can do something nice for them.

Later, we extended it with this little nugget …

{% if order.new_customer? %} 
	<div style="background:#f6f6f6;margin-top:1em;">
		<h2>Let's welcome {{ order.user.email }}. They are a new customer.</h2>
	</div>
{% endif %}

Excellent, now we can do special things based on if they are a repeat customer or a new customer.

What about this?

{% if order.repeat_customer_count > 10 %}
	<p>They are a VIP customer</p>
{% endif %}

We did this, and now we take action on repeat customers and new customers and the result is that we are turning far more new customers to repeat customers.

by Craig Sullivan
launch.ly

22 Oct 2014