Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Move/copy category structure?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-18-2006, 06:39 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default 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
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 11-21-2006, 03:56 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default 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} <FONT class="CategoriesList"><A href="home.php?cat=5" class="VertMenuItems">Shoes</A></FONT> {/if}

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
__________________
4.4.2

and

4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:01 AM.

   

 
X-Cart forums © 2001-2020