Testcode

$order_id =10;
$order = wc_get_order($order_id);
$order_data = $order->get_data();
$order_id = $order_data[‚id‘];
$order_parent_id = $order_data[‚parent_id‘];
$order_status = $order_data[’status‘];
$order_currency = $order_data[‚currency‘];
$order_version = $order_data[‚version‘];
$order_payment_method = $order_data[‚payment_method‘];
$order_payment_method_title = $order_data[‚payment_method_title‘];
$order_total_final = $order_data[‚total‘];

$order_date_created = $order_data[‚date_created‘]->date(‚M d, Y‘);
$order_date_modified = $order_data[‚date_modified‘]->date(‚Y-m-d H:i:s‘);

$order_timestamp_created = $order_data[‚date_created‘]->getTimestamp();
$order_timestamp_modified = $order_data[‚date_modified‘]->getTimestamp();

$order_discount_total = $order_data[‚discount_total‘];
$order_discount_tax = $order_data[‚discount_tax‘];
$order_shipping_total = wc_price($order_data[’shipping_total‘]);
$order_shipping_tax = $order_data[’shipping_tax‘];
$order_total = $order_data[‚cart_tax‘];
$order_total_tax = $order_data[‚total_tax‘];
$order_customer_id = $order_data[‚customer_id‘];

Dieser Eintrag wurde veröffentlicht am . Setzte ein Lesezeichen permalink.