PreSelect plan

8 years 3 weeks ago #280698 by solferry
PreSelect plan was created by solferry
Dear,

I was wondering, is it possible to have a plan preselected based on a button/link the users uses?

So, lets say:

The users clicks on "register for plan A!" and goes to the subscription page and there is plan A already selected.

Same for "register for plan B!" of course :-)

Please Log in to join the conversation.

8 years 3 weeks ago #280709 by beat
Replied by beat on topic PreSelect plan

solferry wrote: Dear,

I was wondering, is it possible to have a plan preselected based on a button/link the users uses?

So, lets say:

The users clicks on "register for plan A!" and goes to the subscription page and there is plan A already selected.

Same for "register for plan B!" of course :-)


Yes. See link description at top of edit plan screen in cbsubs admin area (just add S for selected to the plan id you want pre-selected).

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: solferry

Please Log in to join the conversation.

8 years 3 weeks ago - 8 years 3 weeks ago #280712 by solferry
Replied by solferry on topic PreSelect plan
Thanks!

...

Just checked.
You mean in the backend I can set a subscription plan which is default.

But what I would like.. on my website I would like to promote 2 subscriptions plans.
Based on which plan they click (A or B) they go to the subscription page where based on A or B subscription plan A or B is selected. So in this case a preselection based on the link the user clicks on.

Please Log in to join the conversation.

8 years 3 weeks ago - 8 years 3 weeks ago #280742 by krileon
Replied by krileon on topic PreSelect plan
When linking to a plans page you need to specify the plan ID in the URL appended with an "s" to pre-select it. Example URL as follows.

Unselected
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1

Selected
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1s

Multiple Plans with Selected
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1s-2-3-4-5


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.
The following user(s) said Thank You: nant, lousyfool

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.233 seconds