Deliveries

This is the Deliveries 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 deliveries.

Tags
see
Deliveries::getViewParameters()

Table of Contents

$basket  : Basket|null
$deliveries  : ElementCollection|null
$physicalLocations  : ElementCollection|null
$showDescription  : bool
$showLogo  : bool
$showPickup  : bool
$showProducts  : bool
$showTaxIncluded  : bool|null
$showTitle  : bool
__construct() Constructor method for Deliveries class.  : mixed
getViewParameters() This method returns all calculated arguments and new parameters for BasketViewHelper.php  : array<string|int, mixed>
getProperties() Return macro use properties  : array<string|int, mixed>

Properties

$deliveries

public ElementCollection|null $deliveries = null

$physicalLocations

public ElementCollection|null $physicalLocations = null

$showDescription

public bool $showDescription = true

$showTaxIncluded

public bool|null $showTaxIncluded = null

Methods

__construct()

Constructor method for Deliveries class.

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

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