Inhalte aufrufen

Profilbild

Wishlist showing that an item is added


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 CompleteCoders

CompleteCoders

    Advanced Member

  • Members
  • 99 Beiträge

Geschrieben: 05 May 2021 - 18:54

When you add an item to the wishlist and go back to the product detail page.  Is the icon supposed to change so that you can see that the item is already on the wishlist?  I thought I had seen this functioning however on your demo it is not and I can't figure out how to make it work. 

 

Thanks! 


  • GalenKa, RidgeOi und Brantot gefällt das

#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3646 Beiträge

Geschrieben: 05 May 2021 - 20:17

No, there is no such mechanism. For this, you would have to extend the ActionItems in CatalogHelper and check whether the product is already on the wishlist by using the methods IShoppingCartService.GetCartItems and IShoppingCartService.FindShoppingCartItemInTheCart.

Schöne Grüße aus Düsseldorf,
Marcus Gesing