Posted on 22/10/2014 14:06:53
Ok, what I am specifically am interested is this:
- A loop displaying the order line fields associated with the product in the cart. The loop can be inserted in the show cart template. See the template tag reference for further information.
And if I try to look for available loops that Orderline has to offer, I can see only
CustomFields
CustomFieldList
Product.OrderLineFields
I tryed to look into each of them, and found that is probably yhe best one to use is CustomFields, so my loop looks like this right now (here "i" is comming from OrderLines loop in the checkout) :
@foreach(LoopItem cf in i.GetLoop("CustomFields")){
if(cf.GetString("TestVal.System") == "TestVal"){
<table cellpadding=2>
<tr>
<td style="width:500px;">
@cf.TemplateTags()
</td>
<td>
<!-- Generate input for this field for each orderline, can't get it generated -->
</td>
</tr>
</table>
}
}
But what still worries me is, that this is a product field (not order line field) - and as documentation explained, I can use it. Ok, fair enough, probably even better idea. Why would you need orderline field than, if you can solve the task with product field!? Whatever works, I just need to be sure I can pass and receive this value for each individual orderline for individual user, further til the order.complete.
This is what I am getting, no input fields:
TestVal.Value.Clean
TestVal.Value.FullPath
TestVal
TestVal.Value
TestVal.Name TestVal
TestVal.System TestVal
TestVal.Template TestVal