BESTPROOFINGSERVICE.COM

alternating series test proof - www.bestproofingservice.com

Menu


of the quantity of all items in the cart, and the sum of the prices of all the items in the cart. Now that you have a firm


understanding of what constitutes the UltraDev Shopping Cart, let's go over the installation process. Installing the UltraDev Shopping Cart If you haven't done so already, you'll have to download the free UltraDev Shopping Cart and UltraCart Patch for UD4 extensions from www.dreamweaverunleashed.com. After you've downloaded the extension, unzip the MXP file, and double-click to install it using the Macromedia Extension Manager as shown in Figure 28.1. The UltraDev Shopping Cart and UltraCart Patch for UD4 appear in the Dreamweaver 8 extensions list. Figure 28.1. Install the Shopping Cart extension by double-clicking the MXP file, which is located in the Downloaded Extensions folder. [View full size image]   Integrating the Shopping Cart with the Employee Store Now that the UltraDev Shopping Cart has been installed, you can access it from either the Server Behaviors panel or the Bindings panel. The next few sections go over the UltraDev Shopping Cart in more detail as it relates to the Employee Store application in ASP. You can begin by opening Dreamweaver if you have not already done so already. Click the Add (+) button from either the Server Behaviors panel or the Bindings panel to reveal the UltraDev Shopping Cart, as shown in Figure 28.2. Figure 28.2. Select the Add (+) button to reveal the newly installed UltraDev Shopping Cart.   Building the Employee Store Shopping Cart Oddly enough, we build the Employee Store shopping cart starting with a View Cart page. The reasons for this is simple: First, to demonstrate how the UltraDev Shopping Cart behavior is utilized, and second, because it is the only page that uses the binding features within it. You can begin building the Employee Store shopping cart by following these steps: 1. Create a new page by selecting New from the File menu. Navigate to the Templates tab, choose the template titled Template from the DorknozzleASP site, and click Create. 2. Immediately save the page as viewcart.asp. 3. Add the Shopping Cart behavior by clicking the Add (+) button and selecting the UltraDev Shopping Cart option from the Bindings panel's submenu. The UltraDev Shopping Cart dialog appears. 4. Although there are certain options you'll need to customize in this dialog, first and foremost, you must name your cart. Like a recordset, it's best to name the cart something relevant to your site. For our purposes, enter the name cartDorknozzle in the Cart Name text box. 5. The next option after Cart Name is the Days text box. To store the information that users place in their carts, a cookie is written to the user's computer. You can set the number of days to store the cookie or select 0 for none. For now, enter 0. This setting guarantees that when the browser is closed, the user's information is not stored. It is important to note that by setting the number of days you want to store the cookie, you are essentially allowing users to come back and still have the same items inside their carts. The cart does not empty until either the user physically empties it or the cookie expires. 6. Define the columns the cart will use to store data in the Define Shopping Cart Columns list box. By default, ProductID, Quantity, Price, and Total appear as fixed columns and cannot be removed or modified. These columns are part of the functions used by the Shopping Cart behavior. Because the default cart columns suffice for our example, leave this list box as is. After the list box