User Guide

Chapter 9206
Insert adjustments from [ShoppingCart] in [Recordset] when
[button] is clicked using OrderID from [HiddenFormElement]
This contract is an interaction between a basement ShoppingCart element, a
submit button, a Hidden Form Element and the destination Recordset for
the Cart data. This contract can be used when the order information is
submitted on a previous page and redirected to a confirmation page, where the
OrderID generated from the previous page is assigned to a form element. The
confirmation page then submits the cart adjustments using the OrderID from the
form element.
Note that this contract can be used in conjunction with contracts that generate an
OrderID needed for an OrderAdjustments record (such as the 'Insert order in
[recordset]...' and "Replace [token] in [target] with unique OrderID contracts").
When the button is clicked, the shopping cart adjustments data is inserted into
the recordset where each adjustment is a single record in an Order Adjustments
recordset. The "Go To Page" parameter allows you to redirect to the specified page
after the insert is completed.
Note: This contract should be executed before the "Insert cart in Recordset" contract is
executed because the latter contract destroys the cart and its associated cookie.
Parameters:
OrderIDCol is the name of the OrderID column in the target recordset.
AdjustmentNameCol is the name of the column in the recordset that stores the
adjustment name
AdjustmentValCol is the name of the column in the recordset that stores the
adjustment value
Participants:
ShoppingCart
Recordset
HiddenFormElement
Button (any clickable object)