Product
- Type
- Class
- Namespace
- craft\commerce\helpers
- Inherits
- craft\commerce\helpers\Product
- Since
- 2.0
Product helper
View source (opens new window)
# Public Methods
Method | Description |
---|---|
populateProductFromPost() | |
populateProductVariantModel() | Populates all Variant Models from HUD or POST data |
# populateProductFromPost()
View source (opens new window)
Returns
craft\commerce\elements\Product
Throws
# populateProductVariantModel()
Populates all Variant Models from HUD or POST data
View source (opens new window)
Arguments
$product
(craft\commerce\elements\Product)$variant
$key