ItemListService

This service class contains function related to item listings.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Constants
Type Name Value Description

string

TYPE_CATEGORY

'category'

string

TYPE_LAST_SEEN

'last_seen'

string

TYPE_TAG

'tag_list'

string

TYPE_RANDOM

'random'

string

TYPE_MANUFACTURER

'manufacturer'

string

TYPE_CROSS_SELLER

'cross_selling'

string

TYPE_WISH_LIST

'wish_list'

string

TYPE_SEARCH_SUGGESTIONS

'search_suggestions'

Methods
public getItemList($type, $id = null, $sorting = null, $maxItems, $crossSellingRelationType = null, $withCategories = false):array

Gets a list of items based on parameters

Parameters

Type

Name

Description

string

$type

Type of item list

int

$id

Optional: Contains an identifier depending on the type

string

$sorting

Optional: Type of sorting

int

$maxItems

Optional: Maximum number of items (Default: 0)

string

$crossSellingRelationType

Optional: Type of cross selling relation

bool

$withCategories

Optional: If true, load category data (Default: false)