|
If anyone still wants to know how to do this (Magento 1.4.1.0):
In: app\code\core\Mage\Sales\Model\Order\Pdf:
Aound line 93 you’ll see something like this:
/* Add body */ foreach ($invoice->getAllItems() as $item){ if ($item->getOrderItem()->getParentItem()) { continue; }
if ($this->y < 15) { $page = $this->newPage(array('table_header' => true)); }
/* Draw item */ $page = $this->_drawItem($item, $page, $order); }
Modify it to look like this:
/* Add body */ foreach ($invoice->getAllItems() as $item){ if ($item->getOrderItem()->getParentItem()) { continue; }
if ($this->y < 15) { $page = $this->newPage(array('table_header' => true)); }
/* Draw item */ $page = $this->_drawItem($item, $page, $order); $page->setLineWidth(0.5); $page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5)); $page->drawLine(25, $this->y, 570, $this->y); $this->y -= 10; }
|