I'm fairly new to Magento, so apologies if this has been answered before and I just haven't been able to find it. I'm currently working with a client who requires bulk product imports, but their sizes aren't particularly user friendly. To get around this I created a secondary size attribute for the store front end which can be selected manually.
The front end is displaying these values fine, so what I'm looking for now is a way to access a list of which attribute options have been selected by products so that I can build a filtration system using it (eg if there are no medium products in stock then the "medium" size won't appear in the attribute option array)
Thanks for any help you can give