Fonctions et Propriétés de l'objet WooCommerce $order

WooCommerce $order

Les fonctions de $order

// Get Order ID
$order->get_id()
 
// Get Order Totals $0.00
$order->get_formatted_order_total( )
$order->get_cart_tax()
$order->get_currency()
$order->get_discount_tax()
$order->get_discount_to_display()
$order->get_discount_total()
$order->get_fees()
$order->get_formatted_line_subtotal()
$order->get_shipping_tax()
$order->get_shipping_total()
$order->get_subtotal()
$order->get_subtotal_to_display()
$order->get_tax_location()
$order->get_tax_totals()
$order->get_taxes()
$order->get_total()
$order->get_total_discount()
$order->get_total_tax()
$order->get_total_refunded( )
$order->get_total_tax_refunded( )
$order->get_total_shipping_refunded( )
$order->get_item_count_refunded( string $item_type = '' )
$order->get_total_qty_refunded( string $item_type = 'line_item' )
$order->get_qty_refunded_for_item( integer $item_id, string $item_type = 'line_item' )
$order->get_total_refunded_for_item( integer $item_id, string $item_type = 'line_item' )
$order->get_tax_refunded_for_item( integer $item_id, integer $tax_id, string $item_type = 'line_item' )
$order->get_total_tax_refunded_by_rate_id( integer $rate_id )
$order->get_remaining_refund_amount( )
 
// Get Order Items
$order->get_items()
$order->get_items_key()
$order->get_items_tax_classes()
$order->get_item()
$order->get_item_count()
$order->get_item_subtotal()
$order->get_item_tax()
$order->get_item_total()
$order->get_downloadable_items( )
 
// Get Order Lines
$order->get_line_subtotal()
$order->get_line_tax()
$order->get_line_total()
 
// Get Order Shipping
$order->get_shipping_method()
$order->get_shipping_methods()
$order->get_shipping_to_display()
 
// Get Order Dates
$order->get_date_created()
$order->get_date_modified()
$order->get_date_completed( string $context = 'view'  )
$order->get_date_paid( string $context = 'view'  )
 
// Get Order User, Billing & Shipping Addresses
$order->get_customer_id( string $context = 'view'  )
$order->get_user_id( string $context = 'view'  )
$order->get_user( )
$order->get_customer_ip_address( string $context = 'view'  )
$order->get_customer_user_agent( string $context = 'view'  )
$order->get_created_via( string $context = 'view'  )
$order->get_customer_note( string $context = 'view'  )
$order->get_address_prop( string $prop, string $address = 'billing', string $context = 'view'  )
$order->get_billing_first_name( string $context = 'view'  )
$order->get_billing_last_name( string $context = 'view'  )
$order->get_billing_company( string $context = 'view'  )
$order->get_billing_address_1( string $context = 'view'  )
$order->get_billing_address_2( string $context = 'view'  )
$order->get_billing_city( string $context = 'view'  )
$order->get_billing_state( string $context = 'view'  )
$order->get_billing_postcode( string $context = 'view'  )
$order->get_billing_country( string $context = 'view'  )
$order->get_billing_email( string $context = 'view'  )
$order->get_billing_phone( string $context = 'view'  )
$order->get_shipping_first_name( string $context = 'view'  )
$order->get_shipping_last_name( string $context = 'view'  )
$order->get_shipping_company( string $context = 'view'  )
$order->get_shipping_address_1( string $context = 'view'  )
$order->get_shipping_address_2( string $context = 'view'  )
$order->get_shipping_city( string $context = 'view'  )
$order->get_shipping_state( string $context = 'view'  )
$order->get_shipping_postcode( string $context = 'view'  )
$order->get_shipping_country( string $context = 'view'  )
$order->get_address( string $type = 'billing'  )
$order->get_shipping_address_map_url( )
$order->get_formatted_billing_full_name( )
$order->get_formatted_shipping_full_name( )
$order->get_formatted_billing_address( string $empty_content = ''  )
$order->get_formatted_shipping_address( string $empty_content = ''  )
 
// Get Order Payment Details
$order->get_payment_method( string $context = 'view'  )
$order->get_payment_method_title( string $context = 'view'  )
$order->get_transaction_id( string $context = 'view'  )
 
// Get Order URLs
$order->get_checkout_payment_url( boolean $on_checkout = false  )
$order->get_checkout_order_received_url( )
$order->get_cancel_order_url( string $redirect = ''  )
$order->get_cancel_order_url_raw( string $redirect = ''  )
$order->get_cancel_endpoint( )
$order->get_view_order_url( )
$order->get_edit_order_url( )
 
// Get Order Status
$order->get_status( )