Chapter 10
230
Replace [token] in [target] with shipping value from [recordset]
based on [ShoppingCart] data
This is a server-side contract that replaces a token in a text element or edit box
with a shipping value from a lookup recordset based on the weight or purchase
price of an order containined in the shopping cart. The recordset contains ranges
for either weight or purchase price, and the contract takes the total weight or
order subtotal from the cart and finds the corresponding range in the recordset
and extracts the associated shipping value. Note that in order to implement
shiping based on order weight ranges, you will need to track item weight in
your shopping cart, which means you'll need to store items weights in your
products database.
Parameters:
Maximum Col is the column of the recordset participant that specifies the
name of the column containing the maximun value of a given weight or
price range.
Minimum Col is the column of the recordset participant that specifies the
name of the column containing the minimum value of a given weight or
price range.
Rate Col is the column of the recordset participant that specifies the name of
the column containing the shipping value of a given weight or price range.
Shopping Cart Data specifies whether the Total weight or Purchase price of the
shopping cart will be used to lookup a shipping value.
Token is the exact case-sensitive text that will be replaced by the shipping value.
Participants:
ShoppingCart
Recordset
Target (text element, edit box, hidden form element)
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 ...