3 replies [Last post]
dcent007's picture
Offline
Joined: 03/17/2009
Juice: 11
Was this information Helpful?

Is it possible to make one attribute match another.

The store I am working on offers large bags in green and medium bags in blue.

I have two sets of attributes already one that has sizes and one the has colours.

I've picked out blue and green, and large and medium but the user can select a medium green bag. How do I prevent this?

Thanks for any help.

wahidtanner's picture
Offline
Joined: 05/14/2009
Juice: 20
Re: Match one size to one color

I am setting up a site that sells electronic parts and came across a similar issue. For example, there are 160 different values of resistors that I sell in 2 different power ratings. The problem is that I do not yet have available all of the values in the higher power. This is like your medium green bag problem. I ended up abandoning attributes entirely and creating a separate product for each value in each power rating. This seems to defeat the purpose of attributes but I could not see a good way to use attributes as they currently exist that would handle this situation.

harrisben's picture
Offline
Joined: 04/17/2009
Juice: 192
Re: Match one size to one color

It currently isn't possible (that I know of) to tie one attribute option to a different attributes option, but if what you're after is only what you've stated above the best way to do it would be to merge the options. For example, instead of having an attribute for size containing 'large' and 'medium', and an attribute for colour containing 'green' and 'blue', you would have a single attribute (named whatever you'd like) with the options 'large green' and 'medium blue'. At least that's how I'd do it.

Unfortunately if your attributes/options get much more complicated than the above it would be quite messy. If someone were ever to create a contributed module for attribute rules I fear it would be quite complicated.

dcent007's picture
Offline
Joined: 03/17/2009
Juice: 11
Re: Re: Match one size to one color

That's too bad. Thanks for the help.

I guess I'll just have to create separate attribute sets. It's fine for this product but I have a lot of products like this so it will probably become time consuming.

Maybe in the next version. It seems like something that should be doable since you can assign each combined variation with its own sku, you should be able to indicate that you don't want to list one as well.