Originally Posted by
ryan2416
Hi guys,
I'm having an issue with my Zen Cart and Stock by Attributes module. First, here are the versions I have:
Zen Cart v1.3.9h
Stock by Attributes Version: 1.4.12
The stock by attributes seems to work correctly until I present it with a certain situation. For example, I have product "A" with a couple of attributes:
Sizes: x-small, medium, large etc..
Design: name1, name2, etc..
I only have in stock:
30 "A"s in x-small design 1
6 "A"s in medium design 1
Now anytime I have both of these products in my shopping cart and the FIRST one in the list is over the stock limit, it causes all of the rest of the products to show out of stock, even if the second item is not out of stock.
Shopping cart example #1 (works like it should):
30 "A"s in x-small design 1
6 "A"s in medium design 1
Shopping cart example #2 (fails):
31 "A"s in x-small design 1 [OUT OF STOCK]
3 "A"s in medium design 1 [OUT OF STOCK]
Shopping cart example #3 (fails):
7 "A"s in medium design 1 [OUT OF STOCK]
30 "A"s in x-small design 1 [OUT OF STOCK]
Shopping cart example #4 (Correct):
6 "A"s in medium design 1
33 "A"s in x-small design 1 [OUT OF STOCK]
Anyone have an idea how to fix this problem? Or if this is an inherent flaw, where should I look to change the "Out of Stock" shopping cart code?
Thanks in advance. Please let me know if you need additional information.
-Ryan
Bookmarks