title | issue |
---|---|
Implement wishlist page for guest |
NEXT-12808 |
- Added
\Shopware\Storefront\Page\Wishlist\GuestWishlistPage
. - Added
\Shopware\Storefront\Page\Wishlist\GuestWishlistPagelet
. - Added new page loader
\Shopware\Storefront\Page\Wishlist\GuestWishlistPageLoader
to loadShopware\Storefront\Page\Wishlist\GuestWishlistPage
. - Added new page loader
\Shopware\Storefront\Page\Wishlist\GuestWishlistPageletLoader
to loadShopware\Storefront\Page\Wishlist\GuestWishlistPagelet
. - Added a new event
\Shopware\Storefront\Page\Wishlist\GuestWishlistPageLoaderEvent
to be fired afterShopware\Storefront\Page\Wishlist\GuestWishlistPage
is loaded. - Added a new event
\Shopware\Storefront\Page\Wishlist\GuestWishlistPageletLoadedEvent
to be fired afterShopware\Storefront\Page\Wishlist\GuestWishlistPagelet
is loaded. - Removed @LoginRequired annotation in
\Shopware\Storefront\Controller\WishlistController::index
to allow rendering wishlist page for guest. - Added new method
getProducts
insrc/Storefront/Resources/app/storefront/src/plugin/wishlist/base-wishlist-storage.plugin.js
to get all products in the storage. - Added new storefront js plugin
GuestWishlistPagePlugin
insrc/Storefront/Resources/app/storefront/src/plugin/wishlist/guest-wishlist-page.plugin.js
to render guest's wishlist products when user is not logged in. - Added new twig file
src/Storefront/Resources/views/storefront/page/wishlist/meta.html.twig
to overridelayout_head_title_inner
to render wishlist page's title asYour wishlist
. - Added new block
base_head
insrc/Storefront/Resources/views/storefront/page/wishlist/index.html.twig
to render wishlist/meta.html.twig. - Added a conditional check in
src/Storefront/Resources/views/storefront/page/wishlist/index.html.twig
to render the wishlist product listing or guest product listing plugin.