7 replies [Last post]
elephantiX@drupal.org's picture
Offline
Joined: 06/05/2008
Juice: 49
Was this information Helpful?

Hi uberfolks,
i´m very new to this ubercart an drupal and need a solution for the following problem

i´ve got several products say cabinet systems and every product has some product classes - say cabinetdoors from type A and cabinetdoor type B and cabinetdoors type C.
every cabinetdoor has it´s own options - say size for attribute A option 20;40;60 for attibute B option 30,50,80 and for attribute C option 20;40;60;30;90. now i need a solution to display the right cabinetdoors to the cabinets. but it is possible that for instance cabinet 1 (product) can have doors (attribute) type A and C and cabine 2 (product) can have cabinetdoors (attribute) type B and C and so on.

so as i have tonns of these attributes with different options i need a solution how to make one attribute depending on the selection of another attribute. Ex. i want to have a dropdown in my product page to select a attribute and if the user has choosen one item in this list he will get the next dropdown with attributes and all options. i think it is some sort of a hirachical system for attributes and options. i tried to figure out if is possible to archive this with product classes but i didn´t get it to work as the documentation did not show the more complex problem it mentioned as example (t-shirt, Cap, color, size).

help folks - anybody out there who can help me - and are there more detailed documentations for ubercart in the web ?
and sorry formy bad written english - i hope you understand what i need.

thanks and sun to you all
long lives drupal ubercart and my mother

Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1076
My new Sig.

Just so everyone knows. I like ElephantiX's catchy phrase "Long live Drupal, Ubercart and my mother!" so much that I blatantly stole it for my new signature. I am not nearly cool enough to come up with that on my own, but I am cool enough to love it.
Peace,
Andy

elephantiX@drupal.org's picture
Offline
Joined: 06/05/2008
Juice: 49
thive with no tip ?

hey andy
nice that my frase fits your need - would be fair to comment that you got it out of my brain - what about - "Long live Drupal, Ubercart and my mother! (brained by elephantiX).
never the less it would be more helpful to me and you would be the coolest guy if you could explain how to make that hirachical atribute list...
thanks
cheers

teksestro's picture
Offline
Joined: 06/03/2008
Juice: 31
Re: How To archive a hirachical atribute selection ??? urgent ti

elephantix, I am new to Übercart, too, so other more experienced users may have better suggestions. In any case, there may be more than one way to solve your problem, even without going into any programming.

First solution, would be to create "combination attributes". That is, instead of having 2 separate attributes (attr.1 options = "A, B or C", attr.2 options = "20, 30, 40, 50, 60, 80, 90"), you would have just 1 single attribute, which would include all 21 possible combinations:

attr.Combo options = "A-20, A-30, A-40, A-50, ..., C-60, C-80, C-90"

Another option would be to put "A", "B" and "C" in your catalog as separate products, and then just use the second attribute on all 3 products.

Either way, it does not seem to me like you need to use different product classes.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: How To archive a hirachical atribute selection ??? urgen

The Hierarchical Select module has been mentioned before as a possible way to address this situation: http://drupal.org/project/hierarchical_select

It will require some development work to see if it can be used for attributes. Looks interesting, though.

<tr>.
elephantiX@drupal.org's picture
Offline
Joined: 06/05/2008
Juice: 49
but the matrix is to complex

thanks teksestro for the idea,
i had this in a very early stage as well but the problem with combined attributes is that the matrix is very long - think of a cabinet that has several options: it can have 4 different breadths some of them have 1 door some 2 doors and some 2 doors and a drawer. some can have 2,3,4,5 drawers and no doors. all these combinations are possible with 13 different design fronts. so it is a huge amount of combinations and no customer at all will use that long lists in dropdowns.

the problem with the second method is that if i build it as several product kits the customer will think that he will get all the products (they are displayed in the whole checkout process) - but to come back to my excample before if the real product are different handholds for the different doorcombinations of the cabinets and not the parts of the cabinets that i have to have as a sort of "helper objects" i will get in conflict with german law of describing products and selling in online stores.

so indeet another solution would be greate or perhaps sombody who can implement such a thing as a contribution. hope to get help !

long lives ubercart my macbattery and mother earth

cheers
carsten

Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1076
Hierarchical Select

Right now there is no easy way to do hierarchical select with Ubercart. As TR says, I would look at the http://drupal.org/project/hierarchical_select module and see if you can make it work for what you need. Hopefully we will build this into Ubercart for future releases.
Peace,
Andy

elephantiX@drupal.org's picture
Offline
Joined: 06/05/2008
Juice: 49
So what can be the complicated way ?

Hi folks,
thanks for your suggestions. so as andy wrote there is no easy way i hope there ist a more complex way to archive this ? i looked for that module and played a bit around but i have no idea how to use it for getting the taxonomy information it stores to the end of my order chain. the problem is that i need the information like the user would have been choosen a attribute (say product A with attribute B in size C and attribute C in size C) as the attribute setup is much more complex than i can explain with my bad english here ihope to get another workaround for that issue ore somebody who can help me (payed) as i´m not at all a coder - (i´m only information architect).
so folks thaks for your help in advance !
thanks andy for the brained by ... Eye-wink i like this lol