Hi,
I'm trying to send an orderconformation in Kentico 6. Inside the template is a table where i display the items in the order. For this i use a transformation in the CMS.Root document type. when the transformation was of type text/xml everything worked fine. however the customer would like rownumebrs in the table. I figured the DataItemIndex would be a good way tohandle this. In order to be able to use the DataItemIndex i changed the template to ascx. I now have the following code in my transformation:
<tr>
<td><%# DataItemIndex %></td>
<td><%# Eval("OrderItemUnitCount") %> </td>
<td><%# Eval("OrderItemSKUName") %> </td>
<td><%# Eval("OrderItemUnitPrice").Format("{0:f2}") %> </td>
<td> </td>
<td><%# Eval("OrderItemTotalPriceInMainCurrency").Format("{0:f2}") %></td>
</tr>
This is how i call the transformation:
<td colspan="2">
{% Order.OrderItems.ApplyTransformation("CMS.Root.WebshopOrderLineContent", "CMS.Root.ALTWebshopOrderLineHeader", "CMS.Root.WebshopOrderLineFooter")%}
</td>
The only output generated is the name of the transformation for each item in the collection. So when i have two items it will append:
"WebshopOrderLineContentCMS.Root.WebshopOrderLineContent "
Do you have any idea as to what i've done wrong?