| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Larger Featured images | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 > </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} |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|