Method | Description | |
---|---|---|
PriceRange ( ) | ||
contentcontrollerInit ( $controller ) | ||
generateVariationsFromAttributes ( ProductAttributeType $attributetype, array $values ) | Generates variations based on selected attributes. | |
getVariationByAttributes ( array $attributes ) : null | Pass an array of attribute ids to query for the appropriate variation. | |
onAfterDelete ( ) | Make sure variations are deleted with product. | |
possibleValuesForAttributeType ( $type ) : DataList | Get all the {@link ProductAttributeValue} for a given attribute type, based on this product's variations. | |
updateCMSFields ( FieldList $fields ) | Adds variations specific fields to the CMS. |
public generateVariationsFromAttributes ( ProductAttributeType $attributetype, array $values ) | ||
$attributetype | ProductAttributeType | |
$values | array |
public getVariationByAttributes ( array $attributes ) : null | ||
$attributes | array | |
return | null |
public onAfterDelete ( ) |
public possibleValuesForAttributeType ( $type ) : DataList | ||
return | DataList |
public updateCMSFields ( FieldList $fields ) | ||
$fields | FieldList |