PriceByQuantity
in package
This is the PriceByQuantity 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 price by quantity.
Tags
Table of Contents
$product | : Product|null | |
---|---|---|
$showTaxIncluded | : bool|null | |
__construct() | Constructor method for PriceByQuantity 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
$product
public
Product|null
$product
= null
$showTaxIncluded
public
bool|null
$showTaxIncluded
= null
Methods
__construct()
Constructor method for PriceByQuantity class.
public
__construct(array<string|int, mixed> $arguments, Language $languageSheet) : mixed
Parameters
- $arguments : array<string|int, mixed>
- $languageSheet : Language
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>