Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do you link a sub-category to a primary catago


Dolcev

Recommended Posts

Posted

I wonder if you guys can help.

 

Do you know if it's possible (currently) to link a sub-category to a primary catagory.

 

For example I have a category called "Data & Video Projectors" which has a number of sub-categories. The problem is I have another category which has "Data & Video Projectors" as one of its sub-categories.

 

See what I'm saying? Not sure if I'm being clear.

I've looked for a contribution for this but can't find one. I think it might be possible to achieve by using an "if else" statment somewhere. IE....

 

------------------------------------------

 

if ($cPath == "cPath=50_62") {

 

Go to the category

 

} else {

 

Carry on

 

--------------------------------------------

 

Any suggestions?

 

Thanks

Posted

I am not sure what problem you are having. You go into the admin and go to the category you want to add the subcat to and add Data & Video Projectors as a subcat. The fact that there is a main category with that name should not matter at all to osC. Numbers are assigned to each cat, subcat, and product so unless your customers get confused you should not have any problems.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

Thanks for the reply.

 

Let me try to explain like this....

 

I have a primary category called "Primary1" and a primary category called "Primary2".

 

The category "Primary2" has a subcategory called "Sub1". How do I link "Sub1" to "Primary1"?

 

 

Thanks.

Archived

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

×
×
  • Create New...