Wishlist and stored baskets ¶
The logged-in customer can save selected products in a list and easily access them or add them to the shopping basket.
Two different types of lists are available:
- stored baskets
The difference between a wishlist and a stored basket is that a user has only one wishlist, but can have many stored baskets with different names.
A stored basket can also contain the quantity of products and prices.
You can deactivate the stored basket feature in configuration:
1 2 3
Wishlists and stored baskets are baskets with a special type
No events are thrown when adding products to a wishlist or a stored basket. However, there is no data validation in the background. Data validation, such as for the minimum order amount or for mixing of downloads with normal products, is done when adding those items into the shopping basket.
One template is used for both wishlists and stored baskets. The attributes that are shown can be handled through the basket type:
||List of all stored baskets.|
||Entry page for both wishlists and stored baskets. Based on the basket type, it loads one of the templates listed below.|
||Partial page responsible for rendering a stored basket page.|
||Partial page responsible for rendering the wishlist.|
||Template with success/error/notice messages for baskets.|
get_stored_baskets() returns stored baskets for the current user:
1 2 3 4 5 6