![]() |
Move/copy category structure?
I have a category that I have populated with subcategories and products. I want to create another category that is basically a carbon copy of the existing category structure with only the top level name changed.
Is there a way of copying the existing category structure and renaming it? Or is there a way of getting a category link on the category menu to point to another categoryid? So, for instance, I could have, "Spares and Accessories" and "Accessories and Spares" pointing to a single category? I would simply add the products to an additional category if they weren't also in different and multiple categories so I can't multiple do the multiple select update thing :( I've tried code in categories.tpl with: {if $categories[cat_num].categoryid eq 100}<a href="home.php?cat=50">{$categories[cat_num].category}</a>{/if} but all that does is create two category entries...any help greatly appreciated. Thanks Dan |
Re: Move/copy category structure?
OK, I sorted this myself quite simply.
Basically, I wanted to have two separate links in the left hand side category menu pointing to only one category. I did this by editing skin1/customer/categories.tpl and put an if statement in to read: Code:
{if $categories[cat_num].categoryid eq 3} In this example I'm hardcoding the link to the "Shoes" category so that it points to category 5 (which is the existing category of "Shoes and Trainers", hence the need to have two links to it in the menu). The link appears after category 3 is displayed. Although this is a low level manual hack it does the job! Dan |
All times are GMT -8. The time now is 07:34 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.