Originally Posted by
linuxguy2
ZC V1.5.1
First I inserted this code into orders.php around line 918 which gives me the individual price but it has 4 decimal places which I can't figure out how to truncate to 2 places.
'<td class="product-details" align="right" valign="top" width="60">' . $this->products[$i] ['price'] . '</td>' . "\n" .
Then I tried the code at this thread (by DrByte) which should do it for the TEXT emails but I couldn't get it to work for HTML emails.
"order confirmation email - how do I show per-item price for qty > 0 ?"
Instead of
PHP Code:
$this->products[$i] ['price']
Try
PHP Code:
$currencies->format($this->products[$i] ['price'])
Bookmarks