• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Aaron
#1 Posted : Friday, February 18, 2011 1:04:44 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
This is our first client to implement inventory tracking in BV 5, so I'm a little inexperienced in this area. Here's the issue I'm seeing:

Scenario
Store inventory: enabled
Product inventory: disabled
Product out-of-stock mode: Show as Out of Stock (Allow Orders)

What Happens
The product page shows the OutOfStockAllowPurchase message.

The Bug
Digging through the code, it looks like the issue is that there are no checks for whether product-level inventory is enabled or disabled. When you first enable the store inventory, the bvc_ProductInventory table is empty. Then if you edit a product and go to the inventory edit page, clicking the save button (or any of the links in the left column which also perform a save) will add a record to the bvc_ProductInventory table even if you have not enabled inventory for this product. Once this happens the Product.InventoryStatus property will show as backordered. This happens because the row that was inserted into the bvc_ProductInventory table causes the Product.Inventory property to no longer be null, which is the check that the Product.InventoryStatus property performs to determine whether to use inventory data to determine product availability. Hope this makes sense...

The Fix
There appear to be several ways to fix this, but I think the quickest/cleanest way is for the Product.InventoryStatus property to also check whether inventory is even enabled for the product.


So is anyone else seeing this issue?
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012