Hello
I am using the latest versions of Joomla, community builder and all of it's plugins.
Allow me to explain the situation.
My site has 2 paid membership plans but also allows registered members without any subscription at all. What differs is the abilities that each user has according to if they have paid for a plan or not.
And here comes the usecase that we can not find a solution for...
User registers. OK
After registration he has no plan assigned to his profile.
After a few days he derides to upgrade to plan A that gives him the ability to have more allowed photos in his cbGallery. On activation of the plan, the allowed photos field updates fine and everything is fine.
Example:
Field value when PLAN A is active becomes 100
So far so good...!
Now... when PLAN expires... then user becomes again a member with not any plan assigned to his profile, but we can not find any way to set the value of the field back to the desired (allowed photos field = 10)
We have tried...
1. CB fields changing on plan activation and deactivation: Works for activation but not for deactivation.
2. Auto Actions
GLOBAL...
Type: Field
User: Automatic
Access: Everybody
Triggers: OnCPayUserstatechange
CONDITIONS...
[var3] Equal to 11 (number of the plan)
[var2] Equal to X (also tried Not Equal to A)
ACTION...
Field: (the field that we want changed)
Operator: Set (Field = Value)
Value: 10
The result is that the field value does not change
Can you please advise?
Thank you in advance.