V
V
vyacheslavdmitrievich792020-06-11 13:45:53
MODX
vyacheslavdmitrievich79, 2020-06-11 13:45:53

How to make a comma in the price instead of a dot?

How can I change the price in modx revo, instead of dividing the price by a point (4.45 rubles), make a comma (4.45 rubles)?

I use miniShop2. To display the price in the title of a certain category, I use this code:

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor, 2020-06-18
@vyacheslavdmitrievich79

In system setting ms2_price_format , second parameter: [2, ".", " "]

K
Karpion, 2020-06-11
@Karpion

You need to get the number into a string, and then replace the dot with a comma in the string.
What string functions are there in PHP - you should know better.

R
Roman Mirilaczvili, 2020-06-11
@2ord

https://www.php.net/manual/ru/numberformatter.form...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question