Add and Remove from wishlist

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

I am using NopCommerce version 3.90.

In the _ProductBox.cshtml file i would like the wishlist button to add or remove the item from the wishlist based on its status. if the item is not in the cart when the user clicks the button i would like it to be added to the cart and if it is already in the cart i would like it to be removed from the cart.

How can i achieve this?

Thanks
6 years ago
SamSnap wrote:
Hi,

I am using NopCommerce version 3.90.

if the item is not in the cart when the user clicks the button i would like it to be added to the cart and if it is already in the cart i would like it to be removed from the cart.

How can i achieve this?

Thanks


Yes you can.

When click on that button at that time you have to check this item already added or not in cart.

If added than you can remove from cart table.

Otherwise leave as it is.

This logic you have to place more than one location.

You should check under product controller front side.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.