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

How to add >> before each category listing?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-06-2002, 06:12 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default How to add >> before each category listing?

Hello, Can you please tell me how I can add >> before each category listing...for example.... >>Processors I do not want the >> to be part of the hyperlink however. Thanks!!
Reply With Quote
  #2  
Old 11-06-2002, 06:21 PM
  shan's Avatar 
shan shan is offline
 

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

Default

edit categories.tpl and add your html code where ive shown

Quote:
{* $Id: categories.tpl,v 1.14 2002/09/10 12:58:26 zorg Exp $ *}
<TABLE border=0 cellPadding=5 cellSpacing=0 width=100%>
<TR>
<TD class=MenuTitleLine height=26 width=26 valign=center>[img]{$ImagesDir}/dingbats_categorie.gif[/img]</TD>
<TD class=MenuTitleLine height=26 valign=center width="80%"><FONT class=TableLeftTitles>{$lng.lbl_categories}</FONT></TD>
</TR>
<tr><td colspan=2 class="TableLeftElements" nowrap>
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<font class=CategoriesList>put code here { $categories[cat_num].category|escape }</font>

{/section}
{else} {section name=cat_num loop=$subcategories}
<font class=CategoriesList>{ $subcategories[cat_num].category|escape }</font>

{/section}
{/if}
</td></tr>
</TABLE>
__________________
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 11-06-2002, 06:22 PM
 
ekool ekool is offline
 

Member
  
Join Date: Oct 2002
Posts: 12
 

Default

Modify this file in your skin1 dir:

customer/categories.tpl

This line (line 10 for me):

Code:
<font class=CategoriesList><a href="home.php?cat={ $categories[cat_num].categoryid }">

Would be changed to:

Code:
<font class=CategoriesList>&gt&gt <a href="home.php?cat={ $categories[cat_num].categoryid }">
Reply With Quote
  #4  
Old 11-06-2002, 06:45 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default Thanks!!

Thanks a bunch man! Awesome...Ok now Maybe I can get a few other simple questions out of the way here.....Ok, here's one, when i goto my page and click a link, it will pop up a blank webpage for like 1 second, and that webpage is the same color as the default x-cart, like a minella color....How can I prevent that from popping up or change that color? Also, I'm gonna need some help with creating extra pages of my own text and html, On my gray gay going across the top of the page, I have what will be links eventually...the colors are the same, so you can't see the text, Can you please explain in detail how I would go about creating my own page to add in the middle? Thanks? I am aware it is in the FAQ's, but I can't make sense of that, and I don't wanna screw up my cart. Thanks!
Reply With Quote
  #5  
Old 11-06-2002, 06:48 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default Update!

Ok, scratch that one question about the page background, i did that!!
Reply With Quote
  #6  
Old 11-06-2002, 07:10 PM
 
ArlyDude ArlyDude is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Pennsylvania
Posts: 39
 

Default Last question of the night!

Ok, here is my last question before I goto bed. If you goto my webpage... http://www.digitaladdition.net/xcart/customer/cart.php and look at the left menu item headings...ie: Categories...Help...You will see there is a little bit of black before each of my headings...how do I get rid of that? Thanks!
Reply With Quote
  #7  
Old 11-06-2002, 11:51 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Hi ArlyDude

The offending piece of code is in the single/home.tpl template:
<table border=0 width=100% cellpadding=0 cellspacing=0 align="center">
<tr>
<td class=TableLeft width=6 rowspan=2></td>
<td class=TableLeft width=150 valign=top>
{if $login eq "" }

If you remove this line the gap disappears.

Funkydunk
__________________
ex x-cart guru
Reply With Quote
  #8  
Old 11-06-2002, 11:56 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Sorry, forgot to say change this in customer/home.tpl aswell.
__________________
ex x-cart guru
Reply With Quote
  #9  
Old 11-07-2002, 07:55 AM
 
ekool ekool is offline
 

Member
  
Join Date: Oct 2002
Posts: 12
 

Default

It appears that Arlydude has figured out a part that I havent

I used your instructions FunkyDunk and removed that line.. there still appears to be some padding however, where do you remove the cell padding?
Reply With Quote
  #10  
Old 11-07-2002, 08:11 AM
  shan's Avatar 
shan shan is offline
 

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

Default

Heres my post from earlier with the cellpadding in red


Quote:
{* $Id: categories.tpl,v 1.14 2002/09/10 12:58:26 zorg Exp $ *}
<TABLE border=0 cellPadding=5 cellSpacing=0 width=100%>
<TR>
<TD class=MenuTitleLine height=26 width=26 valign=center>[img]{$ImagesDir}/dingbats_categorie.gif[/img]</TD>
<TD class=MenuTitleLine height=26 valign=center width="80%"><FONT class=TableLeftTitles>{$lng.lbl_categories}</FONT></TD>
</TR>
<tr><td colspan=2 class="TableLeftElements" nowrap>
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<font class=CategoriesList>put code here { $categories[cat_num].category|escape }</font>

{/section}
{else} {section name=cat_num loop=$subcategories}
<font class=CategoriesList>{ $subcategories[cat_num].category|escape }</font>

{/section}
{/if}
</td></tr>
</TABLE>
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 02:14 PM.

   

 
X-Cart forums © 2001-2020