Skip to Content Skip to Menu

[SOLVED] Family subscriptions with CBSubs and AutoActions

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238420 by OldLodgeSkins
It was definitely that...
I'm deleting the accounts now instead of blocking them and except for an error that shows up once it's all done ("JUser: :_load: Unable to load user with ID: 405" - that was to be expected) it works.
So worst case scenario I can do that. And if I manage to change the group instead of deleting the account it'll be even better.

Thanks for all your help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238487 by krileon
I highly suggest not deleting the accounts unless you are using a Code action and PHP to do it. Deleting without using API causes your CB users to go out of sync and leaves behind all their profile data tied to a user id that'll never exist again. You can use cbDeleteUser( USER_ID_HERE ); to safely delete a user with API.


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.

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238490 by OldLodgeSkins
Hi,

Yes I've noticed that...
I'm thinking more along the lines of blocking the child accounts - I already know this works fine - and changing the main account's group now. This will be cleaner than deleting the accounts.

Thanks.

Seb.

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

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238747 by OldLodgeSkins
Hi,

Does "onCPayUserStateChange" work with the dummy payment method?
I'm trying to establish an autoaction when a physical product is ordered, based on your example you gave in this thread a few days ago. I tested my code with another trigger (on profile display) to make sure it works properly and it now does exactly what I want (simply create a folder if it does not exist, and copy a file in it), but when I switch to "onCPayUserStateChange", with or without the conditions, it isn't executed. So I'm wondering if the dummy payment method could have something to do with that problem?

Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238769 by krileon
Yes, onCPayUserStateChange is always fired no matter the gateway or the plan type. It's used by nearly all of the CBSubs integrations as well. Ensure debug mode and maximum error reporting are enabled in Joomla global configuration then ensure debug mode is enabled for your action. This should help debug any errors or issues that might have occurred.


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.

  • OldLodgeSkins
  • OldLodgeSkins
  • OFFLINE
  • Posts: 119
  • Thanks: 5
  • Karma: 2
  • Add-ons
10 years 10 months ago #238775 by OldLodgeSkins
Is there something specific in the debug output I should be looking for?
I have the return of the action set to "var_dump" and I couldn't find any of the variables I have defined in my script. So I'm guessing it wasn't executed and I'm therefore looking for the reason.

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

Moderators: beatnantkrileon
Powered by Kunena Forum