-
- flmag

-
Total Posts: 49
Joined: 2008-12-08
|
in app/code/core/Mage/Sales.Model/Order/Pdf/Abstract.php put the first if after the second one in the insertTotals() method
You should create a new class and override this one for best practice
if ((float)$source->getTaxAmount()){ $order_tax = Mage::helper('sales')->__('Tax :'); $page->drawText($order_tax, 475-$this->widthForStringUsingFontSize($order_tax, $font, 7), $this->y, 'UTF-8');
$order_tax = $order->formatPriceTxt($source->getTaxAmount()); $page->drawText($order_tax, 565-$this->widthForStringUsingFontSize($order_tax, $font, 7), $this->y, 'UTF-8'); $this->y -=15; }
if ((float)$source->getShippingAmount()){ $order_shipping = Mage::helper('sales')->__('Shipping & Handling:'); $page->drawText($order_shipping, 475-$this->widthForStringUsingFontSize($order_shipping, $font, 7), $this->y, 'UTF-8');
$order_shipping = $order->formatPriceTxt($source->getShippingAmount()); $page->drawText($order_shipping, 565-$this->widthForStringUsingFontSize($order_shipping, $font, 7), $this->y, 'UTF-8'); $this->y -=15; }
|