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

Have categories that don't show up in the main menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-20-2006, 11:16 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default Have categories that don't show up in the main menu

Hello,

I have recently set up a gift center on my site and want to group products in different categories. However, I don't want these categories to show up on my main menu (otherwise it will become too long!)

Is there a way to create a category and link to it from a static page, but not have that category show up in your main menu?

Any help would be appreciated.

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #2  
Old 01-20-2006, 12:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Make the category hidden. There is a mod for this in the Custom Mods forum.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-26-2006, 12:38 AM
 
sonoro sonoro is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 1
 

Default

Modify "skin1/customer/categories.tpl":

After: "{section name=cat_num loop=$categories}"
Add: "{if $categories[cat_num].order_by lt 20}"

After this modification only categories with a "order_by" in the admin-backend lower than ("lt") 20 will be displayed. Set every order-by-number of the categories you don't want to show in the menue higher than 20.
Reply With Quote
  #4  
Old 01-26-2006, 12:12 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

sonoro -- I couldn't get that to work. Here's the code for my categories.tpl file:

Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {* $Id: categories.tpl,"Category menu modifications" 2005/01/28 09:53:29 chesser Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {* BEGIN Customization "Category menu modifications" *} {section name=cat_num loop=$categories} {if $categories[cat_num].order_by eq 0} {$lng.lbl_heading1} {elseif $categories[cat_num].order_by eq 80} {$lng.lbl_heading2} {elseif $categories[cat_num].order_by eq 90} {$lng.lbl_heading3} {/if} {section name=allcat_num loop=$allcategories} {if $allcategories[allcat_num].categoryid eq $cat and $allcategories[allcat_num].parentid eq $categories[cat_num].categoryid}{assign var="is_sub_cat" value="Y"}{/if} {/section} {if $cat eq $categories[cat_num].categoryid or $is_sub_cat eq "Y"}{/if} {* SAFETYNET DSEFU MOD *} {if $enable_seo_links == "Y"} {$categories[cat_num].category} {else} {$categories[cat_num].category} {/if} {* END SAFETYNET DSEFU MOD *} {if $cat eq $categories[cat_num].categoryid or $is_sub_cat eq "Y"} {section name=allcat_num loop=$allcategories} {if $allcategories[allcat_num].parentid eq $categories[cat_num].categoryid} {if $cat eq $allcategories[allcat_num].categoryid}{/if} {* SAFETYNET DSEFU MOD *} {if $enable_seo_links == "Y"} {$allcategories[allcat_num].category} {else} {$allcategories[allcat_num].category} {/if} {* END SAFETYNET DSEFU MOD *} {if $cat eq $allcategories[allcat_num].categoryid}{/if} {/if} {/section} {/if} {assign var="is_sub_cat" value="N"} {/section} {* END Customization "Category menu modifications" *} {else} {section name=cat_num loop=$subcategories} {* SAFETYNET DSEFU MOD *} {if $enable_seo_links == "Y"} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {else} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/if} {* END SAFETYNET DSEFU MOD *} {/section} {/if} {/if} {/capture} { include file="menu.tpl" menu_content=$smarty.capture.menu }

Any idea how I can make it work? I see there is a commercial mode but I don't really need this working bad enough to pay $40. It would be nice if there was a simple solution though.

Thanks for any help you can give!

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #5  
Old 01-26-2006, 12:14 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

There is a free mod for this in the Custom Mods forum.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 01-26-2006, 12:20 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

I went through that entire thread and tried everything mentioned but I was unable to get it to work. It was originally started for version 3.x and then some comments were made about 4.x but I wasn't able to even find the code I needed to change.

Thanks though. If I knew more coding I'm sure that thread would have told me everything I needed to know!

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
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 09:29 PM.

   

 
X-Cart forums © 2001-2020