【发布时间】:2019-08-28 18:22:42
【问题描述】:
我想列出所有包含打折产品的订单,这样我就可以仅根据打折的订单生成报告 并获取[订单号、订单日期、订单状态、订单总额、用户名、邮箱和电话]
每个订单都有打折的产品
类似
if (order_had_product_with_discount) {
get the [ order number, order date, order status, order total, user name, email and phone ] of this order
}
这不是有效的代码,但我需要知道从哪里开始。
【问题讨论】:
标签: php wordpress methods woocommerce orders