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)
-   -   How to add >> before each category listing? (https://forum.x-cart.com/showthread.php?t=559)

ArlyDude 11-06-2002 06:12 PM

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

shan 11-06-2002 06:21 PM

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>

ekool 11-06-2002 06:22 PM

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 }">

ArlyDude 11-06-2002 06:45 PM

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!

ArlyDude 11-06-2002 06:48 PM

Update!
 
Ok, scratch that one question about the page background, i did that!!

ArlyDude 11-06-2002 07:10 PM

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!

funkydunk 11-06-2002 11:51 PM

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

funkydunk 11-06-2002 11:56 PM

Sorry, forgot to say change this in customer/home.tpl aswell.

ekool 11-07-2002 07:55 AM

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?

shan 11-07-2002 08:11 AM

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>


All times are GMT -8. The time now is 06:57 AM.

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