Forums / Setting Up Categories, Products, Attributes / Category Tabs Menu - How to add a character between

Category Tabs Menu - How to add a character between

Locked

Views: 1,422

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Mar 2008, 1:10 AM
#1
fightthefourwalls avatar

fightthefourwalls

New Zenner

Join Date:
Nov 2007
Posts:
57
Plugin Contributions:
0

Category Tabs Menu - How to add a character between

How would I go about adding a character between each of the categories in the Categories Tabs Menu? I'm guessing its nothing under NavCatTabs in the stylesheet, so would have to be in tpl_modules_categories_tabs.php...

Instead of it listing them as:

Category 1 Category 2 Category 3

I would want it as
Category 1 | Category 2 | Category 3

I don't want the spaces and the " | " separators to be linked though...

18 Mar 2008, 12:04 AM
#2
fightthefourwalls avatar

fightthefourwalls

New Zenner

Join Date:
Nov 2007
Posts:
57
Plugin Contributions:
0

Re: Category Tabs Menu - How to add a character between

Any ideas?

27 Mar 2008, 4:59 PM
#3
whitefrog avatar

whitefrog

New Zenner

Join Date:
Mar 2008
Posts:
23
Plugin Contributions:
0

Re: Category Tabs Menu - How to add a character between

This is my first post and my first Zen Cart, so I am not an expert. Here is a quick solution I found for your problem. It was tricky to not have the trailing | marker at the end, solved by a little if statement.

the file is located at /includes/templates/template_default/templates. I would recommend copying it to /includes/templates/your_template/templates
before making any changes.

<?php
/**
 * Module Template - categories_tabs
 *
 * Template stub used to display categories-tabs output
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $
 */

  include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
?>
<?php if (CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1) { ?>
<div id="navCatTabsWrapper">
<div id="navCatTabs">
<ul>
<?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
  <li><?php echo $links_list[$i];?><?php if ($i+1<$n) { echo " | "; } ?></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>
28 Mar 2008, 8:37 AM
#4
fightthefourwalls avatar

fightthefourwalls

New Zenner

Join Date:
Nov 2007
Posts:
57
Plugin Contributions:
0

Re: Category Tabs Menu - How to add a character between

Wicked thanks heaps for that!!! You're a legend!!!

:clap:

Thanks again