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

subcategory images - change size

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-02-2010, 04:08 AM
 
BBM_ BBM_ is online now
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default subcategory images - change size

Hi All,

I have images for my subcategories and have noticed that the images are the same size as the standard thumbnail size (mine are 150 x 150) however I wish to make the subcategory images smaller (not all the thumbnails)

I've been looking in the subcategory.tpl files but can not find any dimensions to alter for this.

Could you please offer any suggestions?

Also is there a way to show all the products in a subcategory when you click on it? Currently if I click on a main category it will show all the products in it, but clicking on a sub does not.

Many thanks
__________________
Multiple instances of X-cart
Reply With Quote
  #2  
Old 11-02-2010, 10:11 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: subcategory images - change size

Change the div height or width and it will proportionally scale assuming the other dimension is not specified.
__________________
- Shane Munroe
Reply With Quote
  #3  
Old 11-03-2010, 02:23 AM
 
BBM_ BBM_ is online now
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: subcategory images - change size

Thanks for the suggestion however I'm still a little lost.

In firebug it is telling me I can edit the following.

element.style: {
min-height: 220px;
min-width: 150px
Width: 150px;
}

yes I'm unable to find this anywhere.?
__________________
Multiple instances of X-cart
Reply With Quote
  #4  
Old 11-03-2010, 11:10 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: subcategory images - change size

If for categories you use a list:
skin1/customer/main/products_list.tpl
Code:
<div class="image"{if $config.Appearance.thumbnail_width gt 0 || $product.tmbn_x gt 0} style="width: {$max_images_width|default:$config.Appearance.thumbnail_width|default:$product.tmbn_x}px;"{/if}> <a href="{$url}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>

If you use columns:
skin1/customer/main/products_t.tpl
Code:
a href="{$product.alt_url|default:$product.page_url|amp}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>


You need to edit the sizes and such defined by smarty in the product_thumbnail include line. You also need to edit the div class image inline styling defined by smarty if you use the list.
__________________
- Shane Munroe
Reply With Quote
  #5  
Old 11-03-2010, 05:59 PM
 
BBM_ BBM_ is online now
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: subcategory images - change size

Hi Shamun,

Many thanks for the response. I have edited the sub category images to make them smaller, however the file is located in the;

skin1\customer\main\subcategories_t.tpl file.

Thanks for your assistance, now I'm just playing to get them no not left align, but center.
__________________
Multiple instances of X-cart
Reply With Quote

The following 2 users thank BBM_ for this useful post:
aitek (07-07-2011), mekon (03-06-2011)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:46 AM.

   

 
X-Cart forums © 2001-2020