Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / One Attribute depends on another Attribute

One Attribute depends on another Attribute

Locked

Views: 2,189

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Jan 2010, 12:07 AM
#1
axxess avatar

axxess

New Zenner

Join Date:
Dec 2009
Posts:
19
Plugin Contributions:
0

One Attribute depends on another Attribute

Hello,

I have searched for the answer and I am having difficulty in making it work. However, I would like one attribute to be dependent on another attribute.

this is a link to exactly what I would like
http://www.gitman.com/prod_detail_list/80s-2-ply-pinpoint

example: I sell dress shirts for men that come in neck sizes and sleeve length.

neck size 14.5 only comes in sleeve length 32 and 33
neck size 15.5 only comes in sleeve lenght 32, 33,34,35,36.

So, I want to enter all the neck sizes in one drop down and all the sleeve sizes in another drop down. But if you chose neck size 14.5 the other option name sleeve size will only give you the option of 32 and 33.

Can this be done in zen cart? Thank you in advance for any help!

2 Jan 2010, 10:40 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: One Attribute depends on another Attribute

Short answer, no. Zencart doesn't include dependent attributes, and writing a mod for them must be a very difficult task, since this question has been asked many times and no one has stepped up to do so.

2 Jan 2010, 10:55 AM
#3
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: One Attribute depends on another Attribute

Its quite challenging to make a mod that is very general, which is that you can customise it from the admin with a arbitrary number of attributes.

However, for your problem, you can hard code something with Javascript, that shows the next attributes after the size if selected and restricts choices in the drop down box. However, its not very flexible and not easy to maintain and update.

2 Jan 2010, 10:55 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: One Attribute depends on another Attribute

You can check out this Mod: Dropdown Attribute Filters

Although it is a pay for module and I have never used it, I can vouch for the person who created the mod. I have worked with him with other custom modules he created for Zen Cart, some were very complicated, and he knows what he is doing.

2 Jan 2010, 3:05 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: One Attribute depends on another Attribute

What about the Stock By Attributes mod?

2 Jan 2010, 10:19 PM
#6
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: One Attribute depends on another Attribute

Indeed this can help you. Havent used it myself, but you can find more information in this thread.