Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi fellow zenners
I have a problem on my store. I have now twice had a customer order out of stock items putting the stock level to -1
I have the setting to not allow out of stock checkouts
I have 1.3.9h zencart - updated from 1.3.9d and Stock by Attributes ver 1-4.12
I should note that I was on 1.3.9d when the first one came last week. I then updated everyhing and it happened again just now.
Something else I have noticed. If you add a product which is out of stock, the cart displays the warning it is out of stock. If you then add another in stock item it will display this as out of stock until you remove the out of stock product.
Anyone else getting this and can anyone help me resolve this?
Kind regards
Natty
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Scrat
mermaidlisa So you only have one 'stock_attribute' per
product: ie
Its not the same issue I had by the sounds of it.
Have you 'Sync Quantities' your stocks to product !
'stock_attrubute' is the reference of your attribute product_attributes_id in the `products_attributes` table.
Yeah I have 1 stock_attribute per attribute. my table looks like this.
Quote:
stock_id, product_id, stock_attribute, quantity, sort
7, 59, 8 , 0, 0
3 , 59 , 7 , 3 , 0
5 , 59 , 9 , 0 , 0
6 , 59 , 10, 7 , 0
I have synced the quantities as well. So you have more than 1 stock_attribute per attribute? What is the issue that you have?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Hi guys,
Firstly, I appreciated for providing such a nice MOD,
My site v1.38a working wonderful.
Now I found a small bug as described here
In Shopping Cart, during shopping on zencart before loged in,
case ok
1. product within a stock
2. product with out of stock
Only No.2 shows error message as expected
case NG-1
1. product with out of stock
2. product within a stock
BOTH shows error. No.2 should not be an error.
case NG-2
1. product within a stock
2. product with out of stock
3. product within a stock
NO.2 & NO.3 shows error. No.3 should not be an error
case NG-3
1. product with out of stock
2. product within a stock
3. product within a stock
All product show error
I think it is clear there is a little bug for kind of "Array" coding?
I have no found this bug on v.1.4.11
after upgraded v.1.4.12 It happens.
Any idea?
Yuki....:oops:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
yuki
Hi guys,
Firstly, I appreciated for providing such a nice MOD,
My site v1.38a working wonderful.
Now I found a small bug as described here
In Shopping Cart, during shopping on zencart before loged in,
case ok
1. product within a stock
2. product with out of stock
Only No.2 shows error message as expected
case NG-1
1. product with out of stock
2. product within a stock
BOTH shows error. No.2 should not be an error.
case NG-2
1. product within a stock
2. product with out of stock
3. product within a stock
NO.2 & NO.3 shows error. No.3 should not be an error
case NG-3
1. product with out of stock
2. product within a stock
3. product within a stock
All product show error
I think it is clear there is a little bug for kind of "Array" coding?
I have no found this bug on v.1.4.11
after upgraded v.1.4.12 It happens.
Any idea?
Yuki....:oops:
yes, this is exactly what happens :cry:. please please help us fix the bug!!
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
huhuhu,
So you are.
Please let me add one more little thing,
compare to 1.4.11 Attribute control is far improved, THANKS!
But case below,
When products in shopping cart,
1. Product with no Attribute or options with out of stock
After latest MOD patched, product like above stop showing error message of out of stock.
Could you check if that happens ???
Yuki,:oops:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
yuki
huhuhu,
So you are.
Please let me add one more little thing,
compare to 1.4.11 Attribute control is far improved, THANKS!
But case below,
When products in shopping cart,
1. Product with no Attribute or options with out of stock
After latest MOD patched, product like above stop showing error message of out of stock.
Could you check if that happens ???
Yuki,:oops:
YES!! Exactly! I didn't notice this until you pointed out :shocking:
And I can't proceed to the next step either. When I try to click "Continue", nothing happened
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Zen Cart Version 1.3.8
Stock by Attributes Version 1.4.12 (nov 13 2010)
In short, I've installed the module, but I'm having a problem I can't figure out. Example: I have four sizes of socks through the "Add Quantity for Product Variant". I set inventory level on one size to zero, so it backorders. Fair enough. However, the other items in the shopping cart (hats, boots) also suddenly go to backorder status as well.
Any tips would be greatly appreciated. I see this question came up once before in this thread with no answer.
I doubt it matters for the purpose of this question, but if it does, my client doesn't really care at all about tracking real-world inventory levels. They simply want to use this mod to control items they know are out of stock so the customer is immediately informed through the checkout process. And yes, they still want the customer to be able to order the item, but just inform them that it's out of stock.
Thanks in advance!
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
mermaidlisa
YES!! Exactly! I didn't notice this until you pointed out :shocking:
And I can't proceed to the next step either. When I try to click "Continue", nothing happened
any news about the "out-of-stock" bug yet? please please help us :cry:
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
yuki
Hi guys,
Firstly, I appreciated for providing such a nice MOD,
My site v1.38a working wonderful.
Now I found a small bug as described here
In Shopping Cart, during shopping on zencart before loged in,
case ok
1. product within a stock
2. product with out of stock
Only No.2 shows error message as expected
case NG-1
1. product with out of stock
2. product within a stock
BOTH shows error. No.2 should not be an error.
case NG-2
1. product within a stock
2. product with out of stock
3. product within a stock
NO.2 & NO.3 shows error. No.3 should not be an error
case NG-3
1. product with out of stock
2. product within a stock
3. product within a stock
All product show error
I think it is clear there is a little bug for kind of "Array" coding?
I have no found this bug on v.1.4.11
after upgraded v.1.4.12 It happens.
Any idea?
Yuki....:oops:
A client of mine noticed this bug, and I was tasked to fix it.
You only need to add two lines of code to one of the files included in the addon package.
- Open up /includes/modules/pages/shopping_cart/header_php.php
- Around line #137, you should see this line:
- if (zen_not_null($stock_check))
- Add this line right before the line you found in step #2
- $flagStockCheck = NULL;
- Around line #172, you should see this line:
- $productArray[$i] = array(...
- Add an array element and value like this:
- 'stockAvailable'=>$stockAvailable,
That should fix the issue with products below out of stock items showing up as out of stock when they aren't. It should also make the available stock quantities show up like they are supposed to.
I hope this helped you out. :)
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Can you clarify what it is you are suggesting to add/do in the steps I highlighted below.. are we adding the code in step 5 above, below, or as a replacement to the code in step 4??
Quote:
Originally Posted by
abran1984
A client of mine noticed this bug, and I was tasked to fix it.
You only need to add two lines of code to one of the files included in the addon package.
- Open up /includes/modules/pages/shopping_cart/header_php.php
- Around line #137, you should see this line:
- if (zen_not_null($stock_check))
- Add this line right before the line you found in step #2
- $flagStockCheck = NULL;
- Around line #172, you should see this line:
- $productArray[$i] = array(...
- Add an array element and value like this:
- 'stockAvailable'=>$stockAvailable,
That should fix the issue with products below out of stock items showing up as out of stock when they aren't. It should also make the available stock quantities show up like they are supposed to.
I hope this helped you out. :)