Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two Categories / One Product


matty102

Recommended Posts

Hi all,

 

Is there a way I can list a product in two Categories without it being a duplicate?.

 

i.e doesn't show twice when listing all items but appears in two different Categories.

 

Some of my products are linked to different Categories but If I list all items it looks like there are loads of duplicate products because they are basically the same but appear in two different categories. I only want the one product entered to appear in both Categories!

 

Hope that makes sense!. :'(

 

Thxs for any help.

Link to comment
Share on other sites

I dont know if it can be done from the admin interface, but you can easily do this in the database directly.

 

In the products_to_categories table, insert a new record with your product id and the id of the additional category. This way, the product is displayed in both categories, but is still a single product - if you'd edit it under one category, it'd change under the other one as well.

Link to comment
Share on other sites

Hi all,

 

Is there a way I can list a product in two Categories without it being a duplicate?.

 

i.e doesn't show twice when listing all items but appears in two different Categories.

 

Some of my products are linked to different Categories but If I list all items it looks like there are loads of duplicate products because they are basically the same but appear in two different categories. I only want the one product entered to appear in both Categories!

 

Hope that makes sense!.  :'(

 

Thxs for any help.

 

 

Have you tried the "COPY TO" commmand in Admin - Categories/Products?

 

Pete

Link to comment
Share on other sites

I dont know if it can be done from the admin interface, but you can easily do this in the database directly.

 

In the products_to_categories table, insert a new record with your product id and the id of the additional category. This way, the product is displayed in both categories, but is still a single product - if you'd edit it under one category, it'd change under the other one as well.

 

Ok, thanks a lot Benm. I will give this a shot. If anyone else knows of any other ways please let me know.

Cheers.

Link to comment
Share on other sites

Have you tried the "COPY TO" commmand in Admin - Categories/Products?

 

Pete

 

Hi Pete,

 

Yes I have tried this but what this does is put the product into two different Categories (great) but if I then view all products I have two of the same product so will end up with loads of duplicates which I don't really want to do.

Link to comment
Share on other sites

Hi Pete,

 

Yes I have tried this but what this does is put the product into two different Categories (great) but if I then view all products I have two of the same product so will end up with loads of duplicates which I don't really want to do.

 

Did you use Link or Clone when copying ? With Link you only have one product shown in several categories and with Clone you will have the same product multiple times. Viewing all products should take this difference into account.

Link to comment
Share on other sites

Did you use Link or Clone when copying ? With Link you only have one product shown in several categories and with Clone you will have the same product multiple times. Viewing all products should take this difference into account.

 

Thanks Pete! This has worked fine. I suppose I should of spotted this really! Thanks again, I owe you a beer!!! :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...