Great contrib. Got it working on the first try
That's a first for this newbie.

Question: Is it possible to use this so that even if you have mroe than one attrib for a product yuou can select which attribs to include in the stock level?

ie I wouldlike to be able to select one attrib out of four that I have to track the stock level. I have attribs that don't necessarily belong to the item but are general to all products.

Our customers can choose to have an item gift wrapped or gift boxed at an additional cost, choose a bow color and insert a free gift message These are available to all products, sizes etc.

The problem I am having is that when I try and create a stock quantity for a size let's say it takes into account the gift box attrib as well as the bow color, gift message...you get the picture.

Does anyone know of a way to maybe create an on/off switch for each of the attribs so you can include or exclude it? I can give it a try (although php is new to me ) if someone can point me in the right direction.