Shopping Cart Reference
161
SetDiscount(data,type,row)
Sets or updates a line-item discount based on the discount threshold and rate
stored in the products database. The data argument specifies whether the discount
is based on item price or quantity, the type specifies whether the discount is a flat
or percentage discount, and row specifies the row to which the discount applies.
See DrumNote_506 for general information regarding line-item discount
handling by the shopping cart.
SetSalesTax(Value)
Sets the sales tax property of the shopping cart to the value specified by the
Value argument.
SetShipping(Value)
Sets the shipping property of the shopping cart to the value specified by the
Value argument.
Update()
Updates the shopping cart to reflect changes made in the ShoppingCart display
element (that is, changed quantities or removed items).
UpdateAdjustments()
Updates the values of adjustments in the shopping cart Adjustments array to
reflect the current values of order data and subtotal. This is called by the 'Update
Cart' contracts on the PostServer() event.
UpdateInventory(DbRecordset,OnOrderCol)
Updates the recordset specified by the DbRecordset argument. Increments the
OnOrderCol in DbRecordset to reflect the order quantities of each product in
the shopping cart. Uses the ID column of the shopping cart, which specifies a
unique product ID, to find and update each product in DbRecordset contained
in the cart.
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 ...