Magento – Guest Wishlist in Magento 2

cookiemagento2magento2.2.4wishlist

First of all, this is not a duplicate of some other question on Magento SE.

I am working to build a custom requirement of guest wishlists. I have searched for some help on the Internet and also dug Magento's core module of wishlists but still, I am not able to find the right way to start.

I understand that it can be achieved by using cookies, but I am not able to find which changes I would need to make in core Magento tables and which functions should be pluginized or overridden.

I don't want a complete programmatic solution.

I just want to get some guidance to catch the right direction.

Please help.

Best Answer

I'm just give some guidelines for guest wishlist :

You can overrite list.phtml and view.phtml file in your module.

Guest wishlist functionality mostly manage by cookies. So, I would like to suggest you make it by using cookies or localStorage.

Add and remove product in cookie by add or remove wishlist and product should be add in wishlist page.

For make it more friendly, display wishlist product in popup to the user and user can remove from wishlist. Cookie also should be expire after 24 hour.

Hope, It may be helpful for you.