Product extends ResourceModel
Table of Contents
- INVENTORY_TRACKING_NONE = 'none'
- INVENTORY_TRACKING_PRODUCT = 'product'
- INVENTORY_TRACKING_VARIANT = 'variant'
- PRODUCT_TYPE_DIGITAL = 'digital'
- PRODUCT_TYPE_PHYSICAL = 'physical'
- $availability : string
- $availability_description : string
- $base_variant_id : int|null
- $bin_picking_number : string
- $brand_id : int
- $brand_name : string|null
- $categories : array<string|int, mixed>
- $condition : string
- $cost_price : float
- $custom_fields : array<string|int, mixed>|null
- $date_created : string
- $date_modified : string
- $depth : float
- $description : string
- $fixed_cost_shipping_price : float
- $gift_wrapping_options_list : array<string|int, mixed>
- $gift_wrapping_options_type : string
- $gtin : string
- $height : float
- $id : int
- $inventory_level : int
- $inventory_tracking : string
- $inventory_warning_level : int
- $is_condition_shown : bool
- $is_featured : bool
- $is_free_shipping : bool
- $is_preorder_only : bool
- $is_price_hidden : bool
- $is_visible : bool
- $layout_file : string
- $meta_description : string
- $meta_keywords : array<string|int, mixed>
- $modifiers : array<string|int, mixed>|null
- $mpn : string
- $name : string
- $open_graph_description : string
- $open_graph_title : string
- $open_graph_type : string
- $open_graph_use_image : bool
- $open_graph_use_meta_description : bool
- $open_graph_use_product_name : bool
- $order_quantity_maximum : int
- $order_quantity_minimum : int
- $page_title : string
- $preorder_message : string
- $preorder_release_date : object|null
- $price : float
- $price_hidden_label : string
- $related_products : array<string|int, mixed>
- $retail_price : float
- $reviews_rating_sum : int
- $sale_price : float
- $search_keywords : string
- $sku : string
- $sort_order : int
- $total_sold : int
- $type : string
- $upc : string
- $view_count : int
- $warranty : string
- $weight : float
- $width : float
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
Constants
INVENTORY_TRACKING_NONE
public
mixed
INVENTORY_TRACKING_NONE
= 'none'
INVENTORY_TRACKING_PRODUCT
public
mixed
INVENTORY_TRACKING_PRODUCT
= 'product'
INVENTORY_TRACKING_VARIANT
public
mixed
INVENTORY_TRACKING_VARIANT
= 'variant'
PRODUCT_TYPE_DIGITAL
public
mixed
PRODUCT_TYPE_DIGITAL
= 'digital'
PRODUCT_TYPE_PHYSICAL
public
mixed
PRODUCT_TYPE_PHYSICAL
= 'physical'
Properties
$availability
public
string
$availability
$availability_description
public
string
$availability_description
$base_variant_id
public
int|null
$base_variant_id
$bin_picking_number
public
string
$bin_picking_number
$brand_id
public
int
$brand_id
$brand_name
public
string|null
$brand_name
If brand_name is used, the brand will be created if it doesn't already exist. However, brand_name will never be part of a product response, only the brand_id will.
$categories
public
array<string|int, mixed>
$categories
$condition
public
string
$condition
$cost_price
public
float
$cost_price
$custom_fields
public
array<string|int, mixed>|null
$custom_fields
$date_created
public
string
$date_created
$date_modified
public
string
$date_modified
$depth
public
float
$depth
$description
public
string
$description
$fixed_cost_shipping_price
public
float
$fixed_cost_shipping_price
$gift_wrapping_options_list
public
array<string|int, mixed>
$gift_wrapping_options_list
$gift_wrapping_options_type
public
string
$gift_wrapping_options_type
$gtin
public
string
$gtin
$height
public
float
$height
$id
public
int
$id
$inventory_level
public
int
$inventory_level
$inventory_tracking
public
string
$inventory_tracking
$inventory_warning_level
public
int
$inventory_warning_level
$is_condition_shown
public
bool
$is_condition_shown
$is_featured
public
bool
$is_featured
$is_free_shipping
public
bool
$is_free_shipping
$is_preorder_only
public
bool
$is_preorder_only
$is_price_hidden
public
bool
$is_price_hidden
$is_visible
public
bool
$is_visible
$layout_file
public
string
$layout_file
$meta_description
public
string
$meta_description
$meta_keywords
public
array<string|int, mixed>
$meta_keywords
$modifiers
public
array<string|int, mixed>|null
$modifiers
$mpn
public
string
$mpn
$name
public
string
$name
$open_graph_description
public
string
$open_graph_description
$open_graph_title
public
string
$open_graph_title
$open_graph_type
public
string
$open_graph_type
$open_graph_use_image
public
bool
$open_graph_use_image
$open_graph_use_meta_description
public
bool
$open_graph_use_meta_description
$open_graph_use_product_name
public
bool
$open_graph_use_product_name
$order_quantity_maximum
public
int
$order_quantity_maximum
$order_quantity_minimum
public
int
$order_quantity_minimum
$page_title
public
string
$page_title
$preorder_message
public
string
$preorder_message
$preorder_release_date
public
object|null
$preorder_release_date
$price
public
float
$price
$price_hidden_label
public
string
$price_hidden_label
$related_products
public
array<string|int, mixed>
$related_products
$retail_price
public
float
$retail_price
$reviews_rating_sum
public
int
$reviews_rating_sum
$sale_price
public
float
$sale_price
$search_keywords
public
string
$search_keywords
$sku
public
string
$sku
$sort_order
public
int
$sort_order
$total_sold
public
int
$total_sold
$type
public
string
$type
$upc
public
string
$upc
$view_count
public
int
$view_count
$warranty
public
string
$warranty
$weight
public
float
$weight
$width
public
float
$width
Methods
__construct()
public
__construct([stdClass|null $optionObject = null ]) : mixed
Parameters
- $optionObject : stdClass|null = null
Return values
mixed —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>