Chapter 3
102
Adding an Add-to-Cart Button on the
Shopping Page
You can use either a Form Button or an Image Button on a product detail page
that when submitted adds the product information to a Shopping Cart. The
button must have a Submit Form action. The Form Button has the Submit Form
action by default. If you are using an Image Button element, you must apply an
Activation manually to submit the form when it is clicked. You must also add a
Hidden Form element so the Document object includes a Form object. The page
will not be submitted to the server if the page does not include a Form element.
To add a Shopping Cart button:
1
From Element Toolbar, add a Form or an Image Button. If you are using a
Form Button, skip to Step 5.
Note:
If you are using the Form Button instead of the Image Button you do not have to
add a Hidden Form element or Submit Activation as the Form Button itself adds the Form
object to the Document and submits to the server.
2
From Element Toolbar, add a Hidden SmartElement. The Hidden element
adds a Form to the Document object without adding any visible elements
to the page.
3
For Image Buttons, from Asset Center, drag the on-state image to the element.
Then, drag the off-state image.
4
For Image Buttons, right click the Image Button, choose Possible Activations.
From the list of Activations, choose:
Form Submit: Submit the Form when [Image Button] is clicked.
5
Select the button on the page and the Shopping Cart SmartElement and
Recordset in the Basement.
6
Right click and choose Possible Interactions. Choose the Interaction in the
eStore Shopping Cart category:
Add item from [Recordset] to [ShoppingCart] when [button] is clicked
7
In the Parameters dialog, you can choose to redirect the site shopper to pages
that state when the item has been added or is already 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 ...