cancel
Showing results for 
Search instead for 
Did you mean: 

How to show the icon as selected (may be color change) when user add a product to wishlist ?

How to show the icon as selected (may be color change) when user add a product to wishlist ?

For wishlisted products and Non-wishlisted products it is showing same
 
1 REPLY 1

Re: How to show the icon as selected (may be color change) when user add a product to wishlist ?

Hello @sekhar_n ,

 

You have to create a custom controller to provide wishlist data of current user. Using ajax call you can get the data from this controller to your phtml file.

Please refer to below link for more clarification  

https://magento.stackexchange.com/questions/251800/show-wishlist-icon-as-selected-when-clicked