I am currently having a clearance sale so a lot of sizes are gone from the store, and we are noticing users getting frustrated by having to see the details of every product to figure out whether there is any items in his/her size left in the store.
I’ve been trying to reimplement the getJsonConfig() method defined in Mage/Catalog/Block/Product/View/Type/Configurable.php, line 74, but no luck. Seems there should be an easier way.
I was able to get all of the attributes available, but not only the sizes left in the store, I got ALL attributes, no matter whether they were sold out or not. I just this code to get that:
So does anyone have any idea how one can easily get it?
And yes I know about layered navigation that is not relevant in this case