cancel
Showing results for 
Search instead for 
Did you mean: 

Custom attribute to packing slip pdf

Custom attribute to packing slip pdf

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
		);
1 REPLY 1

Re: Custom attribute to packing slip pdf

no solution to this yet ?Smiley Sad