Ektron CMS400.NET API Documentation
|
This is the base class for the inventory provider. Use this class to create a custom inventory provider. When creating a custom inventory provider using this class, you must implement the abstract methods: GetInventory and SaveInventory. The other methods are optional and can be overridden as needed.
See the Ektron CMS400.NET Developer Manual's "Customizing eCommerce" > "Inventory Provider" section for more information and a step-by-step example of creating a custom inventory provider.
public abstract class InventoryProvider : ProviderBase;
Public abstract Class InventoryProvider Inherits ProviderBase
InventoryProvider.cs
Name |
Description |
The methods of the InventoryProvider class are listed here. |
|
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:
| |
|
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:
|
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|