I'm trying to create a link that connects a user directly to the subscription form. I'm actually trying to create it dynamically and to create the URL I need to know what is a consistent syntax/structure of the url?
some of my plans sign up button url looks like this:
index.php/en/user-profile/subscription-form-for-a-plan-test
and some look like this
index.php/en/user-profile/list-of-plans/16-~-50g-meals/sign-up
I'm hoping there is some syntax like:
index.php/en/user-profile/XXXXX
Where XXXX is the alias of the plan and I can dynamically create the alias and just add it on (or into) the url.
You can create a menu item to link to Subscription Form menu option of Membership Pro and choose the plan you want in the menu item parameter (in your case, it should be child menu item of User Profile)
Then link to subscription plan will become index.php/en/user-profile/XXXXX
(XXXXX is alias of the menu item)