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)
-   -   Removing the images in the category boxes? (https://forum.x-cart.com/showthread.php?t=34219)

GDScards.com 09-27-2007 02:17 PM

Removing the images in the category boxes?
 
I do i remove all the little images that are on the left of all the menu boxes?

balinor 09-27-2007 07:36 PM

Re: Removing the images in the category boxes?
 
edit menu.tpl and remove the dingbats.

Jonjolt1 09-29-2007 04:38 AM

Re: Removing the images in the category boxes?
 
Quote:

Originally Posted by balinor
edit menu.tpl and remove the dingbats.


I would put a {* comment out *} around it just in case you want to revert.

balinor 09-29-2007 06:17 PM

Re: Removing the images in the category boxes?
 
Dingbats are something that should NEVER be part of a professional storefront, so I'd feel pretty safe about removing them :)

GDScards.com 10-01-2007 01:27 PM

Re: Removing the images in the category boxes?
 
Could you tell me exactly where to comment out the dingbats? I but them in the wrong place and ended up not even being able to log into my admin page to fix the problem lol..

Can anyone recommend any reading material/book that will tell me how to create my own menu boxes and what not?

balinor 10-01-2007 01:43 PM

Re: Removing the images in the category boxes?
 
In menu.tpl, simply replace this:

<TD class="VertMenuTitle">&nbsp;&nbsp;{$link_begin}<IM G src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" width="21" height="20" border="0" align="absmiddle">{$link_end}&nbsp;&nbsp;
{if $link_href}
<A href="{$link_href}"><FONT class="VertMenuTitle">{$menu_title}</FONT></A>
{else}
<FONT class="VertMenuBoxNewsTitle">{$menu_title}</FONT>
{/if}
</TD>

with this:

<TD class="VertMenuTitle">{$menu_title}</TD>

As for how to edit templates, custom boxes, etc. it is all here in the forums, you just need to search. I'd start with this thread:

http://forum.x-cart.com/showthread.php?t=21529

There are a few posts in the custom mods forum on how to create new menu boxes. Remember, always backup the file you are working on so you can easily restore it if you botch something up!

fotodog13 10-20-2007 11:13 AM

Re: Removing the images in the category boxes?
 
Hi All

I am trying remove these dingbats as well. I am using xcart version 4.1.8 and the solution provided below telling me to remove the dingbats from the menu.tpl does not work correctly.
When I do this it changes the page structure drastically.
Pusing the center customer product container below the vert menu boxes and to the far left.

I have been able to remove the categories dingbat, and the help dingbat successfully by removing the dingbats reference from the help.tpl, and the customer/categories.tpl

I was hoping that I could do the same thing be removing the dingbat from the modules/Gift_Certificate/gc_menu.tpl but it does not have any reference to the dingbats.

Can someone tell me how to remove this last dingbat, and if this is now the correct way to do so in version 4.1.8 rather than using the menu.tpl which would appear to be a much simpler solution.

MAny thanks in advance to all that reply

Scott V
Linux
xcart=4.1.8

balinor 10-20-2007 11:24 AM

Re: Removing the images in the category boxes?
 
It works fine Scott, you must have missed something somewhere. Are you using a custom template? Perhaps you can post your menu.tpl?

fotodog13 10-20-2007 12:55 PM

Re: Removing the images in the category boxes?
 
Hi Balinor,

I am enclosing the code from the manu_tpl below.

<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>


As you can see this is slightly different code than what you posted but it is the original dafault tpl that I recieved with this version of xcart.

I have tried removing from

<td class="VertMenuTitle">
through
{/if}</td>

as well as several other things all of which produce various errors.

I admit to being a newbie at a lot of the .tpl but have been having pretty good luck with it for the most part.

FYI- I have tried making the changes through my ftp but have also tried the internal editor with no luck.

This is a standard template. but does have an xcart modules Fancy_Categories skin for the nav buttons that appear in the vert menu box.
I have looked at the tpl's included with this and there is no reference to the dingbats here, and there is not a differnet menu.tpl

The only difference appears to be the category.tpl, the new one supplied being called
fancy_categories.tpl

thanks for hte help

Scott V

balinor 10-20-2007 12:58 PM

Re: Removing the images in the category boxes?
 
Just use this:

<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">{$menu_title}</td></tr>

<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>

It is awful code, but that is the easiest way to simply get rid of the dingbats. A much cleaner version would simply be this:

<div class="VertMenuTitle">{$menu_title}</div>
<div class="VertMenuBox">{$menu_content}</div>

fotodog13 10-20-2007 01:57 PM

Re: Removing the images in the category boxes?
 
Hi Balinor,

Thanks for your help, unfortunately that code creates a new set problems.

Using what you supplied duplicated everything in the vert menu box so I did this


<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">{$menu_title}</td></tr>
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>


Which gets me closer but it cutts off the title in the category section of the vert menu. when I check the page.


Ex. it should bre saying

Prints-water and boats

but instead says

prints-water and....

its truncated the title.

also tried your second code sample which I agree is cleaner but gave me the same results, ( duplicating listings) but liked it as it is much cleaner code.

Thoughts about why its truncating the title?




Thanks

Scott

PS- I know why I am working, but why are you, its too nice of a day here to be banging away on this stuff.

balinor 10-20-2007 02:01 PM

Re: Removing the images in the category boxes?
 
Your code is not correct...if you look at the tables, you can't have a table tag after a tr tag. My code is correct, did you cut and paste it directly into menu.tpl? Did you clear the template cache after you made the change?

fotodog13 10-20-2007 02:07 PM

Re: Removing the images in the category boxes?
 
See what you mean ,
will try it again,

yes cleared the cache and pasted it directly into the menu.tpl

fotodog13 10-20-2007 02:21 PM

Re: Removing the images in the category boxes?
 
I stand corrected your code works fine, I must have done something incorrect the first time I used it, however the truncating I mentioned above is still happening.

To be sure I cleared the cache again and rebooted, checked in IE, and firefox and the topic under categories appears truncated.
It only happens in one line- on the top but it is also contains the most characters in the title.

Any thoughts about this greatly appreciated,
thanks very,very much for the help

Scott

balinor 10-20-2007 02:45 PM

Re: Removing the images in the category boxes?
 
That has to be happening in the category or whatever template it is happening in. Post that template where it is happening....help.tpl or special.tpl perhaps?

fotodog13 10-20-2007 03:10 PM

Re: Removing the images in the category boxes?
 
I believe this should be the template.

{* $Id: fancy_categories.tpl,v 1.2 2005/11/17 06:55:45 max Exp $ *}
{include file="main/include_js.tpl" src="`$fc_skin_path`/func.js"}
<script type="text/javascript">
<!--
var bLeftOn = new Image();
var bLeftOff = new Image();
var bCenterOn = new Image();
var bCenterOff = new Image();
var bRightOn = new Image();
var bRightOff = new Image();

bLeftOn.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_l_on-b.gif";
bLeftOff.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_l_off-b.gif";
bCenterOn.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_m_on-b.gif";
bCenterOff.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_m_off-b.gif";
bRightOn.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_r_on-b.gif";
bRightOff.src = "{$fc_skin_web_path}/{$config.Fancy_Categories.candy_img_skin}/button_r_off-b.gif";
-->
</script>
<div id="{$fancy_cat_prefix}rootmenu">
{include file="`$fc_skin_path`/fancy_subcategories.tpl" level=0}
</div>

balinor 10-20-2007 03:12 PM

Re: Removing the images in the category boxes?
 
Try customer/categories.tpl, I think the include for fancy categories is in there by default.

fotodog13 10-20-2007 03:17 PM

Re: Removing the images in the category boxes?
 
here

{* $Id: categories.tpl,v 1.1.2.25 2007/06/19 08:01:50 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
<table cellpadding="4" cellspacing="1">
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<tr>
<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="6" height="13" alt="" /></td>
<td><a href="home.php?cat={$c.categoryid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{else} {foreach from=$subcategories item=c key=catid}
<tr>
<td valign="top"><img src="{$ImagesDir}/category_bullet.gif" width="10" height="13" alt="" /></td>
<td><a href="home.php?cat={$catid}" class="VertMenuItems"><font class="CategoriesList">{$c.category}</font></a></td>
</tr>
{/foreach}
{/if}
</table>
{/if}
{/capture}
{ include file="menu.tpl" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}

balinor 10-21-2007 06:06 AM

Re: Removing the images in the category boxes?
 
Sorry Scott, no clue on this one...must have something to do with fancy categories, but as I don't use that module, I can't tell you exactly where the truncation is happening.

fotodog13 10-21-2007 09:43 AM

Re: Removing the images in the category boxes?
 
ok, thanks for all the other help.

Personally I ma not crazy about hte look of these and might just do something else cleaner, its a client thing.
will talk to you more later
best
Scott V

xcesiv 10-21-2007 06:39 PM

Re: Removing the images in the category boxes?
 
Im running the stock template with some small tweaks, but having some problems putting this in place.

I have tried a few different ways and all go to crap

Can someone please help

thanks

Code:

<table cellspacing="1" width="100%" class="VertMenuBorder">
<tr>
<td class="VertMenuTitle">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$link_begin}<img src="{$ImagesDir}/{if $dingbats ne ''}{$dingbats}{else}spacer.gif{/if}" class="VertMenuTitleIcon" alt="{$menu_title|escape}" />{$link_end}</td>
<td width="100%">{if $link_href}<a href="{$link_href}">{/if}<font class="VertMenuTitle">{$menu_title}</font>{if $link_href}</a>{/if}</td>
</tr></table>
</td>
</tr>
<tr>
<td class="VertMenuBox">
<table cellpadding="{$cellpadding|default:"5"}" cellspacing="0" width="100%">
<tr><td>{$menu_content}<br /></td></tr>
</table>
</td></tr>
</table>


balinor 10-21-2007 06:56 PM

Re: Removing the images in the category boxes?
 
Did you paste the code I suggested above?

xcesiv 10-21-2007 07:08 PM

Re: Removing the images in the category boxes?
 
Got it.

thanks.

Just curious. how do I centre them now

balinor 10-21-2007 07:13 PM

Re: Removing the images in the category boxes?
 
Center what?

xcesiv 10-21-2007 07:24 PM

Re: Removing the images in the category boxes?
 
I was thinking about centreing the headings, but probably shouldnt.

balinor 10-21-2007 07:45 PM

Re: Removing the images in the category boxes?
 
You control that via the VertMenuTitle class in skin1.css.


All times are GMT -8. The time now is 01:35 PM.

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