AnsweredAssumed Answered

Currency token and decimals...in a snippet

Question asked by 281db41d4248c87bc98d7319297df8be9cbeaf70 on Mar 1, 2018
Latest reply on Mar 1, 2018 by Grégoire Michel

Hello,

 

I need to display a currency database value in an email snippet.  I've inserted this value as a token.  However, when I send my test emails,  trailing zeroes are eliminated. 

 

For instance:

  • A field containing "1.50" in the database is displayed as "1.5" in the email
  • A field containing "1.00" in the database is displayed as "1" in the email

 

I understand there are velocity scripting solutions to format this number.  However, I don't think you can use velocity script tokens in a snippet?  Is there a way to have the token just be displayed as it appears in the database?

 

I'm thinking I may need to re-create the entire snippet logic in a velocity script?

Outcomes