CBsubs language substitution in language string

2 years 6 months ago - 2 years 6 months ago #326776 by activha
Hello
I did not find the answer to this one in the forums
I need to have a dynamic string displaying the price which can vary like this :
'PLAN_AN_TEXT' => '<div class="text-justify p-2"><h1 class="text-center">ComActiv<br /><small>adhésion annuelle</small></h1><h2 class="text-center mt-3 mb-5">[PLAN_AN_PRICE]<small> ht/entreprise/mois</small></h2><p class="lead">Pour rendre vos campagnes de communication bla bla blas.</p><p>bla bla bla</div>',
where the string for the price is:
'PLAN_AN_PRICE' => '[AUTOMATIC]',
However it does not seem to work that way.
Could you tell me if it's doable ?
Also at the same time I'd like to have the price (which is paid annually) divided by 12 for the display. Is there any CB substitution which would allow to do
[cb:something= ¨PLAN_AN_PRICE / 12 /]
Any hint ?
Thanks

Please Log in to join the conversation.

2 years 6 months ago #326780 by krileon
Add [AUTOMATIC] to PLAN_AN_TEXT and use PLAN_AN_TEXT in the "Price display of plan (default: [AUTOMATIC])" parameter. Inline language strings are not supported.

Also at the same time I'd like to have the price (which is paid annually) divided by 12 for the display. Is there any CB substitution which would allow to do

There is no functionality for doing math operations in substitutions. It's only available in CB Auto Actions as a custom parser. It maybe made available in a later CB release as a general substitution usage though.


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.309 seconds

Facebook Twitter LinkedIn