cancel
Showing results for 
Search instead for 
Did you mean: 

Rounded price problem

Rounded price problem

On magento 2.2.5 I have added the following to our credit memo transactional e-mail....

 

{{var creditmemo.grand_total}}

 

Problem is that produces the following price like: 00.0000, how can I round that to two decimal places only?

 

4 REPLIES 4

Re: Rounded price problem

Hi @SamB_GB

 

Well , you can do that by creating plugins and modifying the decimal values !

 

Below i am sharing the reference  links for the same !

 

https://magento.stackexchange.com/questions/200556/format-price-decimal-points

 

https://community.magento.com/t5/Magento-2-x-PWA-Theming-Layout/Can-t-set-decimal-price-to-4-decimal...

 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Rounded price problem

I believe all of those solutions pertain to the frontend/backend, and not to the transactional email.

Re: Rounded price problem

Still looking for a solution to this. Anyone done this before?

Re: Rounded price problem

Did you get the solution for this ?