LiveShoppingService

This service class contains functions related to the live shopping functionality.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

``

$ownStock

``

$ownLimitation

Methods
public getLiveShoppingData($liveShoppingId, $sorting = null):array

Get required data for live shopping in the frontend

Parameters

Type

Name

Description

int

$liveShoppingId

A live shopping id

string

$sorting

Optional: Type of sorting for live shopping variations

public getLiveShoppingVariations($itemId, $sorting):array \| object

Get list of variations for live shopping

Parameters

Type

Name

Description

int

$itemId

An item id

string

$sorting

Sorting for live shopping variations

public filterLiveShoppingVariations($itemList):array

Filter list of variations for a specialOffer price

Parameters

Type

Name

Description

array

$itemList