Developer forum

Forum » Templates » Orderline Field not added

Orderline Field not added

Kim Hansen
Reply

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>
</form>

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

Thanks

/Kim

 

Replies

 
Imar Spaanjaars
Imar Spaanjaars
Reply
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? https://doc.dynamicweb.com/documentation-9/ecommerce/product-catalog/product-groups#sideNavTitle1-4-2

More infp: https://doc.dynamicweb.com/forum/ecommerce-standard-features/ecommerce-standard-features/is-it-possible-to-alter-product-fields-on-adding-to-cart

 

Votes for this answer: 1
 
Kim Hansen
Reply

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

Just checked and now it works like a charm.

Thank you :)

/Kim

 

You must be logged in to post in the forum