Property

This is the Property 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 property.

Tags
see
Property::getViewParameters()

Table of Contents

PROPERTY_BASE_PRICE  = 'basePrice'
PROPERTY_EAN  = 'ean'
PROPERTY_PRICE  = 'price'
PROPERTY_SAVING  = 'saving'
PROPERTY_SHOW_DISCOUNTS_BUTTON  = 'showDiscountsButton'
PROPERTY_SKU  = 'sku'
PROPERTY_STOCK  = 'stock'
$priceWithTaxes  : bool|null
$product  : Product|null
$property  : string
$showAvailabilityImage  : bool
$showAvailabilityName  : bool
$showStock  : bool
$showStockText  : bool
$showTaxText  : bool
$stockAlertButton  : bool
$stockAlertButtonClass  : string
__construct() Constructor method for Property 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>

Constants

PROPERTY_BASE_PRICE

public mixed PROPERTY_BASE_PRICE = 'basePrice'

PROPERTY_EAN

public mixed PROPERTY_EAN = 'ean'

PROPERTY_PRICE

public mixed PROPERTY_PRICE = 'price'

PROPERTY_SAVING

public mixed PROPERTY_SAVING = 'saving'

PROPERTY_SHOW_DISCOUNTS_BUTTON

public mixed PROPERTY_SHOW_DISCOUNTS_BUTTON = 'showDiscountsButton'

PROPERTY_SKU

public mixed PROPERTY_SKU = 'sku'

PROPERTY_STOCK

public mixed PROPERTY_STOCK = 'stock'

Properties

$priceWithTaxes

public bool|null $priceWithTaxes = null

$product

public Product|null $product = null

$property

public string $property = self::PROPERTY_PRICE

$showAvailabilityImage

public bool $showAvailabilityImage = true

$showAvailabilityName

public bool $showAvailabilityName = true

$showStock

public bool $showStock = true

$showStockText

public bool $showStockText = true

$showTaxText

public bool $showTaxText = false

$stockAlertButton

public bool $stockAlertButton = false

$stockAlertButtonClass

public string $stockAlertButtonClass = ''

Methods

__construct()

Constructor method for Property class.

public __construct(array<string|int, mixed> $arguments, Language $languageSheet) : mixed
Parameters
$arguments : array<string|int, mixed>
$languageSheet : Language
Tags
see
Property
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>
Return values
array<string|int, mixed>

Search results