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

Yikes... categories disappeared

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2010, 04:19 PM
 
Tami Indra Tami Indra is offline
 

Member
  
Join Date: Aug 2008
Posts: 16
 

Exclamation Yikes... categories disappeared

Lesson of the day: don't modify xcart templates on 3 hours of sleep.

Sigh. It was so lovely. I was all finished, went to clean up some commented bits and must have pulled out something crucial along with it. Save. Close.

Could someone please take a look at my code and see what I could have possibly done that would cause my categories menu (in the sidebar) to suddenly disappear? The header image isn't even showing up.

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} <img src="{$ImagesDir}/title_categories.png" alt="Categories" /> {capture name=menu} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <p><a href="home.php?cat={$c.categoryid}">{$c.category}</a></p> <ul> {foreach from=$allcategories item=cat} {if $cat.parentid eq $c.categoryid} <li><a href="home.php?cat={$cat.categoryid}" class="VertMenuItems">{$cat.category}</a></li> {/if} {/foreach} </ul> {/foreach} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

My last backup was way too long ago, and would prefer not to revert unless I absolutely have to.
__________________
Version 4.1.9
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #2  
Old 03-25-2010, 10:57 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Yikes... categories disappeared

If it's not showing at all, it's probably not the actual file, but the include statement that calls it. This should be in your home.tpl template - perhaps check there first.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 03-28-2010, 06:16 PM
 
Tami Indra Tami Indra is offline
 

Member
  
Join Date: Aug 2008
Posts: 16
 

Default Re: Yikes... categories disappeared

Quote:
Originally Posted by pauldodman
If it's not showing at all, it's probably not the actual file, but the include statement that calls it. This should be in your home.tpl template - perhaps check there first.

Nope, the include is right where it should be. I wasn't modifying that file anyway.

Any other ideas??
__________________
Version 4.1.9
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #4  
Old 03-28-2010, 09:17 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Yikes... categories disappeared

Your missing the closing if statement for:

{if $config.General.root_categories eq "Y"}

Based on how you've edited your file I'd say this statement can be removed.
Reply With Quote
  #5  
Old 04-01-2010, 09:21 AM
 
Tami Indra Tami Indra is offline
 

Member
  
Join Date: Aug 2008
Posts: 16
 

Default Re: Yikes... categories disappeared

Quote:
Originally Posted by Jon
Your missing the closing if statement for:

{if $config.General.root_categories eq "Y"}

Based on how you've edited your file I'd say this statement can be removed.

Got it!! Thanks Jon, I appreciate it!
__________________
Version 4.1.9
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #6  
Old 04-01-2010, 09:38 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Yikes... categories disappeared

Try clearing your template cache after removing that.
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:48 AM.

   

 
X-Cart forums © 2001-2020