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

How to change thumbnail size with CDSEO mod

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 12-01-2006, 02:25 PM
  ATise's Avatar 
ATise ATise is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 152
 

Default How to change thumbnail size with CDSEO mod

Hello all,

I have made some changes to the recommend list to where the items recommend will show the items picture but the thumbnails are all different sizes so it looks a mess. I have been looking on here to find out how to make my thumbnails the same height that would clean things up a lot. But all the information I have found it seems as if no one has the CDSEO mod installed so I need to know how to tell the recomend to make the thumbnails the same height.

Here is what is shown on my recommends tpl.

{* $Id: recommends.tpl,v 1.4.2.1 2005/10/31 14:10:44 max Exp $ *}
{if $recommends}
{capture name=recommends}
<table border=0>
<tr>
{assign var="xt" value="0"}
{section name=num loop=$recommends}
{if $xt eq 3}
</tr><tr>
{assign var="xt" value="0"}
{/if}
{math equation=x+1 x=$xt assign=xt}
<td valign=top>
<table border=0>
<tr>
<td align=center valign=top>
{* WebsiteCM - CDSEO - Start *}
{if $recommends[num].cdseo_url ne ""}<a href="{$cdseo_prod}/{$recommends[num].cdseo_url}" title="{$recommends[num].product|escape:"html"}">{else}<a href="product.php?productid={$recommends[num].productid}">
{/if}
{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.thumbnail_width product=$recommends[num].product tmbn_url=$recommends[num].tmbn_url}
</a>
</td>
</tr>
<tr>
<td align=center valign=top>
<LI>
{* WebsiteCM - CDSEO - Start *}
{if $recommends[num].cdseo_url ne ""}
<a href="{$cdseo_prod}/{$recommends[num].cdseo_url}" title="{$recommends[num].product|escape:"html"}">{else}
<a href="product.php?productid={$recommends[num].productid}">
{/if}
{* WebsiteCM - CDSEO - End *}
<FONT class="ItemsList">{$recommends[num].product}
</a><br>
<class="ProductPriceConverting">
{$lng.lbl_our_price}: {include file="currency.tpl" value=$recommends[num].taxed_price}
{if $usertype eq "C" and
$config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$recommends[num]}
{/if}
</TD>{*tl*}
</FONT></a></LI></td>
</tr>
</table>
</td>
{/section}
</tr>
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}
{/if}



where and how do I make the thumbnails the same height
__________________
xcart gold 4.0.18/Unix<BR>
always looking for good advice check out my store and tell me new ways to improve it. <BR>
Keep in mind it is an adult toy store www.appatice.com. Becasue of all the good advice my site is starting to take off and to say thanks use this code if you all ever shop at my store for 15% off * xfor1 *
Reply With Quote
  #2  
Old 12-01-2006, 07:17 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: How to change thumbnail size with CDSEO mod

Code would be the same with or without CDSEO, something along the lines of this which would make the height 100 pixels:

Code:
{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_y=100 product=$recommends[num].product tmbn_url=$recommends[num].tmbn_url}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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:20 AM.

   

 
X-Cart forums © 2001-2020