Skip to Content Skip to Menu

💝 Happy Valentine's Day! Sending love with great savings on Professional and Developer Memberships! Get 20% off now with code LOVE-2026!

Get option value from plan and insert in to field

  • krileon
  • krileon
  • ONLINE
  • Posts: 50181
  • Thanks: 8590
  • Karma: 1470
1 hour 53 minutes ago #343371 by krileon
We provide a list of plan / subscription / basket / payment substitutions generally in every single integration tab. So for CBSubs > Fields scroll to the bottom of the Integrations > CB Fields tab and you'll find a list of what is available. [TOTAL_PRICE] for example would be the total amount paid (basket total). [PLAN_PRICE] is the same price the user would see and if you want the actual numeric rate you'd use [PLAN_RATE] or [PLAN_FIRST_RATE] for example.


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.

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 197
  • Thanks: 20
  • Karma: 2
1 hour 42 minutes ago #343373 by wintercorn
Replied by wintercorn on topic Get option value from plan and insert in to field
I've used that to insert in a field cb_feepaid and then display that value in their custom profile, but it doesn't show a value just the text or just 0.00.

This shows 0.00
[cbsubs:if user="#displayed" plan="16" status="A"] £[cbsubs:plans user="#displayed" plan="16" output="rate" /][/cbsubs:if]

This shows the shortcode
[TOTAL_PRICE]

Even adding it directly to the custom profile doesn't pick up the value.

To clarify it's the Price I'm trying to get to display for each user sub.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50181
  • Thanks: 8590
  • Karma: 1470
1 hour 11 minutes ago #343374 by krileon
The price of the option they selected or the price they paid?

This shows 0.00
[cbsubs:if user="#displayed" plan="16" status="A"] £[cbsubs:plans user="#displayed" plan="16" output="rate" /][/cbsubs:if]

That's because the plan price is determined by options selected. That substitution won't pull in their active subscription and calculate the price. It's just pulling the flat price of the plan itself, which if the base price is 0 then it will show 0.

This shows the shortcode
[TOTAL_PRICE]

That's because you can't use that in a field. You need to push it to a field. So create a text field then use CBSubs Fields in your plan to push the price they paid into it.

Is there a reason you need the price in a field? Generally I recommend just leaving that to display in their subscription tab. I'll review improving the [cbsubs:subscriptions /] substitution so you'll be able to do this though as that'd be the appropriate substitution for pulling in subscription price.


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.

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 197
  • Thanks: 20
  • Karma: 2
33 minutes ago - 32 minutes ago #343375 by wintercorn
Replied by wintercorn on topic Get option value from plan and insert in to field
I'm trying to push it to a Custom HTML field like this:

[cbsubs:if user="#displayed" plan="16" status="A"] £[TOTAL_PRICE][/cbsubs:if]

I've tried multiple variations of codes between the tags.

I'm using this in a custom profile.
Last edit: 32 minutes ago by wintercorn. Reason: more context

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

Moderators: beatnantkrileon
Powered by Kunena Forum