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

Fashion Mosaic template Image Background

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-12-2006, 06:25 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default 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
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #2  
Old 05-13-2006, 03:24 AM
 
balinor balinor is offline
 

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

Default

I don't have that template, but I'd check either product_thumbnail.tpl or product.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-13-2006, 03:51 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

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)
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #4  
Old 05-17-2006, 04:34 PM
 
jhubner jhubner is offline
 

Newbie
  
Join Date: May 2006
Location: Walton, NY
Posts: 7
 

Default bordercolor

could it be the bordercolor?
__________________
4.1 (unix)
Reply With Quote
  #5  
Old 05-17-2006, 06:56 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

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.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #6  
Old 06-01-2006, 02:24 AM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default

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.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
Reply With Quote
  #7  
Old 06-01-2006, 03:41 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

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.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #8  
Old 06-01-2006, 04:55 AM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default

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.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
Reply With Quote
  #9  
Old 06-01-2006, 06:54 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

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.
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #10  
Old 06-03-2006, 11:58 PM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default

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.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
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 03:52 PM.

   

 
X-Cart forums © 2001-2020