Buttons

This is the Buttons class, a macro class for the basket viewHelper.

The purpose of this class is to encapsulate the logic that calculates the view parameters for the basket's buttons.

Tags
see
Buttons::getViewParameters()

Table of Contents

$backLocation  : string
$basket  : Basket|null
$classList  : string
$errorCode  : string
$forceDisabled  : bool
$showClear  : bool
$showContinue  : bool
$showRecalculate  : bool
$submitAction  : string
__construct() Constructor method for Buttons class.  : mixed
getBasketAddressError() Sets basketAddressError if billing or shipping address are invalid  : void
getViewParameters() This method returns all calculated arguments and new parameters for BasketViewHelper.php  : array<string|int, mixed>
getConfiguration()  : Configuration
getProperties() Return macro use properties  : array<string|int, mixed>

Properties

$backLocation

public string $backLocation = ''

$basket

public Basket|null $basket = null

$classList

public string $classList = ''

$errorCode

public string $errorCode = ''

$forceDisabled

public bool $forceDisabled = false

$showClear

public bool $showClear = true

$showContinue

public bool $showContinue = true

$showRecalculate

public bool $showRecalculate = true

$submitAction

public string $submitAction = \FWK\Enums\RouteType::CHECKOUT_END_ORDER

Methods

__construct()

Constructor method for Buttons class.

public __construct(array<string|int, mixed> $arguments, string $routeType) : mixed
Parameters
$arguments : array<string|int, mixed>
$routeType : string
Tags
see
Buttons
Return values
mixed

getBasketAddressError()

Sets basketAddressError if billing or shipping address are invalid

public getBasketAddressError() : void
Return values
void

getViewParameters()

This method returns all calculated arguments and new parameters for BasketViewHelper.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