1

In abandoned cart email I have

<?= $item->getPriceInclTax() ?> 

and it looks like this

29.0000

Is it possible to change to

29.00

1 Answer 1

1

You can use number_format function

<?= number_format($item->getPriceInclTax(), 2) ?> 
2
  • Perfectly. Thank you for help. Do you know how to add a currency symbol? Commented Mar 19, 2023 at 21:00
  • Check this solution to add currency symbol magento.stackexchange.com/questions/130391/… Commented Mar 20, 2023 at 5:30

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.