How to add a field to the membership cbregName panel-heading?

7 years 3 months ago #289488 by dmsoftware
I am selling digital services associated to domain names such as hosting, ssl, dedicated ip, web management services etc.

When a user purchases more than one subscription, even of the same kind, there is a list like that at at the profile page:

Hosting Basic
Hosting Basic
Hosting Basic

I'd like to add a field aside the cbregName with the field of the domain name. How can I do it?

thanks
Attachments:

Please Log in to join the conversation.

7 years 3 months ago #289537 by krileon
That's the plan name which does support substitutions, but the plan name isn't purchase dependent so I don't really so how you'll be able to do what you're wanting without a custom CB plugin acting on the plans display triggers and modifying the output. Looks like CB Auto Actions can do this below, but I'm not sure how you'll know which plan belongs to what domain.

Global
Triggers: onCPayBeforeDrawPlan
Type: Code
User: User
Access: Registered
Action
Method: PHP
Code:
$vars['var1']->name = 'test!';
Parameters
References: Variable 1

With the above you'll notice every plan name turns to "test!" when logged in.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.726 seconds

Facebook Twitter LinkedIn