Chapter 10
224
For example, suppose you choose to charge Zone 7 ship rates by default and you
are a merchant in California. The ship cost for customers on the Eastern seaboard
probably corresponds to Zone 8 rates. By supplying a list of states on the eastern
seaboard (i.e., NY, RI, VT, etc) and an alternate zone of Zone8, you can charge
customers in these states Zone 8 rates.
After the contract executes, the dropdown list will display each available shipping
option. The corresponding value stores both the ship method and cost in a
delimited string of the form "ShipMethod:ShipCost." You can then use the "Use
[ShipList] data to update/insert in [ShipViaCol] and [ShipCostCol] of
[Recordset] when [button] is clicked" contract to store the list data in the Orders
database for both the ship method and cost in one step.
Note that this contract assumes you have a table or view created that includes the
column for the specified zone for each of the ship methods you offer. See
DrumNote_510 for a detailed example.
Parameters:
Prompt is the string that appears at the top of the list to prompt a selection.
AlternateZone is the column name from the ship tables referring to the
alternate zone to be used to calculate shipping costs for states in the state
list parameter.
DefaultZone is the column name from the ship tables referring to the default
zone used. This is required to allow the code to replace this value with the
alterante zone if necessary.
ShipStateCol is the name of the column in the CustRS participant that
contains the ship state of a given customer.
StateList is a comma-delimited list of states that will receive shipping rates
based on the alternate zone.
UsePrompt toggles whether a prompt is used in the list element.
WeightCol is the name of the column in the recordset participant that holds
the value for the order weight.
Participants:
ShoppingCart
Recordset is the recordset containing the ship rate data with a zone column
from each ship method being offered.
CustRS is the recordset containing customer data, specifically the ship state.
ListElement dropdown list
Содержание DRUMBEAT 2000 ECOMMERCE EDITION
Страница 1: ...Users Guide macromedia DRUMBEAT 2000 eCOMMERCE EDITION ...
Страница 6: ...Contents 6 ...
Страница 12: ...Introduction 12 ...
Страница 90: ...Chapter 2 90 ...
Страница 110: ...Chapter 3 110 ...
Страница 124: ...Chapter 5 124 ...
Страница 142: ...Chapter 7 142 ...
Страница 152: ...Chapter 8 152 ...
Страница 236: ...Chapter 10 236 ...