How to crosslink subcategories?

When I create the categories, I found that I may want a certain subcategory to be listed in different categories. Is there a way to link such a subcategory from one category to another? Any help would be highly appreciated.

Could anybody help me with that? Thanks in advance!

In Design > Blocks > Categories, I set up a block called Related Categories.



Block content: Categories

Filling: Manually



Then you go to the category where you want to link the other subcats and click on Blocks, then choose the link to your Related Categories block and add the categories. You also have to check the box next to “Enable for this page:”

[quote name=‘ogia’]In Design > Blocks > Categories, I set up a block called Related Categories.



Block content: Categories

Filling: Manually



Then you go to the category where you want to link the other subcats and click on Blocks, then choose the link to your Related Categories block and add the categories. You also have to check the box next to “Enable for this page:”[/QUOTE]



Thank Ogia for your great help. The solution is pretty close to my purpose. However it is still not my original thought.



When I click a category / subcategory named “B”, I wanted to open or link to a subcategory named “A” and show the products or sub-subcats under “A” directly. In this case, I don’t need to create the same products or subcategories under “B” again.



Thanks again for your help. Any other ideas would be greatly appreciated.

[quote name=‘freebull’]Thank Ogia for your great help. The solution is pretty close to my purpose. However it is still not my original thought.



When I click a category / subcategory named “B”, I wanted to open or link to a subcategory named “A” and show the products or sub-subcats under “A” directly. In this case, I don’t need to create the same products or subcategories under “B” again.



Thanks again for your help. Any other ideas would be greatly appreciated.[/QUOTE]



You could set the link to category A to redirect to category B by putting this in an htaccess file:

Redirect 301 /directory/to/categoryA http;//youstore.com/directory/to/categoryB



That may not get you exactly what you are wanting though.

[quote name=‘ogia’]You could set the link to category A to redirect to category B by putting this in an htaccess file:

Redirect 301 /directory/to/categoryA http;//youstore.com/directory/to/categoryB



That may not get you exactly what you are wanting though.[/QUOTE]



You are a genius to give such a solution even though this is not what I intended as you said. There should be an easy way to do the same job. Like in Design->Top Menu-> URL, we can easily put a different URL to redirect to another category. Anyway, Thanks again. I’m going to look further to see if there is another solution.

[quote name=‘ogia’]You could set the link to category A to redirect to category B by putting this in an htaccess file:

Redirect 301 /directory/to/categoryA http;//youstore.com/directory/to/categoryB



That may not get you exactly what you are wanting though.[/QUOTE]



Hello Ogia,



It seems I’m not able to find out the other solutions. I tried to use your method to redirect the link. However, it didn’t work. I could get something wrong. I put the following command in .htaccess files under the root of both my site and my cs-cart store.

Redirect 301 [url]http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=2024[/url] [url]http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=1382[/url]



Is the command correct? or I put it to the wrong .htaccess files? I found there are lots of .htaccess files under different folders. I don’t which one I should put it in.



I’m very grateful if you could help me with it.

[quote name=‘freebull’]Hello Ogia,



It seems I’m not able to find out the other solutions. I tried to use your method to redirect the link. However, it didn’t work. I could get something wrong. I put the following command in .htaccess files under the root of both my site and my cs-cart store.

Redirect 301 [url]http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=2024[/url] [url]http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=1382[/url]



Is the command correct? or I put it to the wrong .htaccess files? I found there are lots of .htaccess files under different folders. I don’t which one I should put it in.



I’m very grateful if you could help me with it.[/QUOTE]



Well, there are a few problems.



The regular 301 redirect will not work with dynamic urls (with the question mark in them). If you were using SEO urls it would work. You have to use mod_rewrite instead, but I’m not sure about the syntax you need to use.



The other issue is that only the second part should have the http://

Also, the .htaccess file needs to be in your /store directory



If dynamic urls worked, you’d want to format it this way. You could give this a shot, but I don’t think it will work.

Redirect 301 /store/index.php?dispatch=categories.view&category_id=2024 http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=1382

[quote name=‘ogia’]Well, there are a few problems.



The regular 301 redirect will not work with dynamic urls (with the question mark in them). If you were using SEO urls it would work. You have to use mod_rewrite instead, but I’m not sure about the syntax you need to use.



The other issue is that only the second part should have the http://

Also, the .htaccess file needs to be in your /store directory



If dynamic urls worked, you’d want to format it this way. You could give this a shot, but I don’t think it will work.

Redirect 301 /store/index.php?dispatch=categories.view&category_id=2024 http://www.cybbay.com/store/index.php?dispatch=categories.view&category_id=1382[/QUOTE]



Thanks for your help again. I think I need to get a book to learn the syntax of dynamic urls. Once I get a result, I’ll let you know.