Hi I would love to add this functionality to my products page. For instance instead of having to click the product, then going to the single product page before you see the ability to “Add To Wishlist”, I want users to have the ability to see this button right on the product page for every product.
I know where to put it to make it spit out where I want on each image on the product page, However, I just don’t know what code exactly it is that I would need to add to create this functionality.
Currently I have a SAVE button if the user is or is not logged in. If they click it and are not logged in it takes them to the login page, however if they are logged in, I want it to actually save to their wishlist just like it does on the single products page.
What do I add to my product page?
Which line of code do I extract from the functionality on the single products page to make this behave the same on the products page.