在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