Hi there,
(sorry for my English, I'm French)
Thanks for your help ! Here is my feedback after testing : It's better but I still have some problems.
I explain, I have :
SOME EXCLUSIVE PLANS
o free plan
o parent plan 1 (without children)
o parent plan 2
-o child plan 1 (SELECTED BY DEFAULT)
-o child plan 2
AND 1 NON-EXCLUSIVE PLANS
[] Print plan
As I explaind in my last messages, child plan 1 and child plan 2 are hidden if the parent 2 is not selected.
Case 1 :
I select free plan, than I register. IT WORKS GREAT.
Case 2 :
I select parent plan 1, than I register. IT WORKS GREAT.
Case 3 :
I select parent plan 2, the children are shown, the child plan 1 (selected by defaut) is selected if I click in the area that did not work at earlier, than I register. IT WORKS GREAT. FIRST PROBLEM SOLVED !
Case 4 :
I select parent plan 2, the children are shown, the child plan 1 (selected by defaut) is selected if I click in the area that did not work at earlier, but I choose the child plan 2, than I register. IT WORKS GREAT. FIRST PROBLEM SOLVED !
Case 5 :
I select parent plan 2, the children are shown, the child plan 1 (selected by defaut) is selected if I click in the area that did not work at earlier, but finaly I select parent plan 1 (or free plan), than I register. IT WORKS GREAT. So the child plan 1 is unselected by javascript when I select parent plan 1.
Case 6 :
I select parent plan 2, the children are shown, the child plan 1 (selected by defaut) is selected if I click in the area that did not work at earlier, and I choose the child plan 2. But finaly I select parent plan 1 (or free plan), than I register. PROBLEM ! The child plan 2 is UNselected AND the child plan 1 is SELECTED by javascript when I select parent plan 1. So I have a warning after validation of the form :
Warning: createSubscriptionsAndPayment::no existing subscription for parent plan id 3 of plan 10 in new subscription ! in /.../.../.../components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.php on line 2086
Thanks for your help !