Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

auto actions in plans

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 9 months ago #218652 by mfe13
Replied by mfe13 on topic Re: auto actions in plans

krileon wrote: Reviewed and tested the usage again and it already renews expired. Not sure how you ended up with a duplicate unless your plan allows multiple subscriptions to the same plan. Suggest deleting one and trying again to see if it duplicates again.

if I unpublished all plan, the plan child 1 is still there.
However, the 3 plans children have the same settings.

I also suggest adding a query field that grabs their existing subscriptions and test against it in your conditional, because if the subscription is already active you shouldn't add it again or you're going to probably have issues and performance problems. Basically in your query field you'd query the database for an active subscription for the plan you want to add (simple select for id is fine) and check if it's empty or not empty in your conditional.

Here I do not understand, I just have to be complicated for me

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago - 11 years 9 months ago #218653 by krileon
Replied by krileon on topic Re: auto actions in plans
Reviewed further and could not confirm on new subscriptions. Previous test the plan had a wrong duration set. Please ensure your duration is set to lifetime. Please also confirm if the parent was already active or expired before the auto action subscribed to it or the child. Please also confirm if you're subscribing to child only or also child and parent (should subscribe both at same time for accuracy).

if I unpublished all plan, the plan child 1 is still there.
However, the 3 plans children have the same settings.

Sounds like a broken subscription row. If possible delete it from user edit within user management. Then test again to ensure it doesn't happen again.

Here I do not understand, I just have to be complicated for me

You need to check for an existing active subscription before trying to give them another active subscription. Otherwise you'll be trying to give them the same subscription everytime the trigger you're using fires. You can do this by using CB Query Field to check the database for an active subscription then conditional against it.


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.
Last edit: 11 years 9 months ago by krileon.

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

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 9 months ago #218654 by mfe13
Replied by mfe13 on topic Re: auto actions in plans
Ok
Because this date corresponds to nothing

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

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 9 months ago #218658 by mfe13
Replied by mfe13 on topic Re: auto actions in plans

krileon wrote: Reviewed further and could not confirm on new subscriptions. Previous test the plan had a wrong duration set. Please ensure your duration is set to lifetime.

Yes, all plan, parent and child are set to lifetime

Please also confirm if the parent was already active or expired before the auto action subscribed to it or the child.

Parent was active before

Please also confirm if you're subscribing to child only or also child and parent (should subscribe both at same time for accuracy).

The parent is still active, with any plan child and this is what I want.
I will control my self action to see if I did not make a mistake

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218660 by krileon
Replied by krileon on topic Re: auto actions in plans
Strange, if they're all lifetime then they shouldn't even have an expiration date. Not sure what to advise as it uses the same API as backend. Try giving the user a subscription from user management and see how it displays.


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.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
11 years 9 months ago #218661 by mfe13
Replied by mfe13 on topic Re: auto actions in plans
It does not change anything and also every user with a free plan living on the same date in their profile frontpage
I have made a mistake somewhere but I can not find it

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

Moderators: beatnantkrileon
Powered by Kunena Forum