Chapter 9
204
Replace [token] in [target] with value of adjustment [name] from
[ShoppingCart]
This is an interaction between the ShoppingCart and a text element or edit box
that replaces a token with the value of an adjustment whose name is provided as a
contract parameter. Various formatting options are available as parameters to the
contract that allow you to optionally display a negative sign for discounts and a
currency symbol. If the adjustment does not currently exist or the order data do
not meet the requirements for obtaining the adjustment, then 0.00 is displayed.
Parameters:
AdjustmentName is the name of the adjustment that contains the value used to
replace the token.
CurrencySymbol is the currency symbol to display if the 'Show Currency
Symbol parameter is checked.
Show Currency Symbol toggles whether a currency symbol will be displayed in
the output
Show Minus Sign toggles whether to show a minus sign for discounts.
Token is the case sensitive text in the text element to be replaced with the
respective adjustment value.
Participants:
ShoppingCart
Target (text element, edit box)
Remove adjustment from [ShoppingCart] when [button] is clicked
(requires submit)
This is an interaction between the ShoppingCart and a button that removes an
adjustment referenced by he AdjustmentName parameter. This contract is meant
to be used in conjunction with the companion contract "Add adjustment when
button is clicked" to allow the user to change their mind.
Parameters:
AdjustmentName is the name of the adjustment
Participants:
ShoppingCart
Button (form button, image, any object with an 'onClick' event)
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 ...