Grouping products together (not product kit)

Posts: 144
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

Hi everyone. I have a client that's requesting a way to group products together.
This is the scenario:
They have about 15 main products (control units for electricity). There are about 50 accessory products that work together with these main products. Some of the accessories fit to more than one of the main products, while others only fit one of the main products. The accessories are organised in different categories in the catalog.

What they want is that when someone view a main product, they want to list all accessories that match the main product they are currently viewing. This is so that people can easily find out which accessories fit the different main products.

The way I see it, übercart has two ways of doing this now:

1) Use the product kit module. Make kits, and make sure that the kits are not visible. I can use the kits together with some custom "hacking" code to be able to list accessories based on the kit of the main product.

2) Use categories. That is, just list up the other products in the same category as the product one is currently viewing. This would not work in this case, since the accessories are spread in different categories (one accessory may fit several main products).

None of these are very good solutions in my opinion. Are there any other ways to do this? If not, i'll start looking at creating a module for this, but how should that module work? Any ideas?

I could probably create another taxonomy and use that in paralell with the catalog taxonomy to define the "grouped products" that way. But something about that doesn't sound right in my ears.

Any ideas? Sticking out tongue

______________
Thomas Kulvik
Ny Media AS
www.nymedia.no

Posts: 332
Joined: 08/07/2007
Administrator

You should talk to Lyle about this. For our restaurant equipment parts site, Lyle created a custom module that creates a mapping of multiple products to other multiple products. In our case, True equipment products contain multiple parts and each part contains multiple True equipment models that it works for. This sounds similar to the solution you need.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 2271
Joined: 08/07/2007
AdministratoreLiTe!

Laughing out loud I love it when people ask for stuff I've already written.

Go take a gander at our restaurant equipment parts site. Each of the products has a list of links to the parts that go in it, and the parts have a list of links to the equipment they go into. I think this module will help you do what you want.

uc_productreference is based on the CCK node_reference module. The main differences are the formatter to get the model number and the title in the links and the input form that accepts the model numbers. There is also a cron hook that makes sure that the references are symmetrical. Give your accessories the references to the products, and the cron job will take care of the rest.

On our parts site you can see that we put the parts in a separate category from the equipment and organized them from there. It's just a suggestion, and I'm sure you'll end up doing whatever works for your site.

AttachmentSize
uc_productreference.tar.gz6.27 KB
Posts: 144
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

thanks a lot Lyle Laughing out loud This sounds excellent. I'm going to give that module a go later tonight.

Thanks again Smiling

______________
Thomas Kulvik
Ny Media AS
www.nymedia.no

Posts: 144
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

Just tried your module and it worked perfectly Smiling Thanks again Lyle.

______________
Best regards,
Thomas Kulvik
Ny Media AS
www.nymedia.no

Posts: 5
Joined: 03/20/2008

I've added Lyle's module but can't see where to set up the relationships between products.

Can someone spell it out for me please?

Posts: 5
Joined: 03/20/2008

I've just worked it out:

Go to Administer › Content management › Content types › Product then select Add field. Product Reference is listed as a field type.