So I have added a new product field successfully which is "Room Number" - an inside field used for picking from the invoice.
This does not appear on the invoice at all, but I would like the invoice to sort by that custom field = products_room, then by products_model
BUT, here is the code with the altered code to sort by products_model, intead of the stock orders_products_id:
admin/includes/classes/order.php
$orders_products = $db->Execute("select *
from " . TABLE_ORDERS_PRODUCTS . "
where orders_id = '" . (int)$order_id . "'
order by products_model");
I changed this to order by products_room,products_model but got 1054 Unknown column 'products_room' in 'order clause'
What am I missing here to get this to work right?
Thanks!
Bookmarks