hi danielle,
to change the sort for ONLY the email confirmation, you need to modify the following code in includes/classes/order.php:
Code:
$orders_products_query = "select orders_products_id, products_id, products_name,
products_model, products_price, products_tax,
products_quantity, final_price,
onetime_charges,
products_priced_by_attribute, product_is_free, products_discount_type,
products_discount_type_from
from " . TABLE_ORDERS_PRODUCTS . "
where orders_id = '" . (int)$order_id . "'
order by orders_products_id";
in version 155e, this starts on line 168. you can change the code to:
Code:
$orders_products_query = "select orders_products_id, op.products_id, op.products_name,
op.products_model, op.products_price, products_tax,
op.products_quantity, op.final_price,
onetime_charges, p.manufacturers_id,
op.products_priced_by_attribute, op.product_is_free, op.products_discount_type,
op.products_discount_type_from
from " . TABLE_ORDERS_PRODUCTS . " op
left join " . TABLE_PRODUCTS . " p on op.products_id = p.products_id
where orders_id = '" . (int)$order_id . "'
order by p.manufacturers_id";
good luck!