Actions overview
Actions
WatchListItemAdd
This action adds a product to the user’s watchlist. Both individual products and multiple products can be passed simultaneously. Usage exampleCan be used on product or category pages where customers can add items to their watchlist to find or buy them later. Parameters
Error codes
Related modules, variables & methods
- $wsWatchList
- $wsWatchList.watchLists
- $wsWatchList.loadWatchList()
- $wsWatchList.isProductOnWatchList()
- $wsWatchList.countWatchListsWithProduct()
WatchListItemDelete
This action removes an entry from the user’s watchlist. Usage exampleCan be used on the watchlist page where customers can delete individual products from their watchlist. Parameters
Error codes
Related modules, variables & methods
- $wsWatchList
- $wsWatchList.watchLists
- $wsWatchList.loadWatchList()
- $wsWatchList.loadWatchListItemId()
AddWatchList
This action creates a new watchlist for the logged-in user. Usage exampleCan be used on the watchlist management page where customers can create additional watchlists, e.g., for various occasions or categories. Parameters
Error codes
Related modules, variables & methods
Example showing how a new watchlist is created via an input field.
DeleteWatchList
This action deletes an existing watchlist of the logged-in user. Usage exampleCan be used on the watchlist management page where customers can remove watchlists they no longer need. Parameters
Error codes
Related modules, variables & methods
Example showing how a watchlist is deleted via a button.
RenameWatchList
This action renames an existing watchlist of the logged-in user. Usage exampleCan be used on the watchlist management page where customers can adjust the name of an existing watchlist. Parameters
Error codes
Related modules, variables & methods
Example showing how a watchlist is renamed via an input field.
