An order object holds shopping cart data and methods for placing the order. This object is different from a NetSuite order record, because it holds information for the given shopping session only.
Here is an example of Order Method addItem(item).
Method | Description | Parameters | Returns | Supported Domains | Login Reqd? |
---|---|---|---|---|---|
addItem(item) | Adds an item to order | item [required]{Object with values for fields}
quantity can be a negative number. | String - the orderitemid of added item | Checkout, Shopping | No |
Sample Code
Definition of Parameters
"custcol7" = Internal ID of transaction item option
value "1" = value of selected option
No comments:
Post a Comment