ItemWishListService
This service class contains functions related to the customers wish list.
All public functions are available in the Twig template renderer.
Methods
public __construct($sessionStorageRepositoryContract)
ItemWishListService constructor.
Type |
Name |
Description |
|
public addItemWishListEntry($variationId, $quantity):mixed
Add a variation to the wish list
Type |
Name |
Description |
|
An variation id |
|
|
The desired quantity of the variation |
public isItemInWishList($variationId):bool
Check if a variation is in the wish list
Type |
Name |
Description |
|
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
Type |
Name |
Description |
|
An variation id |
public migrateGuestItemWishList()
Migrates a guest wish list into a contacts wish list.
Thank you for your feedback!