Order_Edit implements Registerable, Standard_Service

Handles fields and data on the Order Add/Edit screen

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

ajax_order_item()  : WC_Order_Item
Filter the item being added to an order
recalculate_order_item()  : mixed
register()  : mixed
{@inheritdoc}
save_order_item()  : mixed

Methods

ajax_order_item()

Filter the item being added to an order

public ajax_order_item(WC_Order_Item $item, int $item_id, WC_Order $order, WC_Product $product) : WC_Order_Item
Parameters
$item : WC_Order_Item
$item_id : int
$order : WC_Order
$product : WC_Product
Tags
Return values
WC_Order_Item

recalculate_order_item()

public recalculate_order_item(mixed $item[, mixed $order = null ]) : mixed
Parameters
$item : mixed
$order : mixed = null
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

save_order_item()

public save_order_item(mixed $item) : mixed
Parameters
$item : mixed
Tags
Return values
mixed

Search results