How can we improve WHMCS?

Share, discuss and vote for what you would like to see added to WHMCS

Format $promotiondescription

  • David Duarte shared this idea 8 years ago
  • Order Forms
  • 3 Comments


The description is build using the following syntax: $rawdiscount $promorecurring $LANG.orderdiscount that is returned by the variable $promotiondescription.
This looks good in english, but in other languages it looks very awkward.
In english you will have €20 recurring discount , that's perfect.
In other languages you will have €20 recurriente descuento , or €20 recorrente desconto , that's like saying in english €20 discount recurring .
On the templates it's possible to fix this, using the variables of $rawdiscount $promorecurring $LANG.orderdiscount and putting them in the order that we need instead of using the variable $promotiondescription.
But we can't control the sentence that's added to the invoice that is the result of $promotiondescription, and that makes the promotion code feature impossible to use for us, as correct syntax use is very important in these cultures for the sake of company image.
When you build a multi-language system, you can never build a sentence using multiple words using a fixed position, as each language has its syntax.
What I suggest is that we have an option to format the order of the variables $rawdiscount $promorecurring $LANG.orderdiscount in $promotiondescription for each language.
Example:
PT - LANG_$promotiondescription = "$rawdiscount + $LANG.orderdiscount + $promorecurring"
ES - LANG_$promotiondescription = "$rawdiscount + $LANG.orderdiscount + $promorecurring"
En - LANG_$promotiondescription = "$rawdiscount + $promorecurring + $LANG.orderdiscount"

3 Comments

Login to post a comment.

Wow! Each round of Dinosaur Game Online is short, sharp, and exciting, making it perfect for quick breaks, friendly competitions, or chasing an unbeatable personal score! https://dinosaurgameonline.io
Wow! Each round of Dinosaur Game Online is short, sharp, and exciting, making it perfect for quick breaks, friendly competitions, or chasing an unbeatable personal score! https://dinosaurgameonline.io
Totally get what you mean here! Using a fixed variable order in $promotiondescription might work in English, but in other languages it ends up sounding awkward or even incorrect. Letting us define the order of $rawdiscount, $promorecurring, and $LANG.orderdiscount for each language would make multi‑language promotions read naturally and look way more professional. It seems like a small tweak technically, but it would make a huge difference for companies that care about how their messages come across.

If you need a fun break after all that thinking, check out https://italianbrainrot‑clicker.io , it’s surprisingly addictive!