Shopping Cart Reference
195
Add [percentage] adjustment [type] to [ShoppingCart] if
[ASPServer] variable matches [value]
This is an interaction between the Shopping Cart and a basement Session element
that adds a percentage adjustment to the cart if the specified Session variable
matches the specified value. An adjustment in this context represents a fee or
discount on the total order. One potential use for this interaction is to apply a
preferred customer discount on the total order. For instance, you could use other
contracts such as "Add column value of [recordset] to [Session]" to store the value
of a customer status field (possibly a yes/no field for 'preferred customer') from a
customers recordset in a separate step, then use this contract to check the value of
this session variable in order to provide a discount.
This contract applies a percentage adjustment specified in the 'percentage'
parameter if the Session variable specified in the 'VariableName' parameter
matches the value specified in the 'Value' parameter. A related contract is available
to apply flat adjustments in this manner. Note that these adjustments are global to
the order and are not relevant to specific line-items in the shopping cart.
Additional contracts are available to provide discounts at the product (that is,
line-item) level.
Parameters:
AdjustmentName is the name of the adjustment
AdjustmentType specifies whether the adjustment is a discount or a fee
Value is the value of the Session variable specified in the 'VariableName'
parameter required for applying the adjustment.
VariableName is name of the Session variable that holds the value used to
determine whether to apply the adjustment
Percentage is the percentage value used to calculate the adjustment based on
the shopping cart's subtotal.
Participants:
ShoppingCart
ASPServer basement Session SmartElement
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 ...