You are here: Ektron Namespace > Providers API > Ektron.Cms.Commerce.Inventory Namespace > Ektron.Cms.Commerce.Inventory.Provider Namespace > InventoryProvider Class > InventoryProvider Methods
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
InventoryProvider Methods

The methods of the InventoryProvider class are listed here.

This section contains methods for the InventoryProvider class.

 
Name 
Description 
 
Decreases the stock level for a catalog entry (product) based on its ID and the given quantity. For example, if a site visitor purchases two copies of the same book (ID=12) from your site, you might use the following line of code to decrease the book's in-stock quantity by two:  
 
Gets inventory information for a specified catalog entry (product). Some of the items returned include:
  • EntryId
  • UnitsInStock
  • UnitsOnOrder
  • ReorderLevel
For example, if you want to find out the number of units in stock, units on order, and the re-order level for an item with an ID of 12, you might use the following line of code:  
 
Returns the re-order level for a given catalog entry (product). The re-order level is the inventory level at which new stock should be ordered. Use this method when you only want to return the re-order level for a specified item. If you want additional inventory information about an item, use the GetInventory method. Below is an example of using this method in code to check the re-order level for an item with an ID of 12.  
 
Gets the number of units in stock for a given catalog entry's ID. Use this method when you only want to return the number of units in stock for a specified item. If you want additional inventory information about an item, use the GetInventory method. Below is example code that returns the number of units in stock for an item with an ID of 12.  
 
Gets the number of units on order for a given catalog entry's ID. This is the number of units that the store has ordered to replenish inventory and NOT the number of units that are currently on order by customers. Use this method when you only want to return the number of units on order for a specified item. If you want additional inventory information about an item, use the GetInventory method. Below is example code that returns the number of units on order for an item with an ID of 12.  
 
Increases the stock level for a catalog entry (product) based on its ID and the given quantity. For example, if you need to increase the stock level of a given item (for example, item ID=12) by ten in your inventory system, you might use the following line of code:  
 
Saves inventory information for a catalog entry. Some of the items saved include:
  • EntryId
  • UnitsInStock
  • UnitsOnOrder
  • ReorderLevel
For example, if you have an item with the ID of 12 and you want to set its units in stock to 3, the units on order to 10, and the re-order level 5, you might use the following lines of code:  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!