Hello -
Is there a way to add some information from a product template field to the packing slip, on a product by product basis. What I would like to do is put up a flag (just a letter or something) either appended to the product name or in another column if the product has a value in a specific product template field (i.e. # 27)
I know how to access the product template info in buyproduct conlib, but on the packing slip it's using the orderitemcollection to pull the product info and I don't know how to access the product template fields there.
Any help would be appreciated.
Thanks
Ken
Product Template Field on Packing Slip
Re: Product Template Field on Packing Slip
After order placement you can access them from ac_OrderItemInput table. OrderItem objects provides you the access on that data through its Input property. Let's say if you have an order item called orderItem which has some inputs then you can do the following to access name and value for each input item.
Code: Select all
foreach (OrderItemInput input in orderItem.Inputs)
{
string name = input.Name;
string value = input.InputValue;
}