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
  #11  
Old 10-20-2007, 01:57 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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.
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #12  
Old 10-20-2007, 02:01 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?

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

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

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

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #15  
Old 10-20-2007, 02:45 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?

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

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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>
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #17  
Old 10-20-2007, 03:12 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?

Try customer/categories.tpl, I think the include for fancy categories is in there by default.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #18  
Old 10-20-2007, 03:17 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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}
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #19  
Old 10-21-2007, 06:06 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?

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #20  
Old 10-21-2007, 09:43 AM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default 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
__________________
scott v
x cart version 4.1.8 (Unix)
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 09:11 AM.

   

 
X-Cart forums © 2001-2020