Yes voltage... my way of doing it will work with unlimited attributes (well... i suppose there's a conceptual limit somewhere) using JavaScript.. completely different method than Grayson's way so they can't be used together.
As I have it now, it is NOT documented, ONLY working for drop downs (cause that's all I use) and probably isn't coded correctly for everyone's use (I probably got lazy and hardcoded table references and if you use table prefixes then the code will break).
So if you guys like my implementation and want to use it, I can clean it up and try to make a sensible release out of it but it will take a bit. If you are happy with the single-attribute method, then stick with Grayson's because it is FAR less complicated and doesn't rely on JavaScript support.
As jettrue pointed out... if a browser doesn't have JavaScript it simply won't show you the stock levels or show/change the stock status image. Whether or not it allows you to add it to your cart and/or show you out of stock once in your cart depends on your zen cart config settings.
Worst case scenario: Your cart is set to NOT allow out of stock items be added to the cart AND your visitor doesn't have JavaScript (<1% of browsers) then the page will just reload when they hit "add to cart" with no errors, warnings, explanation, or anything else. That's a flaw with ZC really, not my mod.
- Steven
Bookmarks