User Guide
Quick Store Tutorial 63
Inserting Sales Tax into the Orders recordset
Now we need to set up the sales tax to be inserted into the Orders recordset when
the Submit Order button is clicked.
Set the token in the hidden form element:
1
Right-click the SalesTaxHidden 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 [SalesTax].
To calculate Sales Tax:
1
Shift select the following elements:
SalesTaxHidden (in Basement)
ShoppingCartObject (in Basement)
SalesTax recordset (in Basement)
Customers recordset (in Basement)
2 Right click and choose Possible Interactions. Scroll to the eStore Tax category
and double click the interaction::
Replace [token] in SalesTaxHidden with sales tax from SalesTax using
ShoppingCartObject total and state from Customers
3 Set the parameters according to the following table, then click OK.
Now, apply the interaction to insert the sales tax into the recordset when the
SubmitOrder button is clicked.
4 Shift-select the following elements:
SubmitOrder button (on page)
SalesTaxHidden (in Basement)
Orders recordset (in Basement)
Parameter Set to:
MyStates CA
token [SalesTax]
TaxStateCol State
TaxCol SalesTax
BillingStateCol BillingRegion