Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Does not work. Something wrong with [var2]? (I don't quite get the [varX] thingy anyway, yet... one day I'll have that figured out as well, I hope, lol...)krileon wrote: Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A
I changed it slightly tokrileon wrote: Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To X
Please Log in or Create an account to join the conversation.
You don't need to change the [var2] or [var3] usage. You only need to replace PLAN_ID_HERE with your plan id found under the id column in CBSubs > Plans.Does not work. Something wrong with [var2]? (I don't quite get the [varX] thingy anyway, yet... one day I'll have that figured out as well, I hope, lol...)
I don't recommend changing it from what I've provided.I changed it slightly to
Conditional 2: [var2] Not Equal To A
(to cover potential other states as I need the field value to be 1 only if the subscription is active), and it works.
You can debug conditions or for errors by enabling debug mode and maximum error reporting in Joomla global configuration. Once done under the Parameters tab of your action you can enable debugging for the action it self.Could still mean that something is wrong with [var2] or else because with these Auto Actions I'm only able to set values of 0, but not 1.
So, can you be bothered with taking another look at it, please? Thanks!
Please Log in or Create an account to join the conversation.
That was all well understood and followed accordingly.krileon wrote: You don't need to change the [var2] or [var3] usage. You only need to replace PLAN_ID_HERE with your plan id found under the id column in CBSubs > Plans.
Sorry, didn't mean to mess with your settings. As explained, just meant to adjust them to my needs here... think I've seen somewhere that other values than "X" could be possible in the status field if plans are not active.krileon wrote: I don't recommend changing it from what I've provided.
Yup, had figured that out already shortly after starting with CBSubs.krileon wrote: Note if you're using a free lifetime plan you'll need to ensure your install is creating subscriptions for free lifetime plans within CBSubs > Settings > Global.
Aaaaaah ok! Indeed, I had turned off CBSubs Fields in the plans, trusting that the Auto Actions would do it all. Turning them back on, now all is working!krileon wrote: Please also check to ensure you're using still using CBSubs Fields or CBSubs SQL Actions to alter the field value as something maybe reverting its value.
Please Log in or Create an account to join the conversation.