Forums / Setting Up Categories, Products, Attributes / attribute of an attribute?

attribute of an attribute?

Views: 2,399

Results 1 to 18 of 18
11 Feb 2012, 1:46 PM
#1
alliou avatar

alliou

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

attribute of an attribute?

I'm working on a furniture store shopping cart. Items can have multiple attributes but then those attributes can have attributes (if that makes sense).

For instance, a headboard can have both fabric & color attributes. Each fabric comes in its own set of colors.

So, I'd have a Fabric drop down: Linen or Velvet
Linen comes in blue & green
Velvet comes in red, purple, green

Does anyone know how I would accomplish this?

Thank you!

11 Feb 2012, 2:16 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: attribute of an attribute?

You can't, with Zencart. That's called 'dependent attributes' and isn't available in the current Zencart version.

12 Feb 2012, 7:59 PM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

I'll trust stevesh about the latest version since I haven't tested it yet with this feature, but the prior version (v1.3.9h) can handle it without any problems. You would use Stock by Attributes module and Dynamic Dropdowns, both from the Free Add Ons.

However, you're advised to use the latest version so it's your call... :smile:

My site - Pro ZC Help
My portfolio | My plugins

12 Feb 2012, 8:15 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: attribute of an attribute?

1.3.9h and 1.5.0 are the same in this respect. I assumed the OP was asking about a situation where the selection of one attribute resulted in the display of a certain set of other attibutes. That can't be done in any Zencart version.

If that's not what he/she was asking, balihr's solution would work in either Zencart version.

12 Feb 2012, 8:30 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

stevesh:

a situation where the selection of one attribute resulted in the display of a certain set of other attibutes. That can't be done in any Zencart version.

Hm... Perhaps I don't understand what you just wrote... :blush:

But, if you're saying that the second attribute can't depend on the first, I can't agree. Well, it's not a standard out-of-the-box feature, but can easily be achieved using the two add ons I've mentioned. Take a look at this here, although maybe not very representative since most of the stuff is out of stock (and I built that site over 2 years ago)... Anyway, you must first select size and then color. The color dropdown depends on the size chosen.

So, what OP asked about CAN be achieved, and it's rather easy to do it.

My site - Pro ZC Help
My portfolio | My plugins

12 Feb 2012, 8:42 PM
#6
stevesh avatar

stevesh

Black Belt

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

Re: attribute of an attribute?

Might be me who doesn't understand, and websites presented in a language I don't understand are surprisingly difficult to navigate :laugh: , but I can't find a product where the optiions in the 'Color' dropdown (Boja) change depending on the selection in the Size dropdown (Velicina).

12 Feb 2012, 8:49 PM
#7
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

As I said, it will not be very representative since most of the stuff is out of stock. Only the black products are in stock, other colors don't show since it's out of stock.

However, this is just for you. :smile:

Take another look at the URL.
I just added "Red to Size M" and "Blue to XL"

Please let me know after you take a look so I can remove those options, it's a live store.

My site - Pro ZC Help
My portfolio | My plugins

13 Feb 2012, 11:50 AM
#8
stevesh avatar

stevesh

Black Belt

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

Re: attribute of an attribute?

I stand corrected. If there's anything one needs to do to achieve that function other than install the two mods you mentioned, you might let us know. There are a lot of Zenners who would like to be able to do that.

13 Feb 2012, 11:59 AM
#9
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

:smile: Always nice to tutor a respected member of the community such as you.

No, that's all there is to it. Stock by Attributes takes care of the attribute combinations and Dynamic Dropdowns takes care of dependant attributes. It's a rather simple install if you know what you're doing.

I've done it quite a few times before, but the administration isn't very friendly if you have a lot of products since you have to do it one by one.
Also, I'm not sure if it can handle a set of 3 attributes, I've never used more than 2.

My site - Pro ZC Help
My portfolio | My plugins

13 Feb 2012, 1:51 PM
#10
alliou avatar

alliou

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: attribute of an attribute?

Thank you both so much! I was away for the weekend & only got a chance to check this post now. I wasn't able to see a working version of balihr's example as it's already down but trust you both that it was working at one time. :)

I will be trying this out on the site I'm working on in the next couple of days~ I will need to make it work for more than 2 attributes so we'll see how that goes! (i.e. size, fabric, color).

I'm also being asked to display attribute images based on their dependencies BEFORE anything is chosen.

Any ideas? I've been racking my brain trying to figure this out.

I've attached a screenshot of what I'm talking about in the event that it helps.

Again - thank you so much!

13 Feb 2012, 10:14 PM
#11
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

I don't see a reason why it couldn't be done using attribute image swatches. However, some serious coding will be required... Good luck. :smile:

My site - Pro ZC Help
My portfolio | My plugins

13 Feb 2012, 11:16 PM
#12
devlyn avatar

devlyn

New Zenner

Join Date:
Jan 2006
Location:
Texas
Posts:
64
Plugin Contributions:
0

Re: attribute of an attribute?

Why not just go with more detailed attributes like:

Linen - Black
Linen - Red
Linen - Purple
Velvet - Red
Velvet - Pink

Odd Bodkin Renaissance Shop (1.3.9h shop)
http://www.oddbodkin.com

17 Feb 2012, 6:18 AM
#13
bobe1997 avatar

bobe1997

New Zenner

Join Date:
Feb 2005
Posts:
34
Plugin Contributions:
0

Re: attribute of an attribute?

Is there a add on like stock by attributes for version 1.5?

17 Feb 2012, 3:25 PM
#14
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: attribute of an attribute?

devlyn:

Why not just go with more detailed attributes like:

Linen - Black
Linen - Red
Linen - Purple
Velvet - Red
Velvet - Pink

I was thinking the same thing when I read the first post..

17 Feb 2012, 4:54 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: attribute of an attribute?

That is simple enough for a small number of choices, but if the first attribute has four possible values and the second has four, that is sixteen radiobuttons... doesn't sound so good then. And if the suggested mod combination can handle out of stock attributes automatically, that is a big factor in its favor for any size of list.

17 Feb 2012, 5:05 PM
#16
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: attribute of an attribute?

gjh42:

That is simple enough for a small number of choices, but if the first attribute has four possible values and the second has four, that is sixteen radiobuttons... doesn't sound so good then. And if the suggested mod combination can handle out of stock attributes automatically, that is a big factor in its favor for any size of list.

Tidier if you used a dropdown.

19 May 2012, 2:10 PM
#17
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Re: attribute of an attribute?

How about checkbox?

Please Choose:

[dropdown large $12, med $10, small $8]

O Extra cheese ( +$1.49L, [+$1.25M,] [+$1S]] )
O Bacon ( +$1.99L, [+$1.50M..... ]])
O Chicken ( +$1.99L... )
O Jalapenos ( +$1.99L ...)
O etc....
So if the customer selects a medium pizza then the checkboxes would "show/update" to the correct topping prices. The option is to build 3 separate pages.

Thanks
(please, whimper, I'll buy a beer, whine, will be forever greatful, tu,tu,tu....) :yes:

19 May 2012, 6:35 PM
#18
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,799
Plugin Contributions:
22

Re: attribute of an attribute?

Unfortunately, this is not supported in SBA nor Dynamic Dropdowns. Dynamic Dropdowns do exactly what the name suggests - drop down menus. :( There is no alternative that I know of, except you code it yourself...

My site - Pro ZC Help
My portfolio | My plugins