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

Larger Featured images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2006, 06:57 PM
 
yetiboy yetiboy is offline
 

Member
  
Join Date: Jun 2005
Posts: 19
 

Default Larger Featured images

I'd like to use larger images in the featured section on my front page. I have it with three wide, and I've figured out that if I add "+100" to the thumbnail_width that the size of the thumbnails is increased (by 100 pixels, obviously). Unfortunately, when I do this the pictures get pixelly.

I'd like to use the larger images that I've uploaded as part of the Detailed Images add on as opposed to having to create and upload an entire new set of more detailed thumbnails (which are the images currently used) that are of a higher quality so they don't get (as) pixelly when enlarged. Any ideas on how to do this? I've included my products_t.tpl code below.

Thanks!

yeti

{* $Id: products_t.tpl,v 1.10.2.8 2005/06/06 05:18:43 mclap Exp $ *}
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0"><TR><TD class="TableThumbnailBorder">

<TABLE border="0" width="100%" cellpadding="5" cellspacing="1">

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}
{assign var="discount" value=0}

{if %product.index% is div by $config.Appearance.products_per_row}
<TR>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<TD align="center" valign="top" width="{$width}%" >

<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}" class="ProductTitle">{$products[product].product}</A><BR>
{* {$lng.lbl_sku}: {$products[product].productcode}<BR> *}
{if $active_modules.Special_Offers ne "" and $products[product].have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}
{else}
<TABLE cellpadding="3" cellspacing="0" border="0"><TR><TD height="100">
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}">{i nclude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width+100 product=$products[product].product tmbn_url=$products[product].tmbn_url}</A><BR>
</TD></TR>
</TABLE>
{/if}
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}">{$ lng.lbl_see_details}</A><BR><BR>
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}

{*
{if $products[product].taxed_price ne 0}
{if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount}
{if $discount gt 0}
<FONT class="MarketPrice">{$lng.lbl_market_price}: <S>
{include file="currency.tpl" value=$products[product].list_price}
</S></FONT><BR><br>
{/if}
{/if}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT><BR><FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT>{if $discount gt 0}, {$lng.lbl_save_price} {$discount}%{/if}
{if $products[product].taxes}<BR>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}<br>{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT><br>
{/if}
*}

{/if}
{if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0}
<BR>
{include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid}
{/if}
{*** Uncomment it if you need 'Buy Now' button ***
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
*** Uncomment it if you need 'Buy Now' button ***}
<br>
<BR>
<br>
</TD>

{capture name=prod_index}
{math equation="index+x+1" index=%product.index% x=$config.Appearance.products_per_row}
{/capture}
{if $smarty.capture.prod_index is div by $config.Appearance.products_per_row }
</TR>
{/if}

{/section}

{if $cell_counter lt $config.Appearance.products_per_row}
{section name=rest_cells loop=$config.Appearance.products_per_row start=$cell_counter}
<TD >&nbsp;</TD>
{/section}
</TR>
{/if}

</TABLE>
</TD></TR></TABLE>{if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'}
{include file="modules/Feature_Comparison/compare_selected_button.tpl"}<BR>
{/if}
__________________
www.fineartcolombia.com
www.pillowfish.com
x-cart v. 4.0.14
Reply With Quote
  #2  
Old 10-25-2006, 04:20 AM
 
balinor balinor is offline
 

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

Default Re: Larger Featured images

Well you can't increase an image without having it get pixelated, so you need to upload a larger image to start.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-25-2006, 12:27 PM
 
yetiboy yetiboy is offline
 

Member
  
Join Date: Jun 2005
Posts: 19
 

Default Re: Larger Featured images

As I said, I already have larger images uploaded as part of the Detailed Images add on - I just don't know how to use them for this.

yeti
__________________
www.fineartcolombia.com
www.pillowfish.com
x-cart v. 4.0.14
Reply With Quote
  #4  
Old 10-25-2006, 12:41 PM
 
balinor balinor is offline
 

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

Default Re: Larger Featured images

You could adapt this mod:

http://forum.x-cart.com/showthread.php?t=15579&highlight=first+detailed+im age
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-29-2006, 06:40 AM
 
yetiboy yetiboy is offline
 

Member
  
Join Date: Jun 2005
Posts: 19
 

Default Re: Larger Featured images

Odd, I didn't get a notice that you posted this reply. That looks like it just might work - thanks balinor!

yeti
__________________
www.fineartcolombia.com
www.pillowfish.com
x-cart v. 4.0.14
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 06:50 PM.

   

 
X-Cart forums © 2001-2020