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

Removing the images in the category boxes?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-27-2007, 02:17 PM
 
GDScards.com GDScards.com is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 195
 

Default 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?
__________________
X-cart Gold 4.0.17
Reply With Quote
  #2  
Old 09-27-2007, 07:36 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Removing the images in the category boxes?

edit menu.tpl and remove the dingbats.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-29-2007, 04:38 AM
 
Jonjolt1 Jonjolt1 is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 49
 

Default 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.
__________________
4.1.9
Reply With Quote
  #4  
Old 09-29-2007, 06:17 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-01-2007, 01:27 PM
 
GDScards.com GDScards.com is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 195
 

Default 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?
__________________
X-cart Gold 4.0.17
Reply With Quote
  #6  
Old 10-01-2007, 01:43 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 10-20-2007, 11:13 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #8  
Old 10-20-2007, 11:24 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 10-20-2007, 12:55 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #10  
Old 10-20-2007, 12:58 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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