Метод |
Описание |
|
get_item_download_url ( integer $download_id ) : string |
Get the Download URL. |
|
get_item_downloads ( ) : array |
Get any associated downloadable files. |
|
get_product ( ) : WC_Product | boolean |
Get the associated product. |
|
get_product_id ( string $context = 'view' ) : integer |
Get product ID. |
|
get_quantity ( string $context = 'view' ) : integer |
Get quantity. |
|
get_subtotal ( string $context = 'view' ) : string |
Get subtotal. |
|
get_subtotal_tax ( string $context = 'view' ) : string |
Get subtotal tax. |
|
get_tax_class ( string $context = 'view' ) : string |
Get tax class. |
|
get_tax_status ( ) : string |
Get tax status. |
|
get_taxes ( string $context = 'view' ) : array |
Get fee taxes. |
|
get_total ( string $context = 'view' ) : string |
Get total. |
|
get_total_tax ( string $context = 'view' ) : string |
Get total tax. |
|
get_type ( ) : string |
Get order item type. |
|
get_variation_id ( string $context = 'view' ) : integer |
Get variation ID. |
|
offsetExists ( string $offset ) : boolean |
offsetExists for ArrayAccess |
|
offsetGet ( string $offset ) : mixed |
offsetGet for ArrayAccess/Backwards compatibility. |
|
offsetSet ( string $offset, mixed $value ) |
offsetSet for ArrayAccess/Backwards compatibility. |
|
set_backorder_meta ( ) |
Set meta data for backordered products. |
|
set_product ( WC_Product $product ) |
Set properties based on passed in product object. |
|
set_product_id ( integer $value ) |
Set Product ID |
|
set_quantity ( integer $value ) |
Set quantity. |
|
set_subtotal ( string $value ) |
Line subtotal (before discounts). |
|
set_subtotal_tax ( string $value ) |
Line subtotal tax (before discounts). |
|
set_tax_class ( string $value ) |
Set tax class. |
|
set_taxes ( array $raw_tax_data ) |
Set line taxes and totals for passed in taxes. |
|
set_total ( string $value ) |
Line total (after discounts). |
|
set_total_tax ( string $value ) |
Line total tax (after discounts). |
|
set_variation ( array $data ) |
Set variation data (stored as meta data - write only). |
|
set_variation_id ( integer $value ) |
Set variation ID. |
|