User Guide

Chapter 10234
Replace [token] in [target] with value of sales tax from
[ShoppingCart]
Replaces a token in a text element, edit box, or hidden form element with the
value of the shopping cart's sales tax property. Use the "Set sales tax in
[ShoppingCart] to tax value from [TaxRS] using state from [CustomerRS]"
contract to calculate this value.
Parameters:
Token is the exact case sensitive text the will be repaced with the cart's sales
tax value.
Participants:
Target (text element, edit box, hidden form element)
ShoppingCart
Replace [token] in [target] with sales tax rate from [TaxRS] using
billing state from [CustomerRS]
Replaces a token in a text element or edit box with the sales tax rate formatted as a
percent string (i.e., 5.625%). The billing state from a customer recordset is used
to find the corresponding state in the TaxRS. With the TaxRS filtered to the
appropriate state, the sales tax rate is retrieved and formatted. The formatted vlaue
is then used to replace the token.
Parameters:
BillingStateCol is the name of the column in the CustomerRS that contains the
cutomers billing state used to find the sales tax rate.
TaxStateCol is the name of the column in the TaxRS that contains the state
name for which the tax rate will be retrieved.
TaxRateCol is the name of the column in the TaxRS that contains the sales tax
rate for a given state.
Token is the exact case sensitive text that is replaced with the formatted sales
tax rate.
Participants:
TaxRS is the recordset containing a list of all states and corresponding sales
tax rates.
CustomerRS is the recordset containing billing state for which the sales tax rate
is needed.
Target (text element, edit box)