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)
-   -   Fixing product image sizes (https://forum.x-cart.com/showthread.php?t=62174)

candc 12-30-2011 03:01 AM

Fixing product image sizes
 
Hi, can anyone point me in the direction of how product image sizes can be forced to a certain size.

Thanks :D

Cpt.Crashtastic 12-30-2011 04:05 AM

Re: Fixing product image sizes
 
{math equation="((x - y) / 2)" x=$config.Appearance.simple_thumbnail_height y=$subcategory.image_y}

I used this to set a top margin so random sized thumbs were vertically centred. Couldn't do it with CSS. Maybe if you called your own version of product_thumbnail.tpl you could size your images from there.

Hope this helps a bit

bf2017 01-15-2012 01:42 PM

Re: Fixing product image sizes
 
Quote:

Originally Posted by Cpt.Crashtastic
{math equation="((x - y) / 2)" x=$config.Appearance.simple_thumbnail_height y=$subcategory.image_y}

I used this to set a top margin so random sized thumbs were vertically centred. Couldn't do it with CSS. Maybe if you called your own version of product_thumbnail.tpl you could size your images from there.

Hope this helps a bit


Where did you insert this code? And what file?


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

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