Skip to Content Skip to Menu

Using Auto Actions to update usergroup when the sub is using Plan Options

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 212
  • Thanks: 22
  • Karma: 2
3 hours 21 minutes ago #343793 by wintercorn
Sorry, another Auto Actions query for the same site.

Can I automatically approve a user based on their plan options so they don't go to admin approval?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50361
  • Thanks: 8621
  • Karma: 1472
3 minutes ago #343794 by krileon
Do you want to do that after payment or just after they've selected those options? Doing so after payment is easy enough, but doing so just on selection alone requires grabbing information from POST and if they cancel the basket you've a user who's approved without paying. To do this after payment you'll start with the auto actions already provided earlier below.

www.joomlapolis.com/forum/professional-members-support/248019-using-auto-actions-to-update-usergroup-when-the-sub-is-using-plan-options#343760

Now you'll need to add the following condition to it.

Condition 4
Field: approved
Operator: Equal To
Value: 0

Next you'll use a Field action with the following configuration.

Field: approved
Operator: Set
Value: 1
Save Directly: No

This will do a normal auto-approval as if you approved them as a moderator. So approval events, emails, etc.. can all happen.


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