Developer forum

Forum » Ecommerce - Standard features » OrderTemplateExtender is not called in Recurring Orders loop

OrderTemplateExtender is not called in Recurring Orders loop

Mafalda Correa
Mafalda Correa
Reply

Hi,

I was trying to use an OrderTemplateExtender and while I have the tag in Orders and Ledgers in list and details, for Recurring Orders I only get the tag in the order details, and don't get the tag in Recurring Orders list.

See repro here: https://www.screencast.com/t/JfZ2d3G2yN

Thank you


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
Hi, Can you not just write your thing in the razor template or it's possible? BR, Oleg QA
 
Mafalda Correa
Mafalda Correa
Reply

Sorry, I don't understand what you mean.

 
Nicolai Pedersen
Reply

Template extenders are from the days of html templates where it was not possible to use C# code in the template. The only way to get new information into the template was to use a template extender written in C# that injects values into the tags collection.

Now a template is just a razor file with c# code. So what you would previously write in a template extender, can now just be written directly in the template or put into a method in a class somewhere in your project and then call that method from your razor template. No need to use a templat extender...

 
Mafalda Correa
Mafalda Correa
Reply

Oh, I know that and I did work around my issue. But we wanted use a template extender and have the tag available on the order. And it did work for all the scenarios except for the Recurring Orders list, which is what I'm reporting here.

 

You must be logged in to post in the forum