在woocommerce 3
,您应该使用订单的各种属性,方法: product id: $ item-> get_product_id()
$ get_variation_id_id_id_id_id() $ item-> get_order_id()Objects:
使用wc_get_order($ order_id)检索WC_ORDER对象。。。 and meta data associated with the order item:
Unprotected data using WC_Data:
$item->get_data(), $item->get_meta_data()免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3