I'm curious how I get the inventory on hand for a product.
We have many varient products setup with the inventory also specified in uCommerce. Basically I can check if "AllowOrdering" is set to true on the product - but if I specify a quantity of 1000 when I only have 10, I'm still allowed to enter than many into the cart.
I've looked through, and it appears that the only class that will do anything with inventory is the UCommerce.Pipelines.Common.InventoryTask. However, it doesn't appear to allow me to do anything but increment or decrement the number.
Get Inventory on Hand
I'm curious how I get the inventory on hand for a product.
We have many varient products setup with the inventory also specified in uCommerce. Basically I can check if "AllowOrdering" is set to true on the product - but if I specify a quantity of 1000 when I only have 10, I'm still allowed to enter than many into the cart.
I've looked through, and it appears that the only class that will do anything with inventory is the UCommerce.Pipelines.Common.InventoryTask. However, it doesn't appear to allow me to do anything but increment or decrement the number.
I ended up getting the solution.
is working on a reply...