Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As the official Ubercart forums seem to be overrun by spammers/spambots, I hope it's okay if I post a support question in this place. Here it goes:
How can I create a condition (using the Rules module) based on the current user's grand total money spent? Is there any way to access this value?
My goal is to assign a certain role to all users who have spent a certain minimum of money in total (and not just in a single purchase).
Comments
Comment #1
TR CreditAttribution: TR commentedYou'd have to write custom code. Depending on when/where you wanted to do this, it could be done with a hook implementation (for example hook_uc_order() if you're performing this at checkout), or your could write a custom Rules condition, or use a PHP rules condition, or ...