Add To Cart Buttons > General
The general tab of the Add to Cart Button dialog configures the eCart Object associated to the button, whether the properties of the item are retrieved from a recordset or specified directly, and where the button is re-directed to when clicked.
To complete General configuration for the Add to Cart button:
- From the Cart name list, select the eCart object available on the page which corresponds to the shopping cart to be populated with this item.
- Select whether the item to be added to the cart is to be defined statically or retrieved from a recordset. The specified item ID is placed in a Hidden form element associated with the Add to Cart button when applied.
- Static definition: Specify a unique Item ID which will identify the product within the shopping cart.
- Dynamic Add to cart buttons: Select a recordset on the page which provides the item's definition information. Specify the column within the recordset which contains the unique id for the item.
If you already a Recordset for your database's products table, then you should use that. DataAssist will have created one for you if you used DataAssist to create the page you are adding this button to.
- Specify the destination page which is redirected to upon adding an item to the shopping cart.
Some online stores have their customers stay where they were, or redirect to the product catalog page. You might also want to redirect to your cart page, which would show the customer the product has been added to the cart. You may not have created this page yet, so you could enter the URL for the page you intend to create, and remember the filename you selected when creating that page.