Developer forum

Forum » Dynamicweb 10 » Order line comment input

Order line comment input

Andrejs Zavorotnijs
Reply

Hi

 

I DW10 there are new order line default field "OrderLineComment", we would like allow to change this field for customers in cartю

Looking in all tags I can see "Ecom:Order:OrderLine.Comment", but can't find input.

Any ideas on how we can make this happen?

comparing to quantity

 

 


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I think you can just create your own by combining the tag name and the order line ID:

var orderLineId = orderLine.Id; // Or get from GetString("Ecom:Order:OrderLine.Id")

<textarea name="Ecom:Order:OrderLine.Comment@orderLineId"></textarea>

Hope this helps,

Imar

 
Andrejs Zavorotnijs
Reply

Hi Imar

That doesn't work for me


 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Can you define "does not work"? Do you get an error? And when you look in the database, do you see the data there?

 
Andrejs Zavorotnijs
Reply

No error 

Nothing in DB and in order line field

Comment value just not updated

editing

page refreshed

 

 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Then I am not sure why it's not working. Maybe someone on the productteam does?

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

Nowadays it's unable to use the tag to input a data correctly in DW10 frontend. New task #22807 has been created to fix it. Thanks for finding and sorry for inconvenience.

BR, Oleg QA

 

You must be logged in to post in the forum