Developer forum

Forum » Ecommerce - Standard features » DW 8.9.2.6 [Bug] Favorite products removed from Dynamicweb.UserManagement.Context:FavoritesByUserId only after logout?

DW 8.9.2.6 [Bug] Favorite products removed from Dynamicweb.UserManagement.Context:FavoritesByUserId only after logout?

Evaldas Raisutis
Evaldas Raisutis
Reply

We have a solution which has a custom favorite products page. Products are fetched using ecom module, utilizing a query that returns products where ProductIDs match any [Dynamicweb.UserManagement.Context:FavoritesByUserId]. This works fine - product list then only returns products which are in logged in user's favorite list.

However, if I remove one of those products and reload the page - the product is still in that list. TemplateTag "Ecom:Product.IsProductInFavoriteList" correctly returns false on that product, but it's still in the list. If I logout and log back in again - the product is gone from the list.

There has to be an issue with [Dynamicweb.UserManagement.Context:FavoritesByUserId] not being updated?

 

y2.PNG

Replies

 
Claus Glavind Dynamicweb Employee
Claus Glavind
Reply
This post has been marked as an answer

Hi Evaldas

What is the URL for the solution and what Dynamicweb version is the site on?

Best regards,
Claus Glavind | Operations

Votes for this answer: 1
 
Evaldas Raisutis
Evaldas Raisutis
Reply

Hi Claus,

It seems it has been fixed.

 
Claus Glavind Dynamicweb Employee
Claus Glavind
Reply

Great to hear that a fix has been applied. Could you inform me about the version the site is running now?

BR
Claus | Operations

 
Evaldas Raisutis
Evaldas Raisutis
Reply

Nope, sorry it's still not working - I had made a workaround where I prevent the item front rendering if it's isInFavorites property is false - and I tricked myself just now. But it's still in issue - product is returned to the frontend, even though it's not in my favorite list anymore. Until I logout and log back in again.

DW version is  8.9.2.6  at http://nordenta.stagingsite.dk/ (reproducable on live and staging)

The favorite list to product relation is cleared from the database correctly. If you need more info / example contact me at evr@novicell.dk, thanks

 

You must be logged in to post in the forum