Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I have an product in a TeaCommerce shop.
I want to add a dropdownlist to select a color. Ther is no pricechanges or anything.
I only want to get it to show on the finished order
Here is "AddOrUpdateOrderLinemy"
This works
<input name="AddOrUpdateOrderLine" type="hidden" value="productIdentifier : productIdentifier, orderLineId : orderLineId, quantity : quantity, propertyKeys : propertyKeys, color : color" />
The color select - This works
<option value="@colorItem" @if (colorItem == selected) { @Html.Raw("selected=\"true\"") }> @selected </option>
This is from the post, this works. I get the value from the selected color, in this cace "Red"
productIdentifier : productIdentifier, orderLineId : orderLineId, quantity : quantity, propertyKeys
: propertyKeys, color : color
Red
6283
1
My question is how do i get the value "Red" to show up in the finished order.
René
I have found out how it should work, but it do not work.
I use this @orderLine.Properties[ "color" ].
Is there something i am missing?
Hi Rene
See example 2 on this page. Properties are added for the order line so you can use orderLine.Properties["color"]http://documentation.teacommerce.net/html-api/order-line/addorupdateorderline/
Kind regardsAnders
Tanks.
For this to work, is it required to have an input named properties?
Is it the name "properties" witch gives the option to use orderLine.Properties["color"]
<input name="properties" value="color" type="hidden" />
<input name="AddOrUpdateOrderLine" value="productIdentifier, quantity, properties" type="hidden" />
Tanks for your always quick answer.René
It is required to have the properties parameter in the AddOrUpdateOrderLine input field
It is working.
Tanks a lot, for your answers and guiding.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Teacommerce - Product property - Color
Hi
I have an product in a TeaCommerce shop.
I want to add a dropdownlist to select a color. Ther is no pricechanges or anything.
I only want to get it to show on the finished order
Here is "AddOrUpdateOrderLinemy"
This works
The color select - This works
This is from the post, this works. I get the value from the selected color, in this cace "Red"
productIdentifier : productIdentifier, orderLineId : orderLineId, quantity : quantity, propertyKeys
: propertyKeys, color : color
Red
6283
1
1
My question is how do i get the value "Red" to show up in the finished order.
René
Hi
I have found out how it should work, but it do not work.
I use this @orderLine.Properties[ "color" ].
Is there something i am missing?
René
Hi Rene
See example 2 on this page. Properties are added for the order line so you can use orderLine.Properties["color"]
http://documentation.teacommerce.net/html-api/order-line/addorupdateorderline/
Kind regards
Anders
Hi
Tanks.
For this to work, is it required to have an input named properties?
Is it the name "properties" witch gives the option to use orderLine.Properties["color"]
Tanks for your always quick answer.
René
It is required to have the properties parameter in the AddOrUpdateOrderLine input field
Hi
It is working.
Tanks a lot, for your answers and guiding.
René
is working on a reply...