Developer forum

Forum » Ecommerce - Standard features » Ecom Page Loops not rendered in 8.7.0.3

Ecom Page Loops not rendered in 8.7.0.3

Nuno Aguiar
Reply

Hi,

 

After upgrading to 8.7.0.3 we lost the Ecom:ProductList.Pages3 loop. It is only rendered if we have the TemplateTags (even if commented, but has to be there).

 

Our workaround to to call a assign it to a string:

string dummy = TemplateTags("SOMETHING");

 

This bug already existed in the past and just came up again. Can anyone reproduce it?

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

Can I see your entire template? Adding string dummy = TemplateTags("SOMETHING"); is a really bad idea as it is a debug only thing and will kill your performance. NEVER leave TemplateTags(); in your templates when in production.

We've fixed a bug regarding Loopexists - so you have to call your loop correctly before it is recognized.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yes I know about not leaving TemplateTags, just referenced it because seemed to be the only way we could make it work. Go to line 117

Test page in question: http://drteeth.dw-demo.com/dev-links/product-list-view (paging is at the end)

 

The template is attached and for your reference it was working perfectly in 8.7.0.2 and stopped working when we upgraded to 8.7.0.3

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu
Reply

I have the same problem but in an older version (8.6.1.5) in the "My List" Product Loop (the loop for Favorites products)

Adrian

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

This was a difficult one.

We have fixed Loopexist so it works correctly in 8.7.0.2. Meaning Loopexist("Ecom:ProductList.Pages3") in our code will not return true on GetLoop("Ecom:ProductList.Pages") in your template.

In product list paging code, there is a loopexist on Ecom:ProductList.Pages that needs to be true before any paging is rendered. That means that you need Ecom:ProductList.Pages loop in your template before Ecom:ProductList.Pages3 is rendered. That of course, is a bug.

But you can work around it by adding @* string dummytag = GetLoop("Ecom:ProductList.Pages3"); *@ to your template instead of the TemplateTag version.

 
Nicolai Høeg Pedersen
Reply

Adrian

Could you in which template and can I get your template please?

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Thanks for the updated workaround and explaining what happens. We will be on the lookout for the bug fix.

 

Best Regards,

Nuno Aguiar

 
Adrian Ursu
Reply

Hi Nicolai,

The template is MyList.cshtml and it is the default MyList template from CustomerCenter module, converted to Razor and tweaked a bit for the purpose.

Now I realized that we actually have a slightly different issue that required TemplateTags to be present. We have this issue with MBT using the LiveIntegrationFramework and the absence of TemplateTags does not trigger the integration and we cannot display the prices from NAV.

I have attached the template but I think we need to move this post to a separate thread.

I am sorry I have mixed the issues.

Thank you,
Adrian

 

 
Nicolai Høeg Pedersen
Reply

@Nuno: The right work around is @* string dummytag = GetLoop("Ecom:ProductList.Pages"); *@

​TFS#18680

@Adrian

So the loop works, but prices from NAV does not?

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yeah, I got it, thanks

 
Adrian Ursu
Reply

Hi Nicolai,

Yes. Loops works but not the the data from NAV. We have used the same tags as in other ProductLists where the data from NAV is retrieved correctly.

Thanks,

Adrian

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

As far as I know this is custom on this solution. Whou made the NAV price provider? I need the code.

BR Nicolai

 
Adrian Ursu
Reply

Hi Nicolai,

The Integration Code was done by your team. Jesper coordinated it.

It works pretty well on regular product loops.

Adrian

 
Nicolai Høeg Pedersen
Reply

What is a regular product loop - and in comparison to what other loops?

Is it something I should get Jesper to look at? Or does he knows already?

 
Adrian Ursu
Reply

Regular Loops are the ones from the Product Catalog module.

This Product List loop comes from the Customer Center module for the Favorites products.

The naming is the same. They just behave differently.

I have found out about this a few days ago and Jesper is not in the office (according to the autoresponder from Outlook) therefore he does not know yet.

I can follow up with him when he gets back. Initially I thought it might be relevant to Nuno's post.

Thanks,

Adrian

 
Nuno Aguiar
Reply

Thanks for the consideration Adrian

 
Nicolai Høeg Pedersen
Reply

Hi Adrian

Lets follow up with Jesper when he is back - it can be a similar issue, but It does sound a bit different.

BR Nicolai

 
Christian Rud Skovgaard
Reply

This bug has been fixed in DW 8.7.0.4

Can be downloaded from the download section.

Kind regards

Christian 

 

You must be logged in to post in the forum