Developer forum

Forum » Ecommerce - Standard features » DW9 customfield in orderlineloop e-mail

DW9 customfield in orderlineloop e-mail

Justin Breg
Reply

Hi,

Currently we have an e-mail where we show the orderlines + it's custom fields.

The custom field is empty unless there's atleast one @TemplateTags() in the template.

Here's the relevant code:

@foreach (LoopItem ol in GetLoop("OrderLines"))
                        {
                            
                            <tr>
                                <td style="font-size: 14px; line-height: 24px; text-align: left; font-family: @fontfamily;" class="alternative-font" nowrap><b>@ol.GetString("Ecom:Order:OrderLine.ProductName")</b></td>
                                <td style="font-size: 14px; line-height: 24px; font-family: @fontfamily;" class="alternative-font" align="center">
                                    @if (ol.GetString("Ecom:Order:OrderLine.ProductName") != "Annuleringsverzekering")
                                    {
                                        @ol.GetValue("CursusDatum")
                                    }
                                </td>
                                <td style="font-size: 14px; line-height: 24px; font-family: @fontfamily;" class="alternative-font" align="right">@ol.GetString("Ecom:Order:OrderLine.Price.PriceWithoutVATFormatted")</td>
                            </tr>
                        }

The @ol.GetValue("CursusDatum") is our customfield which shows nothing unless there's a @TemplateTags().

This seems to be a bug.

Any ideas?

 

Justin.


Replies

 

You must be logged in to post in the forum