AbanteCart v1.3.4 is released.
public function onModelCheckoutOrder_ProcessData(){ if(func_get_arg(0) != 'sf_order_confirm_mail'){ //prevent multiiple calls return null; } $that = $this->baseObject; $that->data['mail_template_data']['products'] = array(....); //build your own array here}
marceloaraujo, are you AbanteCart or coding newbie? You can change product sorting for products in order confirmation email, by changing data select order On line #358:https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/checkout/order.php#L358Change below code for selection to appropriate sorting $order_product_query = $this->db->query("SELECT * FROM " . $this->db->table("order_products") . " WHERE order_id = '" . (int)$order_id . "'");Something like " order by product_id "