Developer forum

Forum » Development » Adding products to favorites v 8.2.0.3

Adding products to favorites v 8.2.0.3

Martijn Bokhove
Reply

Hi

 

I am trying to add products to the favoritelist.

 

In the template, I use the normal tag: <!--@Ecom:Product.AddToFavorites-->

The tag is only available when logged in.

 

The output of the tag seems to be OK, for example: /products/infusie-lights2-inf-gebr?CCAddToFavorites=PROD1205&CCAddToFavoritesVariantID=&CCAddToFavoritesLanguageID=LANG7

 

After clicking the link, the page loads the URL above.

 

When I check my list of favorites in Extranet section, it keeps telling me that I have not added any product to my favorites.

 

Could it be that I have not installed a module, which is needed?

 

Gr

Martijn


Replies

 
Morten Bengtson
Reply

I think this is a bug. For some reason Dynamicweb has removed an internal notification subscriber that was used for adding products to the favorites list: 

 

Dynamicweb.eCommerce.CustomerCenter.AddToFavoritesObserver

 

The Customer Center module has been refactored / cleaned up in DW 8.2, so this might have been removed by mistake. It works in DW 8.1

 

/Morten

 

 
Morten Bengtson
Reply
This post has been marked as an answer

It might not be a bug but just a breaking change...

 

You can insert the Customer Center module on the same page as your product catalog, make sure you set it to display "My favorites" in the module settings and it works.

 

/Morten

Votes for this answer: 1
 
Martijn Bokhove
Reply

Hi Morton

 

Yes, that did the trick.

It works now.

 

Thank you very mutch!

 

Gr

Martijn

 
Merethe Nielsen
Reply
This post has been marked as an answer

Hi

 

I have just checked our latest release 8.2.1.0 and it's working fine for me with the basic setup that I have on my test site (product catalog and Customer center on different pages).
I can add products to favorites from the products page and remove them again from Customer center (when logged in).
Just try the latest release (8.2.1.0) because there have been added/changed a lot in Customer Center lately.
 

Kind regards

Merethe

Votes for this answer: 1
 
Martijn Bokhove
Reply

Hi Merethe

 

I changed the solution to 8.2.1.0 and it now also works without adding the Customer Center to the product pages.

 

Thanks for your help and quick response.

 

Gr.

Martijn

 

You must be logged in to post in the forum