BuyFormOptions
in package
This is the BuyFormOptions class, a macro class for the productViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the product's buy form options.
Tags
Table of Contents
$addOptionsToProductLink | : bool | |
---|---|---|
$bundleDefinitionSectionItemId | : int | |
$bundleDefinitionSectionItemOptions | : array<string|int, mixed> | |
$combinationData | : CombinationData|null | |
$disallowGrid | : bool | |
$product | : Product|null | |
$quantityPlugin | : bool | |
$selectDefaults | : bool | |
$showBasePrice | : bool | |
$showImageOptions | : bool | |
$showLongDescription | : bool | |
$showOptionsTableFormat | : bool | |
$showOptionsUpdatableGrid | : bool | |
$showRetailPrice | : bool | |
$showShortDescription | : bool | |
$showTitleInLabelUniqueImage | : bool | |
$showUnavailableLabel | : bool | |
$updatableGridMode | : bool | |
$useUrlOptionsParams | : bool | |
__construct() | Constructor method for BuyFormOptions class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for ProductViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$addOptionsToProductLink
public
bool
$addOptionsToProductLink
= false
$bundleDefinitionSectionItemId
public
int
$bundleDefinitionSectionItemId
= 0
$bundleDefinitionSectionItemOptions
public
array<string|int, mixed>
$bundleDefinitionSectionItemOptions
= []
$combinationData
public
CombinationData|null
$combinationData
= null
$disallowGrid
public
bool
$disallowGrid
= false
$product
public
Product|null
$product
= null
$quantityPlugin
public
bool
$quantityPlugin
= false
$selectDefaults
public
bool
$selectDefaults
= true
$showBasePrice
public
bool
$showBasePrice
= false
$showImageOptions
public
bool
$showImageOptions
= false
$showLongDescription
public
bool
$showLongDescription
= false
$showOptionsTableFormat
public
bool
$showOptionsTableFormat
= false
$showOptionsUpdatableGrid
public
bool
$showOptionsUpdatableGrid
= false
$showRetailPrice
public
bool
$showRetailPrice
= false
$showShortDescription
public
bool
$showShortDescription
= false
$showTitleInLabelUniqueImage
public
bool
$showTitleInLabelUniqueImage
= false
$showUnavailableLabel
public
bool
$showUnavailableLabel
= false
$updatableGridMode
public
bool
$updatableGridMode
= true
$useUrlOptionsParams
public
bool
$useUrlOptionsParams
= false
Methods
__construct()
Constructor method for BuyFormOptions class.
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Tags
Return values
mixed —getViewParameters()
This method returns all calculated arguments and new parameters for ProductViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>