Jump to content

Alphabetic Sorting on Invoice


platedepot

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...