User Guide
Quick Store Tutorial 61
Inserting Shipping Cost into the Orders Recordset
Now we set up the Shipping Cost to be inserted into the Orders recordset when
the Submit Order button is clicked. Since this is not possible using a text element,
we need to insert it from the ShippingHidden hidden form SmartElement.
Set the token in the hidden form element:
1
Right-click the ShippingHidden element, in the basement, and select
Attributes.
2 From the drop down list for Content, select Text.
3 Click on the ellipses button to open the text editor, and enter [Shipping]. Then
click OK.
4 Shift-select the following elements:
ShippingHidden (in Basement)
ShoppingCartObject (in Basement)
5 Right click and choose Possible Interactions. In the eStore Shipping category,
double click the interaction::
Replace [token] in ShippingHidden with [flat-rate] shipping based on total
quantity from ShoppingCartObject
6 Set the parameters according to the following table, then click OK.
Now, apply the interaction to insert the Shipping into the recordset when the
SubmitOrder button is clicked.
7 Shift-select the following elements:
SubmitOrder Button
ShippingHidden (in Basement)
Orders recordset (in Basement)
Parameter Description Set to:
Ship Rate Per Item The numeric value of the shipping
charge for each item.
5
Token Exact case-sensitive text that will
be replaced by the shipping value
[Shipping]