1b.app
Link copied -

remove zeros in variable quantity for emails

There is a system variable for the quantity of goods in letters, it is drawn with four zeros, there are customers who believe that this is a thousand and refuse to order - saying that they do not need a thousand, but only need 1 piece https://skr.sh/s46IcjhjRDJ how can I solve this problem ?
Original question is available on version: ru

Answers:

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
You need to write the variable correctly, in this format
{|$number|number_format:2:".":","|}
Works only for variables in the form {|$....|}
number is the variable itself
number_format:2 - the number is the number of characters after the character
1st quotation mark is the dividing line for cents
2nd quotes - thousandths separator
11.09.2020, 17:25
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
That is, you need to write a variable in this form
{|foreach from=$basketsArray item="a"|}
{|$a.count|number_format:0:".":","|}
{|/foreach|}
PS It depends on how you have it written in the template
11.09.2020, 17:30
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
Here http://i.imgur.com/jjupUtK.png
You need to write {|$e.count|number_format:0:".":","|}
11.09.2020, 17:35
Original comment available on version: ru

Thank you! now everything works great!)
12.09.2020, 08:54
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment