
Chapter 9
160
GetTotalWeight()
Returns the total weight represented by the current order. This is useful for
implementing weight-based shipping, for instance. Note that GetTotalWeight()
only works if you track weight in the products database and have included the
WEIGHT and TOTALWEIGHT required columns in your shopping cart
data map.
InsertAdjustmentsInDatabase(DbRecordset,OrderID,OrderIDCol,
AdjNameCol,AdjValCol)
Inserts the contents of shopping cart adjustments array into the Drumbeat
recordset specified by the DbRecordset parameter. The OrderID parameter
specifies a valid OrderID, and the OrderIDCol specifies the column name in
DbRecordset that will store the OrderID. The AdjNameCol specifies the column
name in DbRecordset that stores the adjustment name, and the AdjValCol
specifies the column name in DbRecordset that stores the Adjustment value.
InsertInDatabase(DbRecordset,OrderID,OrderIDCol)
Inserts the shopping cart data into the Drumbeat recordset specified by the
DbRecordset parameter. The OrderID parameter specifies a valid OrderID,
and the OrderIDCol specifies the column name in DbRecordset that will store
the OrderID.
RemoveAdjustment(Name)
"Removes" the adjustment referenced by the Name argument from the shopping
cart Adjustments array. The adjustment object, which specifies the properties
needed to calculate the adjustment, still exists, but the value of the adjustment is
set to the empty string.
SetAdjustmentRate(Name, Rate)
Sets the rate property of an adjustment referenced by the Name argument in the
shopping cart Adjustments array. This is useful when the rate is not constant, but
can vary based on different ranges or values in the data basis of the cart, as is the
case when scaled adjustments are based on recordset values.
SetAdjustmentValue(Name)
Sets the value of an adjustment referenced by the Name argument in the shopping
cart Adjustments array. This method is called whenever an adjustment is added to
the cart, and whenever the cart is updated.
Содержание 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 ...