Chapter 3
100
Adding the Shopping Cart SmartElement
To insert product items into a shopping cart, you need the Shopping Cart server,
Recordset, and Form button SmartElements on the same page. In the example
below, the Shopping Cart element is added to the Product Detail page generated
by DataForm Wizard (see Chapter 2 Creating Products Pages). An Interaction is
added to three elements so that the current product item in the recordset is added
to the shopping cart when the button is clicked.
To insert product items into a shopping cart, you need these SmartElements:
Recordset SmartElement
Shopping Cart server SmartElement
Submit button SmartElement
The Shopping Cart SmartElement lives in the Basement in Drumbeat during
design-time and on the server at run-time. You don't have to configure anything
on the server. The server only needs to support JavaScript. This server-side
JavaScript object captures information as the site shopper browses through
the site.
To add the Shopping Cart Basement SmartElement from Asset Center:
1
From Asset Center, click Locate Assets and choose SmartElements > Show all
Custom SmartElements, mouse down to the Shopping Cart SmartElement.
2
Drag and drop the element on the page. The element shows up in the
Basement. Make sure this element is on the right side of the recordset. This
element represents the Shopping Cart on the server.
3
With the element selected, activate the Attributes Sheet. Then, in the Content
attribute drop-down, choose Static Content and click the ellipsis button and
select the Data-Map Content Table. The element must be bound to the
Data-Map Content Table. This table maps the element to the source and
destination databases.
4
Setting up an Element Collection is a time-saving technique that ensures that
the content attribute for the server element is bound to the Data-Map on every
page. Next time you add the server-side Shopping Cart SmartElement to a
page, drag the Element Collection from the Element Toolbar.
Содержание 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 ...