Inventory Issues
hi
i have couple of questions ask how inventory system works in commerce server.
firstly there proper way determine how many items in stock before item added basket?
secondly, there reason why requires customer proceed checkout before tells them there aren't enough items in stock?
regards
paul
inventorycatalog inventorycatalog = commercecontext.current.catalogsystem.inventorycontext.getassociatedinventorycatalog("mycatalogname");
then use inventory sku.
inventorysku inventorysku = inventorycatalog.getsku("mycatalogname", "myproductid");
once have inventory sku can use various properties need such inventorysku.quantity , inventorysku.excessonhandquantity;
i think reason default site tells stock status after you've added item basket there pipeline component in basket pipeline evaluates stock status line items in basket , thow warning if there items out of stock.
hope helps,
daniel
Commerce Server > Commerce Server 2007
Comments
Post a Comment