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.

Loopie 02-01-2007 11:48 AM

Re: Fashion Mosaic template Image Background
 
I used the code for gettind rid of the thumbnail bg in product_thumbnail.tpl
for version 4.0 and now my images don't show up at all, in place of the image I get code showing up..

Here is the code I am using :

{* $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 $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" {if $usertype ne "C"}border="0"{else}class="ProductBorder"{/if}>{if $usertype eq "C"}</DIV>{/if}
{/if}

Sherri 03-10-2007 05:46 AM

Re: Fashion Mosaic template Image Background
 
Hi,
I'm also using the Fashion Mosaic background and I cannot also cannot find where to get rid of this border on the thumbnail images.
I have looked in the product.tpl, product_t.tpl, thumbnail.tpl and even the skin1.css and I cannot find where to either change the colour or reduce the size, as any references already say border width=0, or border=0.

The one reference in the skin1.css to productborder shows a colour which I'm not even using.

Can anyone help please?


All times are GMT -8. The time now is 01:04 AM.

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