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

Adding HTML to the main menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-10-2005, 05:06 AM
 
Barnastil Barnastil is offline
 

Member
  
Join Date: May 2005
Posts: 27
 

Default 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.
__________________
Cart 536898935 Version 4.0.16
Reply With Quote
  #2  
Old 12-10-2005, 10:07 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

just hard code the links to the categories template
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-10-2005, 11:58 AM
 
Barnastil Barnastil is offline
 

Member
  
Join Date: May 2005
Posts: 27
 

Default 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 }
__________________
Cart 536898935 Version 4.0.16
Reply With Quote
  #4  
Old 12-10-2005, 01:11 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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

you got the right template
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 12-12-2005, 01:54 AM
 
Barnastil Barnastil is offline
 

Member
  
Join Date: May 2005
Posts: 27
 

Default 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.
__________________
Cart 536898935 Version 4.0.16
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 10:31 AM.

   

 
X-Cart forums © 2001-2020