platedepot Posted March 22, 2020 Share Posted March 22, 2020 Is there any way to alphabetically sort the products as shown on the invoice? I use the invoice to fulfil orders, and I have my physical sorted alphabetically in bins. Being able to sort the products as shown on the invoice would save a great deal of time. Thanks! Mark www.platedepot.com Running Cubecart Version 6.2.9 Link to comment Share on other sites More sharing options...
bsmither Posted March 22, 2020 Share Posted March 22, 2020 In the admin scripts, /sources/orders.index.inc.php: Find near line 322 (Order Overview): if (($inventory = $GLOBALS['db']->select('CubeCart_order_inventory', false, array('cart_order_id' => $summary[0]['cart_order_id']))) !== false) { Change to: if (($inventory = $GLOBALS['db']->select('CubeCart_order_inventory', false, array('cart_order_id' => $summary[0]['cart_order_id']),array('name' => "ASC"))) !== false) { There is an identical statement near line 562 (for Order Printing). Change it as well. I haven't tested this, but it should work. Link to comment Share on other sites More sharing options...
platedepot Posted March 23, 2020 Author Share Posted March 23, 2020 Hi Bsmither-- Thank you for this! Works great. Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.