Chapter 9
172
Add item from [Recordset] to [ShoppingCart] when [textelement]
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, a text element, and a Recordset that
provides source data to the Shopping Cart. When the text element 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 the column name for the unique key of the participating
recordset.
Participants:
ShoppingCart
Recordset
Text Element
Содержание 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 ...