Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sort by model number in Invoice.php


papa

Recommended Posts

Hello,

 

can someone help me by making sorting in Invoice.php.

 

I want to sort my items by model number in invoice.php.

 

For example:

 

000001

000002

000003

erc.

 

thanks in advance

Link to comment
Share on other sites

This should work (untested) - in admin/includes/classes/order.php change the $orders_products_query to:

 

      $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "' order by products_model");

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...