BuyFormOptions

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
see
BuyFormOptions::getViewParameters()

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

public bool $addOptionsToProductLink = false

$bundleDefinitionSectionItemId

public int $bundleDefinitionSectionItemId = 0

$bundleDefinitionSectionItemOptions

public array<string|int, mixed> $bundleDefinitionSectionItemOptions = []

$combinationData

public CombinationData|null $combinationData = null

$showOptionsTableFormat

public bool $showOptionsTableFormat = false

$showOptionsUpdatableGrid

public bool $showOptionsUpdatableGrid = false

$showTitleInLabelUniqueImage

public bool $showTitleInLabelUniqueImage = false

Methods

__construct()

Constructor method for BuyFormOptions class.

public __construct(array<string|int, mixed> $arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Tags
see
BuyFormOptions
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>
Return values
array<string|int, mixed>

Search results