Plan Workflow different in CB2 to CB 1.9.1

7 years 10 months ago #282295 by stuntlist
Hi,

I am trying to upgrade a Joomla 3.4.8 site that had CB 1.9.1 and CB Subs 3.0 to a Joomla 3.5.1 site with CB 2.0.14 and CB Subs 4.0.1.

We have a plan called Performer. It shows the same workflow as the old site had. But the plan doesn't show up for a member that it shows up on, on the old site.

All members have a free plan when they registrar. Then depending on the value of some fields they can upgrade to different plans. The 2 fields cb_apprentice and cb_coordinator are Single Checkbox fields. If the member has cb_apprentice = 0 AND cb_coordinator = 0 the Performer Plan should be an upgrade option. On the old site, this works, but on the new site it doesn't, the Performer plan doesn't show up. I have checked the database for the user and both of these fields have a 0 value in them.

If I change the conditions to cb_apprentice <> 1 AND cb_coordinator <> 1 then the plan shows up.

Why would the = 0 condition not work but the <>1 condition does?

Here is the User database record:



Here is the Performer Plan Workflow settings as they were (using = 0):



And here is what shows on the frontend for the user:



If we changed the Workflow to use not equal 1:



And what shows in the user's profile:



Thank you for any help on this issue.

Please Log in to join the conversation.

7 years 10 months ago #282304 by nant

Please Log in to join the conversation.

7 years 10 months ago #282373 by krileon
Replied by krileon on topic Plan Workflow different in CB2 to CB 1.9.1
Checkbox fields can be 1, 0, or NULL. The condition matches exactly so if you use 0 and it's NULL in database then it likely won't match. Typically for checkbox fields you want to use the below operator cases.

checkbox Not Equal To 1
or
checkbox Equal To 1


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.214 seconds

Facebook Twitter LinkedIn