Home > widget-integration > ProductModel
ProductModel class
Product Item Model - Data model for product item state
Signature:
export declare class ProductModel
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string | ||
|
| |||
|
|
boolean |
Check if current variant is on sale | |
|
|
boolean |
Check if current variant is sold out | |
|
| |||
|
|
string | number | ||
|
number | |||
|
ProductItemVariant$3 | null | |||
|
|
ProductItemVariant$3[] |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Get image for selected variant | ||
|
Select variant by ID | ||
|
Select variant by title (combined option values) |