public
|
|
public
string
|
#
dfw_attribute_label( string $label, string $meta_key )
Change the label of Order item meta keys
Change the label of Order item meta keys
Parameters
- $label
- Label for the meta
- $meta_key
- Order item meta key
Returns
string
Since
1.0
Hook
woocommerce_attribute_label
|
public
array
|
#
dfw_hidden_order_itemmeta( array $meta_keys )
Meta keys which will be hidden under order item
Meta keys which will be hidden under order item
Parameters
- $meta_keys
- Order Item Hidden Meta keys
Returns
array $meta_keys
Since
1.0
Hook
woocommerce_hidden_order_itemmeta
|
public static
boolean
|
#
dfw_has_deposit( integer $order )
Check if the order has deposit enabled
Check if the order has deposit enabled
Parameters
Returns
boolean
Since
1.0
|
public
|
#
dfw_register_post_status( )
Register a new order status for payment plans
Register a new order status for payment plans
Since
1.0
|
public
array
|
#
dfw_add_order_status( array $order_statuses )
Add order status to WooCommerce
Add order status to WooCommerce
Parameters
- $order_statuses
- Array with all order statuses
Returns
array
Hook
wc_order_statuses
|
public
array
|
#
dfw_valid_order_statuses( array $statuses )
Statuses that can be completed
Statuses that can be completed
Parameters
- $statuses
- Array with all valid order statuses
Returns
array
Since
1.0
Hook
woocommerce_valid_order_statuses_for_payment_complete
|
public
array
|
#
dfw_payment_complete_order_status( array $status, integer $order_id )
Complete order status
Parameters
- $status
- Order status
- $order_id
- Order ID
Returns
array
Since
1.0
Hook
woocommerce_payment_complete_order_status
|
public
|
#
dfw_before_order_itemmeta( integer $item_id, $item, integer $product )
Display 'Deposit' or Plan name after the item name based on the deposit type on order page
Display 'Deposit' or Plan name after the item name based on the deposit type on order page
Parameters
- $item_id
- Order Item Id
- $item
- item object
- $product
- Product Id
Since
1.0
Globals
mixed $wpdb
Hook
woocommerce_before_order_itemmeta
|
public
array
|
#
dfw_request_query( array $vars )
Get the Child orders in a specific plan
Get the Child orders in a specific plan
Parameters
- $vars
- Array containing post data
Returns
array
Since
1.0
|
public
|
#
dfw_process_deposits_order( integer $order_id )
Create payment plans subsequent orders
Create payment plans subsequent orders
Parameters
Since
1.0
|
public
|
#
dfw_check_cancelled_order( integer $order_id )
Cancel child orders if parent order is cancelled
Cancel child orders if parent order is cancelled
Parameters
- $order_id
- Parent Order ID
Since
1.0
|
public
|
#
dfw_after_order_itemmeta( integer $item_id, mixed $item, integer $product )
Show information after order item meta
Show information after order item meta
Parameters
- $item_id
- Order Item Id
- $item
- Order Item object
- $product
- Product ID
Since
1.0
Globals
$wpdb;
Hook
woocommerce_after_order_itemmeta
|
public static
|
#
dfw_create_order( $payment_date, integer $original_order_id, integer $payment_number, mixed $item, string $status = '' )
Create new orders for deposits
Create new orders for deposits
Parameters
- $payment_date
- $original_order_id
- Order Id of the original order
- $payment_number
- Payment Number
- $item
- Order item object
- $status
- Order status
Since
1.0
|
public
|
|
public
|
#
dfw_order_item_meta_end( integer $item_id, mixed $item, WC_Order $order )
Add meta information on My Account orders
Add meta information on My Account orders
Parameters
- $item_id
- Order Item ID
- $item
- Order item object
- $order
- Order object
Since
1.0
|
public
string
|
#
dfw_order_item_name( string $item_name, mixed $item )
Add Deposit or Plan Name after the item name
Add Deposit or Plan Name after the item name
Parameters
- $item_name
- Order item name
- $item
- Order item object
Returns
string
Since
1.0
Hook
woocommerce_order_item_name
|
public static
boolean
|
#
has_deposit( integer $order )
Check if the order has deposit selected
Check if the order has deposit selected
Parameters
Returns
boolean
Since
1.0
|
public
array
|
#
dfw_get_order_item_totals( array $total_rows, integer $order )
Add remaining amount in the order item totals info
Add remaining amount in the order item totals info
Parameters
- $total_rows
- Order Totals rows
- $order
- Order Id
Returns
array
Since
1.0
Hook
woocommerce_get_order_item_totals
|