I'm trying to re-write some functions for our ERP tie-in using the JSON API vs. our current standalone .mvc code that doesn't work with the database encryption implemented several months ago. We currently pull 3 values for product inventory into our system. These values are pulled on a single product at a time.
Total Inventory
Available Inventory
Quantity currently in customer's baskets
What I have found so far is:
The value returned from the ProductList_Load_Query is Available Inventory
The value set by the Product_Update is Total Inventory
I have been unable to find a way to determine the quantity of a product reserved by customer's baskets, either directly or indirectly, or even retrieve the Total Inventory. Am I missing something? I had hoped that the Inventory returned by the ProductList_Load_Query would be more of a structure vs. a single value, but sadly it isn't.
So far, the only way I see is to move our current MivaScript code to our in-store module, and add the recently introduced Module Integration features to it. But would rather use the API if possible.
Total Inventory
Available Inventory
Quantity currently in customer's baskets
What I have found so far is:
The value returned from the ProductList_Load_Query is Available Inventory
The value set by the Product_Update is Total Inventory
I have been unable to find a way to determine the quantity of a product reserved by customer's baskets, either directly or indirectly, or even retrieve the Total Inventory. Am I missing something? I had hoped that the Inventory returned by the ProductList_Load_Query would be more of a structure vs. a single value, but sadly it isn't.
So far, the only way I see is to move our current MivaScript code to our in-store module, and add the recently introduced Module Integration features to it. But would rather use the API if possible.
Comment