Wishlist
window.SwymCallbacks = window.SwymCallbacks || [];
window.SwymCallbacks.push(function(swat) {
var queryParams = swat.utils.getEncodedAsObject(window.location.search);
var sharedHkey = queryParams["hkey"] || queryParams["lid"];
var sharedWishlistContainerElement = document.querySelector("#swym-shared-wishlist-render-container");
swat.ui.renderSharedWishlistInContainer(sharedWishlistContainerElement, sharedHkey, queryParams);
});
This code snippet enables the dynamic rendering of a shared wishlist within the designated `swym-shared-wishlist-render-container` div. This functionality allows users to effortlessly view wishlists shared by others, promoting social shopping experiences. By extracting a unique identifier (either "hkey" or "lid") from the URL, the system accurately retrieves and displays the specific wishlist content. This feature is particularly valuable for customers interested in discovering new products, especially those seeking high-quality barefoot shoes, minimalist footwear, or even robust barefoot boots. Imagine a friend sharing their curated list of top-rated bearfoot options, making it simple for you to explore and purchase. The seamless integration ensures a smooth user experience, fostering community and making product discovery, particularly for specialist items like minimalist footwear, more engaging and collaborative.