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)
-   -   Adding HTML to the main menu (https://forum.x-cart.com/showthread.php?t=18566)

Barnastil 12-10-2005 05:06 AM

Adding HTML to the main menu
 
Hi everyone,

I was just wondering if someone could tell me if it is possible to put HTML in the "categories" box and how I would go about doing that.

Allow me to explain. What I would like to do is have something similar to this.....


Category
Product
Product
Product
Product
Product
Category
Product
Product
Product
Product
Product
Category

I like how the categories are set up since it is a medical supplement store and people can search according to their ailments, but what I would like to do is have an html link for those who already know what product they want. I know, I know, X cart has a search engine...It was my intention to use it, but this is something the client insists on and heб╢s driving me nuts with it.

Thanks for the help guys and gals.

shan 12-10-2005 10:07 AM

just hard code the links to the categories template

Barnastil 12-10-2005 11:58 AM

How?
 
See, thatб╢s the thing, I canб╢t find where the category list that I have created is to insert the products inbetween the categories...I guess what I could do is hard code the categories to go to the link where they are found, but I wasnб╢t sure if that would screw up the scheme of things on other pages. I could modify the following in "Customer/Categories.tpl" taking out the bold area and hardcoding HTML to the part where my categories are found, right?


Quote:

{* $Id: categories.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}
<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>

{/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 }


shan 12-10-2005 01:11 PM

just add links for both the products and the categories if you think they wont be changing much

you got the right template

Barnastil 12-12-2005 01:54 AM

Problem
 
This would present a problem when I want to change languages wouldnб╢t it? I suppose I would have to create variables for each one.


All times are GMT -8. The time now is 03:24 PM.

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