ExternalProduct
in package
Uses
Product
Output type representing an external/affiliate product.
Table of Contents
- $attributes : array<string|int, mixed>
- The product attributes.
- $button_text : string|null
- $date_created : string|null
- The date the product was created.
- $date_modified : string|null
- The date the product was last modified.
- $description : string
- The full product description.
- $dimensions : ProductDimensions|null
- The product dimensions.
- $images : array<string|int, mixed>
- The product images.
- $internal_notes : string|null
- Internal notes (ignored in schema).
- $name : string
- The product name.
- $product_type : ProductType
- The product type.
- $product_url : string|null
- $raw_product_type : string
- The raw product type as stored in WooCommerce. Useful when product_type is OTHER.
- $raw_status : string
- The raw status as stored in WordPress. Useful when status is OTHER.
- $raw_stock_status : string
- The raw stock status as stored in WooCommerce. Useful when stock_status is OTHER.
- $regular_price : string|null
- The regular price of the product. Null when not set.
- $reviews : Connection
- Customer reviews for this product.
- $sale_price : string|null
- The sale price of the product.
- $short_description : string
- The short product description.
- $sku : string|null
- The product SKU.
- $slug : string
- The product slug.
- $status : ProductStatus
- The product status.
- $stock_quantity : int|null
- The number of items in stock.
- $stock_status : StockStatus
- The stock status of the product.
Properties
$attributes
The product attributes.
public
array<string|int, mixed>
$attributes
$button_text
public
string|null
$button_text
$date_created
The date the product was created.
public
string|null
$date_created
$date_modified
The date the product was last modified.
public
string|null
$date_modified
$description
The full product description.
public
string
$description
$dimensions
The product dimensions.
public
ProductDimensions|null
$dimensions
$images
The product images.
public
array<string|int, mixed>
$images
$internal_notes
Internal notes (ignored in schema).
public
string|null
$internal_notes
$name
The product name.
public
string
$name
$product_type
The product type.
public
ProductType
$product_type
$product_url
public
string|null
$product_url
$raw_product_type
The raw product type as stored in WooCommerce. Useful when product_type is OTHER.
public
string
$raw_product_type
$raw_status
The raw status as stored in WordPress. Useful when status is OTHER.
public
string
$raw_status
$raw_stock_status
The raw stock status as stored in WooCommerce. Useful when stock_status is OTHER.
public
string
$raw_stock_status
$regular_price
The regular price of the product. Null when not set.
public
string|null
$regular_price
$reviews
Customer reviews for this product.
public
Connection
$reviews
$sale_price
The sale price of the product.
public
string|null
$sale_price
$short_description
The short product description.
public
string
$short_description
$sku
The product SKU.
public
string|null
$sku
$slug
The product slug.
public
string
$slug
$status
The product status.
public
ProductStatus
$status
$stock_quantity
The number of items in stock.
public
int|null
$stock_quantity
$stock_status
The stock status of the product.
public
StockStatus
$stock_status
