Developer forum

Forum » Ecommerce - Standard features » Can product custom tags work under "FavorateList" loop

Can product custom tags work under "FavorateList" loop

Judy Zhang
Reply

Hi,

We have serval serveral "ProductTemplateExtender" custom tags should be used under "FavorateList" loop.

But they don't work in normal condition, except that when we put under "FavorateList" loop or we write "Base.w()" in the "ProductTemplateExtender" mothed.

 

It confuses me, that can "ProductTemplateExtender" custom tags really work under "FavorateList" loop? 

 

If yes, what have I done wrong?

If no, how can I definde  custom tags of "FavorateList" product?

 

By the way, we use the 8.2.1.11 version.

 

Thanks!


Replies

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

Hi Judy

 

The favorite list in customer center renders the products using the same rendering as anywhere else, including the product template extenders. So it should Work.

 

Could you post your ProductTemplateExtender so I can have a look?

 

BR Nicolai

Votes for this answer: 1
 
Judy Zhang
Reply

Hi Nicolai, 

Yes, I post the file as an attachments. 

 
Nicolai Høeg Pedersen
Reply

Looks ok.

 

Can I see your template also? You have some tag exists, so you have to be sure that those tags are in the favorite template.

 

A side note:

I can see you use PageView pv = new PageView(); - you should use PageView.Current() instead of creating a new instance.

 

BR Nicolai

 
Judy Zhang
Reply

Hi Nicolai,

 

Because you are sure that it should work, I have tested the code again more carefully, and it turns out that some tags work fine while others don't.

 

So I would think it most likely our code has logical errors. 

 

Thank your for your help!

 

 

BR

Judy

 

 

You must be logged in to post in the forum