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

Product Image Style

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2006, 07:25 AM
 
chiaze chiaze is offline
 

Member
  
Join Date: Sep 2006
Posts: 13
 

Default Product Image Style

Maybe there's a simple solution to this that I'm not realizing...

I would like to have a thin border around my product images, both the thumbnails and the detailed images.

Right now the thumbnails have a thin border in red but also a thicker border inside that in pink, and then the picture in the center. I set the thumbnail pic to what I thought was the maximum size, 150px by 150px, thinking that would fill up the space and cover the pink border, but that hasn't happened.

The detailed images just show as is. I need to add a border around it but am wondering if there's a way to do it in the template, rather than having to create that border around every image in Photoshop.

Thanks for any tips!
__________________
v 4.0.19
Reply With Quote
  #2  
Old 10-19-2006, 04:11 PM
 
balinor balinor is offline
 

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

Default Re: Product Image Style

Just add a border to product_thumbnail.tpl and modules/Detailed_images/product_images.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-20-2006, 08:44 AM
 
chiaze chiaze is offline
 

Member
  
Join Date: Sep 2006
Posts: 13
 

Default Re: Product Image Style

What would be the code for adding a border please?

And, I'm not using the Detailed Images mod. Just the X Cart standard images within the Product Details page.

Also, I can't seem to identify which part of product_thumbnail.tpl refer to border thickness or color. Recap: my thumbnails now have a picture, a thick pink border, and a thin red border. I'd like it to be just a picture with a thin red border.

I'm using the Fashion Mosaic template, not sure if that affects things, but this is my product.thumbnail.tpl:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}
{if $usertype eq "C"}<DIV class="ProductTopBorder">{/if}<IMG id="{$id}" src="{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}"{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}
__________________
v 4.0.19
Reply With Quote
  #4  
Old 10-20-2006, 08:48 AM
 
balinor balinor is offline
 

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

Default Re: Product Image Style

Then both will be handled by product_thumbnail.tpl. See the class that is called at the end of the template? That controls the border - class="ProductBorder"

Look at skin1.css and adjust it accordingly. The code for borders in css is:

border: 1px solid #000000;

Change the border size, style and color to what you would like.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-26-2006, 12:36 PM
 
chiaze chiaze is offline
 

Member
  
Join Date: Sep 2006
Posts: 13
 

Default Re: Product Image Style

Thank you!

To get the effect I wanted - a thin, colored border around the product thumbnail - I had to not only change the Product Border to 0px, but also change the ProductTitleBorder to FFFFFF.
__________________
v 4.0.19
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:55 AM.

   

 
X-Cart forums © 2001-2020