Developer forum

Forum » Templates » Orderline Field not added

Orderline Field not added

Kim Hansen

Hi there,

Im running a 9.4.14, and im trying to add a value to a Orderline field.

But for some reason its not added to the orderline when the form is submitted.

I have added an field called Licenses as both name and systemname.

No matter what i do, the OrderLineFieldValues field in the database on EcomOrderLines stays <OrderLineFieldValueCollection />

My form html looks like this:

<form method="post" role="form">
<input type="hidden" name="EcomOrderlineFieldInput_Licenses" value="2" />
<input name="quantity"  max="100" value="1" class="a-input  m-amountInput__input" type="number" id="amountHardware" placeholder=""/>
<input type="hidden" name="ID" value="18"/>
<input type="hidden" name="ProductID" value="PROD10"/>
<input type="hidden" name="CartCmd" value="add"/>
<button type="submit"  class="a-button a-button--l a-button--green o-priceBar__button ">Add to basket</button>

Do i do something wrong, or didnt i enable something?





Imar Spaanjaars
Imar Spaanjaars
This post has been marked as an answer

Did you assign the order line fields to the group(s) that contains the products you're testing this on?

More infp:


Votes for this answer: 1
Kim Hansen

Oh.. i didnt know you had to do that.

Just checked and now it works like a charm.

Thank you :)



You must be logged in to post in the forum