ItemWishListService

This service class contains functions related to the customers wish list.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

mixed

$itemWishListRepo

Methods
public __construct($sessionStorageRepositoryContract)

ItemWishListService constructor.

Parameters

Type

Name

Description

SessionStorageRepositoryContract

$sessionStorageRepositoryContract

public addItemWishListEntry($variationId, $quantity):mixed

Add a variation to the wish list

Parameters

Type

Name

Description

int

$variationId

An variation id

int

$quantity

The desired quantity of the variation

public isItemInWishList($variationId):bool

Check if a variation is in the wish list

Parameters

Type

Name

Description

int

$variationId

An variation id

public getItemWishList():array

Get a list of all variation ids in the wish list

public getCountedItemWishList():int

Get number of entries in wish list

public removeItemWishListEntry($variationId):bool

Remove a variation from the wish list

Parameters

Type

Name

Description

int

$variationId

An variation id

public migrateGuestItemWishList()

Migrates a guest wish list into a contacts wish list.