Jump to content

How to send Mailalert -> New Order -> First Cutomer Order


Recommended Posts

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

×
×
  • Create New...