Im setting up Google trusted stores and I need to call some information which I can do but the format is wrong.
From what I can see there is 2 extra zero's at the and of the numbers which I need to remove.
Required format: "123.45" Your value: "123.4500".
$orderId = $this->getOrderId(); $order = Mage::getModel('sales/order')->loadByIncrementId($orderId); $customer = Mage::getModel('customer/customer')->load($order->getCustomerId()); $address = $order->getShippingAddress();
The code I need to modify is:
<span id="gts-o-total"><?php echo $order->getGrandTotal(); ?></span> <span id="gts-o-discounts">-<?php echo $order->getDiscountAmount(); ?></span> <span id="gts-o-tax-total"><?php echo $order->getTaxAmount(); ?></span> <span class="gts-i-price"><?php echo $item->getBasePrice(); ?></span>