Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CBSubs plans do not open if the user is registered, and on another parent plan

  • aamet
  • aamet
  • OFFLINE
  • Posts: 85
  • Thanks: 1
  • Karma: 0
9 years 10 months ago #257966 by aamet
CBSubs 3.0 CB 1.9.1, J 2.5.27

If a member is on a basic parent plan, and wants to upgrade to a different plan under another parent, the Parent plan is visible with the upgrade button, but the child plans do not display at all. This has always worked previously, so I am not sure what has changed to stop it working.

Parent 1 (free, unlimited)
Child 1

Parent 2 (free, unlimited)
Child 2

So a member of Child 1, can see Parent 2 and the upgfrade button, but not the Child 2, which Must be displayed as it is not possible to be join Parent 2 without selecting Child 2.

any ideas?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #257991 by krileon
If you mean on the access page then you need to have the parent and the child both protection the information and CBSubs will propose both. We've already a pending ticket for child plans to display without having to do this, but for now that's how it's done. If you mean for a plans URL then you need to delimiter the plan IDs in the URL with a dash (e.g. 5-7).


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.

  • aamet
  • aamet
  • OFFLINE
  • Posts: 85
  • Thanks: 1
  • Karma: 0
9 years 10 months ago - 9 years 10 months ago #258007 by aamet
No, I'll give you a clearer example.

A public viewer can go to the register page, and they are offered a selection of :

Parent 1
Parent 2

If they tick Parent 1, it opens up and give them a choice of

Parent 1
Child 1a (maybe pre-selected)
Child 1b

If they decide they want Parent 2 plan instead and then click on Parent 2, then this opens up Child 2a and child 2b

However, lets say they select Parent1-Child1a, and register. They then decide a week later to upgrade to Parent 2-Child 2b..

They log in and go to their profile. they can see Parent 2, and select it, but it does not open up to show the Child 2a, and 2b options.

I have removed ALL conditions for the plans to be displayed (or not) and it makes no difference. I have opened and save all the plans as well.

The problem is occurring for members who are already registered, but in a different parent plan to the one required.

I saw this issue once before a few years ago, and I seem to recall there was a bug or something, and someone suggested creating a dummy plan, but I may be barking up a tree.

I can give access to the site if this helps. Thanks, D
Last edit: 9 years 10 months ago by aamet. Reason: modified text

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258009 by krileon
Ensure the child plans are set to allow upgrades. Registered users making a purchase in most cases will be considered an upgrade so if the plans don't allow upgrades they won't be able to see them. That's the only thing I can think of that'd block their display.


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.

  • aamet
  • aamet
  • OFFLINE
  • Posts: 85
  • Thanks: 1
  • Karma: 0
9 years 10 months ago - 9 years 10 months ago #258042 by aamet
I have experimented a bit more and can see this problem occurs under certain conditions:

If a Child of Parent Plan 1 has expired, meaning the user is now just a free member of the Parent 1 (level Registered), then the Parent 2 selector does NOT open to show child plans when selected. Furthermore it is possible to then select another child of Parent Plan 1, and the selector of Parent Plan2 is still set. So the form is screwing up. Console error shows:

[jquery.form] terminating; zero elements found by selector

HOWEVER, if the Child of Parent Plan is still valid (unexpired), then the Parent 2 select opens correctly.

Parent 2 Plan is visible to Public

Parent 2 Child 2a is visible to Public
Parent 2 Child 2b is visible to Registered

All plans allow upgrades.
Last edit: 9 years 10 months ago by aamet. Reason: added text to end

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258106 by krileon
Looks like it's a bug in the jQuery. Try setting it to always show the child plans then see if it's working ok. I think I understand why the jQuery is failing though as it's looking for a checkbox or radio to see if the plan has been selected, but one doesn't exist when the plan is already subscribed to (expired or otherwise).


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