获取状态=“完成”的订单 ID在 Magento 中
我正在努力获取 Magento 中状态为“完整”的订单的订单 ID 和其他详细信息。我确信在 magento 中有一种方法可以检索所有状态为“完成”的订单。由于我是 magento 的新手,我发现很难解决这个问题。
我想向订单状态为完成的客户发送一封电子邮件,并在发送电子邮件后对其进行标记。但这是它的后面部分。谁能告诉我如何在 magento 中获取状态为 Complete 的所有订单 ID?
任何帮助表示赞赏。提前致谢。
I am working on getting order ids and other details for orders with status ='complete' in Magento. I am sure there is a way in magento where we can retrieve all orders with status as Complete. Since I am a new-bie to magento I am finding it hard to work this out.
I would like to send the customers with order status as Complete an email and mark them once an email is sent. But thats the later part of it. Can any one tell me how in magento can you get all order id's with status as Complete ?
Any help is appreciated. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可以作为来自 Magento 基本安装文件夹的脚本运行。如果它已经在 Magento 文件中运行(控制器或块或其他),则不需要前三行。
编辑:
要查看所有订单的状态和电子邮件:
This can be run as a script from the base Magento install folder. If its running inside of a Magento file already (controller or block or whatever) you don't need the first three lines.
EDIT:
To see all orders with statuses and emails:
获取订单状态为“已完成”的所有产品
To Get All the Products with order status as 'Completed'