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
Summary of Contents for DRUMBEAT 2000 ECOMMERCE EDITION
Page 1: ...Users Guide macromedia DRUMBEAT 2000 eCOMMERCE EDITION ...
Page 6: ...Contents 6 ...
Page 12: ...Introduction 12 ...
Page 90: ...Chapter 2 90 ...
Page 110: ...Chapter 3 110 ...
Page 124: ...Chapter 5 124 ...
Page 142: ...Chapter 7 142 ...
Page 152: ...Chapter 8 152 ...
Page 236: ...Chapter 10 236 ...