Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Plan integration not updating CB fields

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
6 years 8 months ago #302445 by edjec
We have two custom cb_fields that should be assigned values upon new member registration and plan expiration, but we discovered that they are only being updated randomly by cbsubs plan integrations. To state ‘randomly’ is being somewhat optimistic since only about one out of twenty new registrations are assigned. This apparently started happening since the site migration to J3 as it has not been an issue before.

Here is an example of one of the field assignments:

Field cb_memstatus
Operator Set: Field = Value
Value US Membership
Remove value on plan deactivation Yes
Value on plan deactivation Limited Forum Access

Any ideas of where I might look for this problem?


J3.8.5, CB 2.1.3, CBSubs 4.1.1 latest build

Thanks,

Ed

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 8 months ago #302475 by krileon
Replied by krileon on topic Plan integration not updating CB fields
Are you using CB Auto Actions to act on the after registration trigger or on any CBSubs triggers? If so you're likely triggering a double-store resulting in the field values updated by CBSubs being lost since the user object wasn't updated. If you are be sure you set your auto actions to reload the user under the parameters tab. This can also happen if you give a user a subscription in backend since the subscription change happens before profile is saved resulting in field values being lost by the profile save.


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.

Please Log in or Create an account to join the conversation.

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
6 years 8 months ago #302489 by edjec
Replied by edjec on topic Plan integration not updating CB fields
Auto Actions is installed and published and some time ago I had started to create an action using 'on after login' and 'on after userconfirm', but never created any conditions or other parameters. I unpublished this and tested registration, but no change. I also unpublished all of the default actions for blogs, gallery and groupjive since we don't use any of those, but no change. I then unpublished the Auto Actions plugin and retested registration and again no change; it still will not run the cb_fields integrations.

There may be some memberships that are affected by backend changes, but the majority are frontend new paid subscriptions.

So, since I disabled Auto Actions is there anything else that can interfere with this?

Thanks,

Ed

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 8 months ago #302495 by krileon
Replied by krileon on topic Plan integration not updating CB fields
Are your memberships free lifetime? If so ensure free lifetime plans are configured to create subscriptions within CBSubs > Settings > Global. Also ensure the CBSubs Fields integration is public and published within CB > Field Management so it can load.


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.

Please Log in or Create an account to join the conversation.

  • edjec
  • edjec
  • OFFLINE
  • Posts: 132
  • Thanks: 12
  • Karma: 3
  • Add-ons
6 years 8 months ago - 6 years 8 months ago #302502 by edjec
Replied by edjec on topic Plan integration not updating CB fields

ensure free lifetime plans are configured to create subscriptions within CBSubs > Settings > Global.

There is one free plan and ten paid plans. All are enabled to create subscriptions.


Also ensure the CBSubs Fields integration is public and published within CB > Field Management so it can load.

CB_Fields is public and the custom fields are published in Field Management. However, in Field Management for the custom fields, do the integration settings need to be anything other than Normal CB settings?

As I mentioned, these fields have always updated properly until the migration to J3. Is there something that needs to be reconfigured after migration?

Thanks
Last edit: 6 years 8 months ago by edjec. Reason: Additional question

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 8 months ago #302521 by krileon
Replied by krileon on topic Plan integration not updating CB fields
Joomla should have nothing to do with CB Fields usage. What version of Joomla did you migrate from? Have you tried the below in CB Auto Actions with a Field action to see if it updates the field?

Plan Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

Plan Expired
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Not Equal To A


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.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum