X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   SIGH.... multiple main category menus not working (https://forum.x-cart.com/showthread.php?t=24187)

pinklinoleum 08-17-2006 10:40 PM

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]

balinor 08-18-2006 03:07 AM

What, exactly, does the error say?

pinklinoleum 08-18-2006 11:23 AM

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


balinor 08-18-2006 12:33 PM

Ahh...clear out your templates_c directory. Just delete all the files in there....it is caching the templates.

pinklinoleum 08-18-2006 01:26 PM

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...

balinor 08-18-2006 01:27 PM

You didn't check the 'Compile Templates' box by any chance did you?

pinklinoleum 08-18-2006 01:41 PM

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?


All times are GMT -8. The time now is 07:08 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.