Jump to content
Sign in to follow this  
platedepot

Alphabetic Sorting on Invoice

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...