Product Template Field on Packing Slip

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kens
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 84
Joined: Wed Apr 04, 2007 7:57 am
Location: West Palm Beach, FL
Contact:

Product Template Field on Packing Slip

Post by kens » Fri Mar 04, 2011 11:37 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Template Field on Packing Slip

Post by mazhar » Mon Mar 07, 2011 9:02 am

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;
        }

Post Reply