Ok, I know it can be done, but what am I missing here?
We need to have control over the inventory on our site and allow our customers "prior" to adding items to their cart the exact number that is in stock. Also, if the item is not in stock, we need to allow backordering, however need them to know it is on backorder.
This is one of the biggest reasons we switched over to AC7 from another company is for the inventory control. I know it can be done as I have seen it on other AC7 sites.
Inventory Management
-
- Ensign (ENS)
- Posts: 19
- Joined: Fri Nov 21, 2008 10:23 am
- Location: New Hampshire
- Contact:
Re: Inventory Management
Could be something like below where 203 is the product id
Code: Select all
//Find Instock value
InventoryManagerData imd = InventoryManager.CheckStock(203);
Response.Write(imd.InStock.ToString());
// Destock the product
bool isLowStock = false;
InventoryManager.Destock(2, 203, out isLowStock);
if (isLowStock)
Response.Write("Stock Is Low");
//Restock the product
InventoryManager.Restock(2, 203);
- hassonmike
- Lieutenant (LT)
- Posts: 76
- Joined: Tue Apr 19, 2011 2:13 pm
- Contact:
Re: Inventory Management
Is this code only useful on a per-item basis? or can this be applied store-wide?