BuyFormSubmit
in package
This is the BuyFormSubmit 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 submit.
Tags
Table of Contents
$class | : string | |
---|---|---|
$formButtonHook | : string | |
$id | : int|null | |
$showLabel | : bool | |
$showOrderBox | : bool|null | |
__construct() | Constructor method for BuyFormSubmit 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
= ''
$formButtonHook
public
string
$formButtonHook
= ''
$id
public
int|null
$id
= null
$showLabel
public
bool
$showLabel
= true
$showOrderBox
public
bool|null
$showOrderBox
= null
Methods
__construct()
Constructor method for BuyFormSubmit 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>