BV Commerce Forum
»
BV Commerce Support
»
Development
»
API : Product inventory insert is not shown in the site
Rank: Member
Joined: 8/16/2014(UTC) Posts: 7 Location: colombo
Thanks: 2 times
|
I have following which works fine, when I execute and return true. But when I look up on the site nothing is updated for inventory, any help on this is would be much appreciated for product track inventory is enabled Quote: bool inserted = Client.Catalog_ProductInventory_Insert(ref AuthenticationToken, new ProductInventory() { ProductBvin = productInSite.Bvin, Bvin = Guid.NewGuid().ToString(), Status = ProductInventoryStatus.Available, QuantityAvailable = productWithQty.Quantity, QuantityAvailableForSale = productWithQty.Quantity, }); Edited by user Sunday, September 28, 2014 2:16:38 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
You're saying that inventory tracking is enabled for the product (i.e. the product with a bvin value of productInSite.Bvin), right? Also, does the product already have inventory? If so, you should be performing an update, not an insert.
Status and QuantityAvailableForSale are essentially read-only properties; setting them will not do anything. I wouldn't think that would cause a problem, but I would try not setting those fields. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.