X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Sort Order of Packing Slip (https://forum.x-cart.com/showthread.php?t=77671)

amy2203 02-25-2020 01:26 PM

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

cflsystems 02-25-2020 03:19 PM

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.

amy2203 01-10-2021 10:45 AM

Re: Sort Order of Packing Slip
the packing slip is difficult as it's not a page in the browser to investigate :(

All times are GMT -8. The time now is 09:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.