Using Custom Theme
, when user is not logged in and try to add a product to wishlist, it is served up the login or create an account screen. Once the user logs in, the item user was trying to add to wishlist isn't appearing under My Wishlist
in Account Dashboard
and it says You have no items in your wish list.
So now user has to go back and add.
Although when user is logged in and then try to add a product to wishlist, its working.
How do I add the product upon login?
Best Answer
I have patch for this issue. You need to override these two files.
vendor/magento/module-wishlist/Helper/Data.php
vendor/magento/module-wishlist/Observer/CustomerLogin.php
Override
Data.php
andCustomerLogin.php
with di.xmlNow remove generated folder and flush cache