[SOLVED] CBSubs Mailer substitution fails

8 years 5 months ago - 8 years 5 months ago #273747 by activha
Hello

We are trying to set up a mailer with the look of an invoice and have noticed that language substitutions failed with ;[PLAN_REGISTRATION_PRICE]

We only get the string NEGOPACK_N1_MO_PRICE in the email body sent instead of the correct translation set in cblanguageoverride-language;php


'NEGOPACK_N1_MO_PRICE'=>'[cb:if user="#me" user_id="0"]Votre abonnement est de [AUTOMATIC][/cb:if][cb:if user="#me" user_id!="0"]Cet abonnement est de [AUTOMATIC][/cb:if]'

Could you check and tell me where to correct in the php files ?
We need to send mails to expired accounts

Thanks

Please Log in to join the conversation.

8 years 5 months ago #273761 by krileon
Replied by krileon on topic CBSubs Mailer substitution fails
Edit your mailer then click view source and ensure there's no extra characters surrounding your language string. TinyMCE by default for example will surround it with <p elements, which will cause the language string to not be picked up. I'm also unsure how well this'll work with the language override plugin and recommend adding it directly to CBSubs language files to see if issue persists.


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.

8 years 5 months ago #273795 by activha
Replied by activha on topic CBSubs Mailer substitution fails
It seems that the problem came from writing the language strings in the override file.
Moving them to CBSubs language files seems to have solved it
thanks
The following user(s) said Thank You: nant, krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.207 seconds

Facebook Twitter LinkedIn