Sort Order of Packing Slip
Is there a way to change the sort order of the packing slip?
It would be much easier for us to pick.pack if it was sorted by SKU. It seems quite random at the moment |
Re: Sort Order of Packing Slip
I think the default sorting is by item id which is the order products were added to cart. So it is not random but yes makes no sense most of the time.
It could be also product title, can't remember. You will have to modify the way items are selected within the order and set sorting by whatever you need it to be. It will be a sql query either in func.order.php or func.product.php But you need to find the starting point that calls the "select orders" for the packing slip. |
Re: Sort Order of Packing Slip
the packing slip is difficult as it's not a page in the browser to investigate :(
|
Re: Sort Order of Packing Slip
I'm still struggling with this, I can't even find func.order.php or func.product.php!
|
Re: Sort Order of Packing Slip
I would take a look into /skins/admin/order/packing_slip/parts/body/items.twig classes/XLite/View/PackingSlip.php (these are the files responsible for outputting packing slips) and classes/Model/Repo/Order.php, classes/Model/Repo/Product.php (these are the places where the details of sorting are defined), and maybe classes/Model/Order.php classes/Model/Product.php (these classes should contain sorting methods). Well, I know, this is kind of lots of places to look...
|
Re: Sort Order of Packing Slip
OK, here is something that might be more useful. the twig file gives
Code:
{% for index, item in this.orderItems %} |
All times are GMT -8. The time now is 07:20 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.