BuyBundleForm
in package
This is the BuyBundleForm 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.
Tags
Table of Contents
$bundleGrouping | : BundleGrouping|null | |
---|---|---|
$bundleGroupingContent | : string | |
$bundleId | : int | |
$class | : string | |
$mainProducts | : array<string|int, mixed> | |
$maxQuantity | : int | |
$minQuantity | : int | |
$priceWithTaxes | : bool | |
$quantityPlugin | : bool | |
$showBasePrice | : bool | |
$showBundleBuyTitle | : string | |
$showLabel | : bool | |
$showPrice | : bool | |
$showQuantity | : bool | |
$showQuantitySelectableBox | : bool | |
$showSaving | : bool | |
$showTaxText | : bool | |
__construct() | Constructor method for BuyBundleForm 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
$bundleGrouping
public
BundleGrouping|null
$bundleGrouping
= null
$bundleGroupingContent
public
string
$bundleGroupingContent
= ''
$bundleId
public
int
$bundleId
= 0
$class
public
string
$class
= ''
$mainProducts
public
array<string|int, mixed>
$mainProducts
= []
$maxQuantity
public
int
$maxQuantity
= 1
$minQuantity
public
int
$minQuantity
= 1
$priceWithTaxes
public
bool
$priceWithTaxes
= false
$quantityPlugin
public
bool
$quantityPlugin
= true
$showBasePrice
public
bool
$showBasePrice
= true
$showBundleBuyTitle
public
string
$showBundleBuyTitle
= ''
$showLabel
public
bool
$showLabel
= true
$showPrice
public
bool
$showPrice
= true
$showQuantity
public
bool
$showQuantity
= false
$showQuantitySelectableBox
public
bool
$showQuantitySelectableBox
= false
$showSaving
public
bool
$showSaving
= true
$showTaxText
public
bool
$showTaxText
= false
Methods
__construct()
Constructor method for BuyBundleForm 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>