Shopping Cart Reference
171
Add item from [Recordset] to [ShoppingCart] when
[imagebutton] is clicked (Looper)
Use this contract to add items to the shopping cart directly from a looper-based
results list without having to navigate to a detail page. It is an interaction between
a basement Shopping Cart SmartElement, an image or image button, 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 one.
Parameters for controlling redirection after adding are described below. You can
optionally redirect, or add without redirecting.
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 whether 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.
CurrentPage specifies the current page containing the looper result list. You
must set this parameter regardless of whether you choose to redirect.
LooperName is the name of the looper SmartElement on the page
Recordset ID Col is the column name for the unique key of the participating
recordset.
Participants:
ShoppingCart
Recordset
Image Button (image, image button)
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 ...