Page 1 of 1

Inventory Management

Posted: Tue Dec 02, 2008 10:13 pm
by chalvorsen
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.

Re: Inventory Management

Posted: Wed Dec 03, 2008 10:45 am
by mazhar
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);

Re: Inventory Management

Posted: Tue Jul 19, 2011 12:16 pm
by hassonmike
Is this code only useful on a per-item basis? or can this be applied store-wide?