訂單查詢 - 豪樂適拇趾外翻矯正器-德國原裝

訂單查詢

[insert_php]

$customer_orders = get_posts( apply_filters( ‘woocommerce_my_account_my_orders_query’, array(
‘numberposts’ => 80,
‘post_type’ => wc_get_order_types( ‘view-orders’ ),
‘post_status’ => array_keys( wc_get_order_statuses() )
) ) );
foreach ($customer_orders as $ord) {
echo “

“;
$order = new WC_Order($ord->ID);
echo “

“;
echo “

“;

echo “

“;
}
[/insert_php]

單號 訂單日期 姓名 金額 狀態
“.$ord->ID.” “.$ord->post_date.” “.mb_substr($order->get_formatted_shipping_address(),0,1,”UTF-8”).”先生/小姐 “.$order->get_total().” “;
switch ($order->get_status()) {
case “processing”:
echo “處理中”;
break;
case “completed”:
echo “訂單處理完成(寄送中)”;
break;
case “cancelled”:
echo “訂單取消”;
break;

case “failed”:
echo “刷卡失敗”;
break;
default:
echo $order->get_status();
break;
}
echo “

目前共有11人在瀏覽本產品