Let’s say a user has a favourites list and a shopping cart. Any items added to the shopping cart are also added to favourites. When a user removes an item from their cart, it remains in favourites (until they explicitly remove it from that list).
The product page shows different buttons depending on what user lists that product is on. If it’s neither on favourites nor in shopping cart, then there is a button to “add to favourites” and another button to “add to shopping cart”. If it’s on favourites but not in cart, the options are to “remove from favourites” and “add to cart”. I can’t figure out a way to stop showing “remove from favourites” when the product is in the cart. I don’t want users to have an item in their cart that is not on their favourites.
Rephrasing… If the product is on favourites, then show “remove from favourites”, unless the product is in the cart.
Hope I’ve been clear. Is there a way to do this?