X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Fashion Mosaic template Image Background (https://forum.x-cart.com/showthread.php?t=21753)

jeeya 05-12-2006 06:25 PM

Fashion Mosaic template Image Background
 
hello,
anyone know how can I remove product/thumbnail image background. like this product image/thumbnail has green background. I did it before but forgot how to do on 4.1.0

http://www.x-cart.com/images/skins/fashion/shot21.jpg

balinor 05-13-2006 03:24 AM

I don't have that template, but I'd check either product_thumbnail.tpl or product.tpl

jeeya 05-13-2006 03:51 AM

Thanks. been checking both but don't see anything in there regarding background -

here is code for product thumbnail -
Code:

{* $Id: product_thumbnail_cust.tpl,v 1.1 2006/01/19 13:35:09 max Exp $ *}
<table cellspacing="0" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tr>
        <td class="ProductBorder">
{include file="product_thumbnail.tpl" productid=$_imageid|default:$product.productid image_x=$config.Appearance.thumbnail_width product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Special_Offers ne "" and $product.have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl"}
{/if}
        </td>
</tr>
</table>



************ solved - just deteted Table (placed code out of table)

jhubner 05-17-2006 04:34 PM

bordercolor
 
could it be the bordercolor?

jeeya 05-17-2006 06:56 PM

Code:

{* $Id: product_thumbnail_cust.tpl,v 1.1 2006/01/19 13:35:09 max Exp $ *}
{include file="product_thumbnail.tpl" productid=$_imageid|default:$product.productid image_x=$config.Appearance.thumbnail_width product=$product.product tmbn_url=$product.tmbn_url}
{if $active_modules.Special_Offers ne "" and $product.have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl"}
{/if}


Use Above Code. It will also get your images aligned the way it suppose to in firefox browser.

Also if you want to remove background from productdetail page image too, just do same by editing product.tpl.

Bodger 06-01-2006 02:24 AM

Greetings, I too would like to control the image border in this template. I don't want to eliminate it, just control the size.

I tried the code you kindly supplied us with, but this just disabled the site.

I am using version 1.14 2004/06/24 whereas, your code appears to be written for an earlier version.

Could this be my difficulty ?

Mike.

jeeya 06-01-2006 03:41 AM

do you want to display just image border? or shrink background color border?

I am using 4.1.1 so code is for version of fashion mosaic that released for 4.1.1.

Edit :

Here is what I had used for 4.0.18 to remove image background.

Code:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if}



to set your border width, just change border="0" to number you like.

Bodger 06-01-2006 04:55 AM

Wonderful, and it works a treat. Thank you so much.

Can I also change the color of the border which at present defaults to Blue - what code should I add, please ?

Grateful thanks,

Mike.

jeeya 06-01-2006 06:54 AM

I don't really remember how I did it, but this was the code for 3.4.0 that I used.

http://forum.x-cart.com/viewtopic.php?t=6765&highlight=image+border+color+ colour

check it out.

Bodger 06-03-2006 11:58 PM

Quote:

Originally Posted by raxitpatel
I don't really remember how I did it, but this was the code for 3.4.0 that I used.

http://forum.x-cart.com/viewtopic.php?t=6765&highlight=image+border+color+ colour

check it out.


Thank You.

Mike.


All times are GMT -8. The time now is 11:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.