Is is possible to show stock levels of attributes on the product page to prevent customers from trying to order more products than actually exist? We have a 1.3.9h installation.
Thanks,
John
Is is possible to show stock levels of attributes on the product page to prevent customers from trying to order more products than actually exist? We have a 1.3.9h installation.
Thanks,
John
Search the Plugins area for Stock By Attributes
We have that installed -- but it only shows stock levels in the admin side, not on the product page. Unless there's something I'm missing.
Ah, that looks like it might do it. I'll check tomorrow. Thanks!
Well, close, but no cigar, as my 2nd grade teacher used to say. (I have no idea why she said that).
It looks like the code should add a stock amount to the attribute, but it doesn't. Looking at the code with my very amateurish eye, I see it appears to address several different attribute styles, but not the dropdown menu (which my attribute uses). Might that be part of the problem?
John
Make a temporary attribute of another kind to see if it works for that on your site. If so, then you know the dropdown situation is what needs addressing.
With a different style of attribute it works... sort of.
I created a checkbox style attribute and added it to a product. When I display that product, I see my checkbox option followed by the number of pieces I have in inventory.
However, the modification breaks the attribute.php page by repeating the attribute numerous times down the page. You can see what I mean below:
http://quinceandco.com/backup/index....&products_id=1
So, this modification would be great if:
1) It worked with dropdown menus;
2) It doesn't break the attribute function
If there is really a bug in the mod, you should report it in the mod's support thread. Otherwise, asking for help there is likely to be more productive than here. You might find out why the mod doesn't handle dropdowns, too, and maybe even get someone to improve it.
Okay, I see that the quantity display is not a formal mod, but a suggestion in a closed thread. So you first need to examine whether you followed the directions correctly, and whether the base file code is the same in your version of Zen Cart, if you are on v1.5.x.