Bookshelf Home | Contents | Index | PDF |
Product Administration Guide > Customizable Product Scripts > AddItem MethodThis method creates a new instance of an item and adds the specified quantity to the solution. For example, Item A exists in the solution and has quantity three. You use AddItem to add two more Item A to the solution. The new solution will contain two instances of Item A, one with quantity three, and one with quantity two. SyntaxAddItem (ParentObjPath, RelName, ProdName, Quantity) as Integer ItemsCan be used only for component products within the customizable product. ReturnsReturns 1 if the add was successful. Returns 0 if the add fails. ExampleFor an example of using AddItem, see About Product Path. |
Product Administration Guide |