cancel
Showing results for 
Search instead for 
Did you mean: 

Order products on pdf invoice

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