Hi, I would like to add "packingsize" attribute to the product row in packing slip pdf so its easier to collect correct products.
I also tried with found guide from this forums to add same attribute to the invoice pdf but no luck.
Code this far: (app/code/local/MyCustom/Invoice/Model/Order/Pdf/Items/Invoice/Default.php
I need some sort of config.xml also to do this rewrite ?
$product = Mage::getModel('catalog/product')->setStoreId($item->getStoreId())->loadByAttribute('sku', $this->getSku($item));
$attribute = $product->getResource()->getAttribute('packingsize');
$_packingsize = $attribute ->getFrontend()->getValue($product);
$lines[0][] = array(
'text' => ''.$_packingsize,
'feed' => 35
);