Answer the question
In order to leave comments, you need to log in
How to automatically change the user role after reaching the amount of purchases for a certain period?
Different roles have been created, each role has its own coupon, which works automatically, which gives an additional discount.
BUT! how to make an automatic change of the client's role (transition to a level with a higher discount) when the client reaches, for example, the amount N in 365 days? And vice versa, automatic role change in case the turnover has not been gained, for the role which has a smaller discount?
Answer the question
In order to leave comments, you need to log in
Break the task into subtasks. At first make so that you could automatically change roles of the user.
Then make some kind of trigger or do a check every time you receive the order amount.
I really can’t tell you exactly how this is done in WordPress, but move in this direction.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question