How To: Remove Decimals (e.g., Cents) From Price Format
(Doc ID 2168106.1)
Last updated on JANUARY 01, 2024
Applies to:
Oracle Commerce Cloud Service - Version N/A to N/AInformation in this document applies to any platform.
Goal
You want to hide all decimals from prices on your store without affecting other formatting.
Note that, given the second requirement of "not affecting other formatting", using the "numberformat" field would not work.
For example, in pesos, changing the "numberformat" setting ("numberformat" :"000,000,000.00") to ("numberformat" :"000,000,000") would give the result of (000,00). The final outcome is returned as 000,00 because of auto formatting on the front-end, which appends a decimal value (000.00).
For example, in pesos, changing the "numberformat" setting ("numberformat" :"000,000,000.00") to ("numberformat" :"000,000,000") would give the result of (000,00). The final outcome is returned as 000,00 because of auto formatting on the front-end, which appends a decimal value (000.00).
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |