I need to include the Configurable Product SKU on all print invoices as the configurable product SKU is human readable but the simple products are 16 digit numerical barcodes which makes for picking products a nightmare.
I've found /app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php which writes the document. In it, it has the following which I believe creates the file.
$page->drawText(Mage::helper('sales')->__('Product'), 35, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('SKU'), 255, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Price'), 380, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Qty'), 430, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Tax'), 480, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Subtotal'), 535, $this->y, 'UTF-8');
My question is how can I change 'SKU' to be the configurable product SKU. All products in my store are configurable so it's not an issue it overrides the simple product sku.
Thanks.