The cXML Edit/Inspect feature allows shoppers to return to a PunchOut site to make changes or view a cart that was previously checked out. This is accomplished by setting the value of the
PunchOutSetupRequest[@operation] attribute to "edit" or "inspect" instead of the usual value of "create".
A common use case for this feature is to allow shoppers to adjust the quantities of items in their cart when the quantity changes may effect shipping costs or unit prices (tiered pricing). This feature also allows shoppers to retrieve updated prices for carts that may be stale.
PunchOutSetupRequest[@operation] attribute is set to "edit" when a user is accessing a PunchOut site to make changes to a shopping cart. The user should be redirected to the shopping cart page on the eCommerce site with the cart restored. The shopper should be able to update quantites, remove items and add new items. Upon checking out, the shopping cart should be sent back normally with any changes included.
PunchOutSetupRequest[@operation] attribute is set to "inspect" when a user is accessing a PunchOut site to view their shopping cart. The user should be redirected to the shopping cart page on the eCommerce site with the cart restored. The cart should be in read-only mode. The shopper should be returned to the eProcurement system by passing back a
PunchOutOrderMessage with no items.
The contents of the shopping cart will be contained in the
PunchOutSetupRequest/ItemOut elements. An eCommerce site can restore the cart by adding items to the cart by part number (
ItemOut/ItemID/SupplierPartID) and quantity (
ItemOut[@quantity]). Alternatively, the cart can be restored using the
ItemOut/ItemID/SupplierPartAuxiliaryID to lookup the original shopping cart.