Developer forum

Forum » Ecommerce - Standard features » Product at CustomList tag IsProductInFavoriteList

Product at CustomList tag IsProductInFavoriteList

António Ramos
Reply

Hi,

When we add a product to a customlist e.g. "Collected" and no in the favorites the product tag IsProductInFavoriteList is always True. This is the correct behavior? Or it's a bug? This shoudn't only be True if the product is in the Favorites List and no in any other list.

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Antonio

I need to see your template code to fully understand. Could you please post it?

BR Nicolai

 
António Ramos
Reply

Hi Nicolai,

The code is the same that the other topic... In attach.

We are getting the flag if it is at the favorite list with this tag... If we change to GetString we still get the same problem.

bool bol_productIsFavorite = GetBoolean("Ecom:Product.IsProductInFavoriteList");

Thanks,

Best regards,

António Ramos

 
António Ramos
Reply

bump

 
Merethe Vrå Andersen
Reply

Hi, 

The attached file seems to be corrupted so I can't see your code.

It sounds like you use a custom list (My list) which means that you use the CustomerCenter.ListTypes loop, correct?
http://manual.dynamicweb-cms.com/Default.aspx?ID=7617

As you can see in the article, the use of the "My lists" functionality changes the behaviour of the old Favorites functionality and you can't use the favorites tags like Ecom:Product.IsProductInFavoriteList because of the changes in the code structure.

The tag that you should use is Ecom:Product.IsProductInThisList, BUT we have a bug that this tag renders nothing at the moment (bug 21530). I'll try to get this fixed in one of the next hotfixes for 8.7.2.

Kind regards,
Merethe

 
António Ramos
Reply

Hi Merethe,

Do you have any news regarding the bug 21530? Just checked the hot fixes from version 8.7.2 and i didn't see any record of this bug.

Best regards,

António Ramos

 
António Ramos
Reply

bump

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

21530 was fixed in 8.7.2.14 - last change of this item is 19/4-2016.

So if you get the latest build of 8.7, it should have been fixed.

BR Nicolai

Votes for this answer: 1
 
António Ramos
Reply

Hi Nicolai,

Thanks for your feedback.

The version 8.7.2.14 is not downloadable from Downloads. This is also fixed at 8.8.0.7?

Best regards,

António Ramos

 

 
Kristian Kirkholt
Reply

Hi António

The problem TFS#21530 "Ecom:Product.IsProductInThisList renders nothing"  has now been fixed in version 8.7.2.14

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum