cancel
Showing results for 
Search instead for 
Did you mean: 

Order products on pdf invoice

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Order products on pdf invoice

Hi everyone,

 

I would like to know how can i order by name product display in the pdf invoice? 

 

Thank you,

Damien.

2 REPLIES 2

Re: Order products on pdf invoice

@KennedyA Simply track "sales_order_invoice_item_collection_load_before" event and write below line for order by name.

 

$invoiceOb->addAttributeToSort('name', 'asc')

Cheers 

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.

Re: Order products on pdf invoice

Hi GMehta.

I'm not sure, i can't find this event sales_order_invoice_item_collection_load_before