Chapter 9
194
Shopping Cart Contracts
Add [percentage] adjustment [type] to [ShoppingCart] based on
[comparison] of [OrderData] to [threshold]
This is an activation on the ShoppingCart that adds a percentage adjustment to
the cart based on how the specified order data parameter compares to the
threshold parameter. An adjustment in this context represents a fee or discount on
the total order. The threshold parameter represents the amount to which the order
data is compared to determine whether the adjustment is applied, where the order
data parameter can be the total purchase, total weight, or total quantity of the
shopping cart. The adjustment can be specified as either a fee or a discount.
Possible examples would be applying a handling fee if the total weight or total
quantity exceeds a certain amount or applying a discount based on a purchase
greater than a specified amount. Applied adjustments can be displayed in the
ShoppingCart display.
This contract calculates the adjustment as a percentage of the Shopping Cart's
subtotal. 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.
Comparison specifies how the order data should be compared to the threshold.
Possible values are >= and <=.
Data is the shopping cart data used to compare against the threshold value.
This can be total weight, purchase or quantity.
Percentage is the percentage value used to calculate the adjustment.
Threshold is the minimum requirement for the adjustment to take effect.
Participants:
ShoppingCart
Содержание 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 ...