How to apply a discount for a users first order only

I need to apply a discount for a users first order only. I don't know how to create a condition for a first time order.

Posted: Mar 7, 2012


quadcto on April 23, 2012

Did you happen to get a solution for this at all?

I am also looking for something exactly like this. I am surprised that this already does not exist.

Giving discount to first time user has sort of become a market standard to attract new users.

dianikol on April 23, 2012

You could add an integer field in the user profile. Then with a Rule you could check if this value is 0. 0 means no orders yet for the current user. Of course after the user completes an order with another Rule you should increment this field value by 1.

Hope this makes sense. :)

sol13705 on November 3, 2013

I really want drupal commerce to work for me but there are so many items that are standard in other shopping carts that have to be created from scratch here. Let me know if anyone else figured this out. I need the exact thing, I 10% off the first purchase only.

Arctos on December 12, 2013

In creating a custom module, I was able to add the needed functions to add a custom condition "First Time Customer", that checks whether the user is anonymous (has the anonymous User ID) or it queries the database.

Github page: http://git.io/WCmKdw
Readme instructions pretty straight forward. Use the "Download ZIP" link to the files, put it in your modules folder.

Let me know if you have any other questions.