Share via


How to Reference Items in the OrderForm Dictionary

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Dictionary items are identified both by their names and by the section of the OrderForm object they are in. Therefore, the cc_name item in the order Dictionary object is referenced as follows:

order.cc_name

Similarly, the elements of items in the items SimpleList object are prefixed with the word item:

item.SKU

This form of reference, although not necessarily technically accurate, allows for clarity of the description.

Note

All pipeline components expect the following keys to be present in the order form dictionary:

  • _Basket_Errors

  • _Purchase_Errors

  • _Verify_With

  • Items

The constructor for the OrderForm object will automatically add the above four indexer properties by default and the pipeline adapters will automatically create these keys in the order form dictionary.

Even though you can have more than one OrderForm on a basket, you should not use this feature on a production Web site. This is because the Payments collection is at the OrderGroup level, and when the basket runs through the pipelines, you cannot specify which of the Payments should be charged. This could lead to unintuitive and unpredictable results.

See Also

Other Resources

What Are OrderForm Objects and Dictionaries?