ItemCrossSellingService

This service class contains functions that are related to cross selling of items.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

SessionStorageRepositoryContract

$sessionStorageRepository

SortingHelper

$sortingHelper

Methods
public __construct($sessionStorageRepository, $sortingHelper)

ItemLastSeenService constructor.

Parameters

Type

Name

Description

SessionStorageRepositoryContract

$sessionStorageRepository

SortingHelper

$sortingHelper

public setType($type)

Set the type of cross selling

Parameters

Type

Name

Description

string

$type

Type of cross selling

public getType():mixed

Get the type of cross selling

public setSorting($sorting)

Set the sorting for cross selling

Parameters

Type

Name

Description

string

$sorting

Sorting type for cross selling

public getSorting():string

Get the sorting for cross selling