Number of Orders per customer

Posts: 20
Joined: 09/05/2007
Uber DonorBug Finder

Hi,

how to get the number of orders per customer to auto assign a role after the third completed order?

regards

Posts: 20
Joined: 09/05/2007
Uber DonorBug Finder

Maybe its also possible to get role based prices.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Not sure where you'd putting the logic. In custom code, you could keep track of a customer's orders in your own table by hooking into the order submission process (hook_order() on the 'submit' $op). This will help you not have to worry about orders that never make it out of checkout.