Thursday, May 9, 2019

Example Order Methods 'addItem(item)'

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 orderitem [required]{Object with values for fields}
  • internalid [required]
  • quantity [required] {Number or String}
  • options [required for item with item options]
Note:
quantity can be a negative number.
String - the orderitemid of added itemCheckout, 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