BuyFormQuantity
in package
This is the BuyFormQuantity 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 quantity.
Tags
Table of Contents
$class | : string | |
---|---|---|
$forceMinQuantityZero | : bool | |
$manualMaxQuantity | : int|null | |
$manualMinQuantity | : int|null | |
$product | : Product|null | |
$quantityPlugin | : bool | |
$selectableBoxRows | : int | |
$showSelectableBox | : bool | |
__construct() | Constructor method for BuyFormQuantity 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
$class
public
string
$class
= ''
$forceMinQuantityZero
public
bool
$forceMinQuantityZero
= false
$manualMaxQuantity
public
int|null
$manualMaxQuantity
= null
$manualMinQuantity
public
int|null
$manualMinQuantity
= null
$product
public
Product|null
$product
= null
$quantityPlugin
public
bool
$quantityPlugin
= false
$selectableBoxRows
public
int
$selectableBoxRows
= 5
$showSelectableBox
public
bool
$showSelectableBox
= false
Methods
__construct()
Constructor method for BuyFormQuantity 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>