duandu8892 2015-02-04 20:58
浏览 24

如何使用prestashop 1.6.0.11 webservice获取付费订单的电子邮件

Im using the prestashop 1.6.0.11 webservice and I need to know when a payment is accepted and then get the email of that user. I cant find nothing about that in the prestashop documentation.

i've activated the "orders" and "order_payments" resource with (GET)(PUT)(POST)(DELETE)(HEAD) in the webservice configuration option but i dont know how to get it with the api.

I can get the email from the Mysql Db with a query like this:

SELECT c.email
FROM ps_customer AS c
LEFT JOIN ps_orders AS o ON c.id_customer = o.id_customer
LEFT JOIN ps_order_payment AS p ON o.reference = p.order_reference
WHERE  p.order_reference = "JTAGSRWCH"

But i dont think is a good idea to work directly with the db.

  • 写回答

0条回答 默认 最新

    报告相同问题?