2 replies [Last post]
pebosi@drupal.org's picture
Offline
Uber DonorBug Finder
Joined: 09/05/2007
Juice: 47
Was this information Helpful?

Hi,

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

regards

pebosi@drupal.org's picture
Offline
Uber DonorBug Finder
Joined: 09/05/2007
Juice: 47
Re: Number of Orders per customer

Maybe its also possible to get role based prices.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Number of Orders per customer

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.