m.andrzejak Posted August 7, 2013 Share Posted August 7, 2013 Hello, Can anybody tell me how can I simply add information on Mailalert - New Order e-mail is that First customer order? I have SQL query: SELECT c.id_customer, c.email, COUNT(o.id_order) AS Suma FROM ps_customer AS c LEFT JOIN ps_orders AS o ON o.id_customer = c.id_customer WHERE c.id_customer = '.(int)$customer->id.' GROUP BY c.id_customer But how can I implement this into email? Link to comment Share on other sites More sharing options...
vekia Posted August 7, 2013 Share Posted August 7, 2013 you have to pass the result of this query to the variables array, which are attached to the email Link to comment Share on other sites More sharing options...
Recommended Posts