Wednesday, 10 February 2016

Display Attributes on Invoice or Packing Slip in Magento

Add this to Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php, $product->getIngredients(),  replace  as appropriate. 

$product = Mage::getModel('catalog/product')->load($item->getProductId());
         $lines[1][] = array(
         'text' => Mage::helper('core')->__('Ingredients: ') . $product->getIngredients(),
         'feed' => 35
   );

No comments:

Post a Comment