-1

I am trying to customize Magento Packing Slips and have the requirement to add the product SKU and Product name to the footer column of the Packing Slip but I cannot find the variable that contains this information.
Does anyone know where to find it?

  • And if order contains more then one product which of them you want to put in the footer? – user487772 Jun 10 '13 at 12:55
  • @Tim Each sku contained in the order and the product name... – user1704524 Jun 10 '13 at 14:26
  • What file are you modifying? – user487772 Jun 10 '13 at 19:03
3

It depends which class you're dealing with (Shipment, Invoice, Packaging). For example, if you were modifying the invoice PDF you'd use an the invoice object instance like this:

foreach ($invoice->getAllItems() as $item) :
    echo $item->getSku();
endforeach;

Edit '$invoice' based on your class.

| improve this answer | |
  • Thanks for the assitance. I have a strange requirement to merge the pick list into the Packing slip. For example, If an order contains 5 items with x quantity I need to add it to the bottom of the packing sheet... – user1704524 Jun 11 '13 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.