Product

Type
Class
Namespace
craft\commerce\helpers
Inherits
craft\commerce\helpers\Product
Since
2.0

Class CommerceVariantMatrixHelper

View source

Public Methods

MethodDescription
populateProductFromPost()
populateProductVariantModel()Populates all Variant Models from HUD or POST data

populateProductFromPost()

Signature

public static craft\commerce\elements\Product populateProductFromPost ( )

populateProductVariantModel()

Populates all Variant Models from HUD or POST data

View source

Arguments

Returns

craft\commerce\elements\Variant

Signature

public static craft\commerce\elements\Variant populateProductVariantModel ( craft\commerce\elements\Product $product, $variant, $key )