Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
One tell is to put several items in your cart that have attributes and one that does not and see how they behave when you change the quantities...do they add up?
As I said, my experience was the item without an attribute, when in the cart under an item with attributes that registered "0" automatically calculated "0" for the non attribute item even though they were in stock.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Ok, I decided to do a bare bones reinstall of ZenCart 1.3.9h and SBA 1.4.13. It went quickly and smoothly, and from what I can tell, everything works out of the box.
I tested a bunch of different carts, quantities, and scenarios, and they seemed to work totally as advertised. :smile:
Now for the bad news: Athena, I also specifically tested your scenario:
--Added quantity 1 of item A, size small (attrib)
--Added quantity 2 of item A, size med (attrib)
--Added quantity 4 of item B, no attrib
--Adjusted quantity of item A up high to some number which was not in stock
At that point, anything below the sold out item (item A in this case), whether or not it had an attribute, showed as sold out. So, it's a bug where the sold out cascades down the cart. I do believe it is independent of attributes. So, I concur with you that there's a bug in the current distro of SBA and I will go and try your fix.
HTH,
---Chris
Quote:
Originally Posted by
athena
One tell is to put several items in your cart that have attributes and one that does not and see how they behave when you change the quantities...do they add up?
As I said, my experience was the item without an attribute, when in the cart under an item with attributes that registered "0" automatically calculated "0" for the non attribute item even though they were in stock.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
And I just installed Athena's fix (using the older /includes/modules/pages/shopping_cart/header_php.php) and that seem to fix the scenario I tested above without any bad effects.
Cheers,
--Chris
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Yeah! I'm not c-r-a-z-y!
But still would like it to work....now that you have that fix in....does everything work? I've noticed a problem with searching for a product to edit in the SBA window.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I am getting a similar problem to athena I think.
If I add a product to the cart with attributes it is out of stock regardless of the stock qty. (this is using zen 1.3.9h and version 1.4.13 of SBA)
I have tried an older version as athena described of the the includes/modules/pages/shopping_cart/header_php.php file. in this case the following occurs
If I have one product in the cart which is either in or out of stock all is fine the product is flag correctly in the cart . if I add a product in stock and the original product in the cart is in stock then all is well. But add an out of stock product to the cart and all products go out of stock in the cart.
Has this issue been solved for the latest version (apologies if I missed it but I could not see a fix in the thread)
Athena, what version did you go back to to get yours to work?
Thanks
Mikeyg
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
athena,
I found your code and have tried it. But this still does not work for me.
As soon as there is a product that goes in the cart which is out of stock all items are flag as out of stock even if they had been in the cart and flag as in stock correctly.
Some one must have this working correctly this seems such a fundimental requirement.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
I have an issue where out of stock attributes do not show as out of stock until the checkout stage rather than appearing as OUT OF STOCK in the dropdown list on the product page.
I`ve spent most of last week going through the code to see where the issue was and whether it was actually coded to perform that way - the functionality (to add OUT OF STOCK to the attribute's drop down) appears to be there but just not working for me.
The product in question is 'Frill Scarf' and the attribute is 'Test Colour' (http://www.jessamy-designs.co.uk/sho...&products_id=3). Whilst the Product Quantity is set to '99' the Quantity In Stock (as set by the Catalog -> Products With Attribute Stock page) for the attribute is 0 so I would expect that OUT OF STOCK would be appended in the dropdown for that attribute?
Any help would be much appreciated...
I`m running ZC v1.3.9h with SBA v1.4.13 and my site is http://www.jessamy-designs.co.uk. My Configuration -> Stock settings are as follows: Check Stock Levels: True | Subtract Stock: False | Allow Checkout: False | Mark Product Out Of Stock: ***
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
MikeyG
athena,
I found your code and have tried it. But this still does not work for me.
As soon as there is a product that goes in the cart which is out of stock all items are flag as out of stock even if they had been in the cart and flag as in stock correctly.
Some one must have this working correctly this seems such a fundimental requirement.
It may be that you need to actually delete the original file off the server and then reload the new code. On our server I notice that there is a lag time. They explained that there are two connections to our site (in our case, but may also be with yours) and it takes time to propagate, much like DNS info does.
Substituting the version in my previous post with the file from .13 has worked for many here. Wish I knew why.
Thanks for posting. I'm hoping someone will take this on. I PM the person who uploaded the latest version and was scolded in a weird way. Won't go that route again.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
tombooth01
I have an issue where out of stock attributes do not show as out of stock until the checkout stage rather than appearing as OUT OF STOCK in the dropdown list on the product page.
I`ve spent most of last week going through the code to see where the issue was and whether it was actually coded to perform that way - the functionality (to add OUT OF STOCK to the attribute's drop down) appears to be there but just not working for me.
The product in question is 'Frill Scarf' and the attribute is 'Test Colour' (
http://www.jessamy-designs.co.uk/sho...&products_id=3). Whilst the Product Quantity is set to '99' the Quantity In Stock (as set by the Catalog -> Products With Attribute Stock page) for the attribute is 0 so I would expect that OUT OF STOCK would be appended in the dropdown for that attribute?
Any help would be much appreciated...
I`m running ZC v1.3.9h with SBA v1.4.13 and my site is
http://www.jessamy-designs.co.uk. My Configuration -> Stock settings are as follows: Check Stock Levels: True | Subtract Stock: False | Allow Checkout: False | Mark Product Out Of Stock: ***
I don't think it was designed to eliminate the choices of out of stock items. Someone here played with a fix that worked for them but I haven't tried it.
You need to at least replace the file mentioned above for stock levels to calculate properly.
The original newest edition of the mod is faulty without it.
The only problem I have now is in the admin. It is temperamental when doing a search to update a product quantity.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
athena,
thank you for your reply. I am testing locally at the moment so I don't the issue was time lag, but I went back through to your previous post - either in this thread or another and copied the code again. It seems to be working for me now. I must admit I was going to post the link for others again but in coming back to it seem to have lost the exact thread/post. I will post it for others if I find it again.
I must admit I compared the files and can't work out why it does or does not work.
Just to pick up on your post quoting tombooth01 - I have been looking for the code to get it to show out of stock in the drop down(does not have to delete the option just flag it as out of stock) but I could not see that functionality.
Is it really there or do you no what has been suggested to make it work?
I have come up with a solution using the grid attribute mod but rather than have boxes I have replaced them with ticks and crosses. You still need the drop downs to select product to get it in the cart. I have seen a site that has this with boxes and you can select the tick and it puts it in the cart. - If anyone has that it would be good. or if anyone can show the stock in the drop down that would be good too.
Thanks again for you help.