Chapter 9
170
Add item from [Recordset] to [ShoppingCart] when [button] is
clicked using quantity from [FormElement]
This is a contract between a basement Shopping Cart SmartElement, a submit
button, a form element and a Recordset that provides source data to the Shopping
Cart. When the button is clicked, an item corresponding to the current record in
the Recordset is added to the Shopping Cart. With this contract, the quantity for
the added item is the value contained in the Form element. Parameters for
controlling redirection after adding are described below:
Parameters:
Redirect After Adding determines whether you want to redirect after adding
the item or not.
NewItemRedirect specifies the target page for redirecting after an item is
successfully added to the cart
Redirect if Already in Cart toggles wehther you want to redirect to a message
page if the selected item is already in the cart.
AlreadyInCartRedirect specifies the target page for redirecting if an item is
already in the cart
Participants:
ShoppingCart
Recordset
FormElement (edit box, drop down list, etc.)
Button (any clickable object)
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 ...