Developer forum

Forum » Ecommerce - Standard features » Orderline Fields in Razor

Orderline Fields in Razor

Adrian Ursu
Reply

Hi,

I am trying to use Orderline fields wth razor templates in 8.4.1.
I have managed to display the fields in both product page and cart page but I am not able to save anything in them.

I have followed the instructions from the Manual page.

Here is the loop I am using:

@foreach (LoopItem i in GetLoop("Product.OrderLineFields")){ 
       @i.GetValue("Ecom:Product.OrderLineField.Name")
       @i.GetValue("Ecom:Product.OrderLineField.InputTextField")
 }

Is there something that I am missing?

Thanks in advance,


Adrian


Replies

 

You must be logged in to post in the forum