SingleItemContext

Context class with additional data, required for the single item view.

Namespace

Ceres\Contexts

Extends
Implements
Properties
Type Name Description

array

$item

Item data of the current item.

array

$attributes

Attributes data for the current item. Used for the variation select.

array

$variations

Variation data mapped to the attribute IDs. Used for the variation select.

array

$afterKey

Contains the next variation ID and some data of the next item, to be used to continue fetching variations (@see $variations). The afterKey is only set when the variation selection requires more data than is already loaded in the client.

array

$customerShowNetPrices

Check if net prices should be shown.

Deprecated: since 5.0.0 will be removed in 6.0.0

Category

$defaultCategory

Category data of the default category of the current item.

string

$assetName

Key for the assets to be loaded.

int

$dynamicVariationId

The variation ID of the variation, linked to the "please select"-option.

bool

$initPleaseSelectOption

Define if the "please select"-option should be shown in the variation select.

bool

$isItemSet

Defines if an item is of the type "set".

array

$setComponents

Some data of the variations contained as a component for the current item if the item is of the type "set".

``

$setAttributeMap

string

$requestedVariationUrl

Represents the current URL without the parameters.

Methods
public init($params)
Parameters

Type

Name

Description

``

$params