Product variant API¶
||Returns available variant codes for each given characteristic. If a variant is orderable it also returns its code.||
VariantProductNode is the virtual product which contains the data for all variants that can be ordered.
Since this product has no specific price or stock which is assigned to its SKU, it cannot be added to the basket directly.
It inherits from
ProductNode and contains additional properties.
These properties are automatically validated within the constructor by using the
||Contains the min and max
||Contains all variant characteristics|
OrderableVariantNode represents one specific, orderable variation.
It is defined by its unique
VariantCode or by the deterministic set of
OrderableVariantNode is intended to be added to a basket.
VariantCharacteristic is a specific attribute of a
VariantProduct that is distinctive and describes one aspect of the variant.
VariantProduct must have at least one
A characteristic has a class-unique identifier and a label that is a readable name for a characteristic, for example
color with label
Each possible characteristic value also has a code and a label, for example
VariantPriceRange is a set of two prices which represent the lowest and the highest price of all variants.
AjaxCatalogController:getPriceAction fetches real prices when a variant is fully specified
(that is, all options are selected and
variantCode is in place).
VariantSortService returns the product variants in an ordered form, so they can be displayed in a template.
||Sorts the characteristic codes||
||Gets information for B2B variant table||