Siebel Interactive Selling Transact Server Interface Reference > Transact API for Siebel eAdvisor >

AddToCart


AddToCart function adds the current configuration to the shopping cart.

Syntax

OL.AddToCart(target)

Arguments

target
To use a frame, supply the name of the frame in which you want the cart to appear: OL.AddToCart(`framename')
If you want the cart to appear in its own window, use: OL.AddToCart(`_new')

Usage

This function is commonly called from the onClick event handler of a link, but it can also be referred to from an image map or called from another user-defined JavaScript function. See Siebel Interactive Designer Administration Guide for instructions on adding link objects to your Siebel application.

For information on posting a form from Add to Cart, see Posting a Form from Add to Cart.

Example

<INPUT type="button" value="Add To Cart" name=add onClick="OL.AddToCart('_new');">


 Siebel Interactive Selling Transact Server Interface Reference 
 Published: 18 April 2003