VariantMatrix

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

Class VariantMatrix

View source

Public Methods

MethodDescription
getVariantMatrixHtml()Returns the HTML for a given product’s variant matrix.

getVariantMatrixHtml()

Returns the HTML for a given product’s variant matrix.

View source

Arguments

Returns

string – The variant matrix HTML

Signature

public static string getVariantMatrixHtml ( craft\commerce\elements\Product $product, $name = 'variants' )