LMS: How to create decimal separator for price? - Forum | JoomShaper
Solved Extensions

LMS: How to create decimal separator for price?

Asked by thanhhx57 2 years ago Last activity 2 years ago

Hi,

Thank you for releasing beautiful templates. I have a beautiful website from Edulif template.

However, I am experiencing a poor display when displaying prices in Vietnam Dong. I don't know how to display the decimal separator for the price. Can you add this feature to the LMS component? Decimal separation can be shown with a period (.) or comma (,) or sometimes the opposite.

Current display: https://prnt.sc/Ua2MpLhgPAyt

Thanks.

Accepted answer

Marked as the solution
Ofi Khan Staff

Sorry, there is no thousand separator option in SP LMS. You can customize the code for it. We do not provide customization support.

1 more reply

Ofi Khan Staff
2 years ago · edited

Hello thanhhx57

Please go to this locations:

  • components/com_splms/helpers/helper.php
  • administrator/components/com_splms/helpers/splms.php

and replace the files with the attached files. You need to unzip the file and then replace.

This will replace the decimal point from dot(.) to comma(,). You can also use other marks. Just replace the comma in 3 places in both files to your desired symbol.

https://prnt.sc/lvYGkPm0rNxO

Best regards

thanhhx57 Asked this

Sorry Ofi Khan, I mischaracterized the problem I wanted. I want a dot separating the thousandths and units in the selling price. It looks like I demo in the html below:
https://prnt.sc/Z-QSs3Vb5t0f

In Vietnam, do not display prices like: 1.000.000,12 or 500,000.57đ. The decimal part smaller than 1 dong has a very small value so people do not use it.

Thanks.

Ofi Khan Staff

I do not find any thousand separator on Edulif template. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup with you before sharing.

thanhhx57 Asked this

I have sent the Admin page account information in the attached content. Please help me check.

Log in to reply.