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

SIGH.... multiple main category menus not working

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-17-2006, 10:40 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default SIGH.... multiple main category menus not working

I am trying to create multiple main category menus and have them function with either pos values or making new entry fields within the admin category_modify.tpl

Here is a sample of what i am trying to achieve:
http://www.starvingpilotshop.com/shop/home.php

I have been looking through forum posts... and these refer to what I am trying to do.... but i still can't seem to make 'em work


http://forum.x-cart.com/viewtopic.php?t=27016&start=0&postdays=0&postorder =asc&highlight=multiple%20category%20menus

http://forum.x-cart.com/viewtopic.php?t=27033&start=0&postdays=0&postorder =asc&highlight=multiple%20category%20menus

So far, I have created tpl files for the new categories (categories2.tpl and categories3.tpl). However, I just cut and pasted the code from the original categories.tpl, and I don't know how to modify it to make it fuction within customer home.tpl

right now i just get an ugly "parse error" message!

pos values within the customer mangement section have been set.... are tehre advantages/disadvatages to this meathod as opposed to creating new output fields within the admin category_modify.tpl file?

anyways..... here is my code for categories2.tpl
I need some pointers on how to modify it so it works when i include it in the home.tpl code



Code:
{* $Id: categories2.tpl,v 1.23 2004/06/24 09:53:29 max 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"} {section name=cat_num loop=$categories} {if $categories[cat_num].order_by < 500} <FONT class="CategoriesList">{$categories[cat_num].category}</FONT> {/if} {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

thanks a lot,
michelle

x-cart vs 4.0.19[/code]
__________________
XCART version 4.0.19
Reply With Quote
  #2  
Old 08-18-2006, 03:07 AM
 
balinor balinor is offline
 

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

Default

What, exactly, does the error say?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-18-2006, 11:23 AM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default

The error message says:

Quote:
Parse error: parse error, unexpected '<' in /home/content/m/o/t/motonekoparts/html/XCART/templates_c/%%44^44B^44B58DE1%%categories2.tpl.php on line 31
__________________
XCART version 4.0.19
Reply With Quote
  #4  
Old 08-18-2006, 12:33 PM
 
balinor balinor is offline
 

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

Default

Ahh...clear out your templates_c directory. Just delete all the files in there....it is caching the templates.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-18-2006, 01:26 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default

I tried cleaning out my templates_c directory by deleting all the files, but they keep reappearing! I ran the cleanup.php, and the message confirms that template_c is cleaned up.... but i am still getting the same error message as before.

does the code for my categories2.tpl look right? all i did was cut and paste from the orignial categories.tpl file, and give it a different name.

thanks again...
__________________
XCART version 4.0.19
Reply With Quote
  #6  
Old 08-18-2006, 01:27 PM
 
balinor balinor is offline
 

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

Default

You didn't check the 'Compile Templates' box by any chance did you?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-18-2006, 01:41 PM
 
pinklinoleum pinklinoleum is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 37
 

Default

the only "compile templates" selection that I know of is at the bottom of the "browse templates" section within the "edit templates" window. however, this is not a box that you can check or un-check. it's just a button to disable multi-language templates.

I have not used this button .... and as far as i know, i have not compiled the templates for this site.

is this the "compile templates" that you are referring to?
__________________
XCART version 4.0.19
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 01:57 PM.

   

 
X-Cart forums © 2001-2020