Skip to Content Skip to Menu

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

[#5934] Generate the form in user subscription for custom style

  • GUEST
8 years 6 months ago - 8 years 6 months ago #281041 by
Hi,

We'd like to have our own page which links to subscription payment page. Basically, generating the form that the user can see in his/hers profile page (subscriptions tab). So we need hidden fields for user id, cbsecuritym3, and to fetch subscription plans.

Could you please either: Point to the file where this form is generated; or, show us a tutorial to achieve this.

Thanks in advance,
LimeSurvey
Last edit: 8 years 6 months ago by krileon.

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

  • GUEST
8 years 6 months ago #281045 by
Found it (I think - please confirm):

To get plans:

$plansMgr = cbpaidPlansMgr::getInstance();
$plans = $plansMgr->loadPublishedPlans( null, true, 'registration', null );

Security token:

cbGetSpoofInputTag('plugin');

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

  • GUEST
8 years 6 months ago #281047 by
Still get this error for two of my three forms, so something is not working:

"Chosen plans combination is not allowed (you must choose coherent plans selection, e.g. mandatory subscription(s) must be active or mandatory plan(s) must be chosen).
Please press back button and select the subscription plan to which you would like to upgrade."

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

  • GUEST
8 years 6 months ago #281048 by
Was missing valid input. This can be considered solved (unless you have some further feedback.)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #281064 by krileon
I would just make your custom HTML in a Joomla article for example and link to the plans pages found at the top of each plan while editing them in CBSubs > Plans. Trying to replicate the form behavior is going to be a nightmare to maintain; especially when we decide to change/rewrite 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.

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

  • GUEST
8 years 6 months ago #281081 by
Noted. Although that displays one extra page for the user.

Thanks!

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

Moderators: beatnantkrileon
Powered by Kunena Forum