Here is an interesting situation that I’ve come across. Here is the scenario.
A store wants to sort the lines of the packing slip based on a series of attributes for each item. In this case the attributes specify warehouse location (Row, Shelf, Bin) and the store wants to print the packing slip items sorted by these attributes to facilitate efficient picking of orders. The attributes are set to “not visible” on catalog pages. So the questions are....
1) How to get the attributes to show up on the packing slip.
2) How to sort the lines of the packing slip based on these attributes.
I’ve found all the files under app/code/core/Mage/Sales/Model/Order/Pdf that control the generation of the Pdf. I would imagine that I’ve got to add a new method to the public function getItemOptions but I’m not sure this is the best way to approach it. (Still a Magento newbie)
So, anyone have any ideas or suggestions on the best way to approach this?