Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How can one attribute enable/disable another?

How can one attribute enable/disable another?

Views: 956

Results 1 to 6 of 6
11 May 2011, 9:19 AM
#1
kristian avatar

kristian

New Zenner

Join Date:
Nov 2007
Posts:
24
Plugin Contributions:
0

How can one attribute enable/disable another?

Hi everyone,

I am trying to find info on how to make different attributes depend on each other, i.e. you can choose a product´s size and colour separately, but one specific colour disables one or more of the sizes because that combination is unavailable.
Or, in this example, I am selling a course where you can sign up 1-4 participants. If you select 1, I want 1 field to enter participant´s name, 2 for 2 and so on:

http://xn--godpbunn-d0a.no/index.php?main_page=product_info&cPath=3_24&products_id=41

Any help greatly appreciated:smile:

Kristian

11 May 2011, 10:07 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,685
Plugin Contributions:
56

Re: How can one attribute enable/disable another?

This is not currently a feature of Zen Cart.

11 May 2011, 10:58 AM
#3
kristian avatar

kristian

New Zenner

Join Date:
Nov 2007
Posts:
24
Plugin Contributions:
0

Re: How can one attribute enable/disable another?

swguy:

This is not currently a feature of Zen Cart.

Hmmm.... Any idea how big a deal it would be to make?:lookaroun

Kristian

11 May 2011, 12:06 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: How can one attribute enable/disable another?

Since the question has been asked since I've been hanging around here (and probably before) and no one has stepped up to write a mod, I'd guess that it would be a very big deal.

11 May 2011, 8:09 PM
#5
kristian avatar

kristian

New Zenner

Join Date:
Nov 2007
Posts:
24
Plugin Contributions:
0

Re: How can one attribute enable/disable another?

stevesh:

Since the question has been asked since I've been hanging around here (and probably before) and no one has stepped up to write a mod, I'd guess that it would be a very big deal.

Sure, seems like it. But I guess the more people ask for it the more incentive for some of the great people here to look at it. I surely would chip in :smile:

Kristian

11 May 2011, 8:13 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,685
Plugin Contributions:
56

Re: How can one attribute enable/disable another?

It's not that it's such a big deal; the issue is that it would be very hard to design it to work in a general case. Most people would just write custom javascript code to do this sort of thing. In your particular case, I would recommend rethinking your product structure (if you just have one product with one name the problem goes away).