| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#1
|
|||||||
|
|||||||
![]() Like change thumbnail image size of x cart
example: like every image of product tumbnail have this size 100 x 150 where is the .php or .tpl i take modify ? Thanks |
|||||||
#2
|
|||||||||
|
|||||||||
![]() try this one
skin1/product_thumbnail.tpl
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() thank you,
Yes i test this modification But when i set (example) $image_x ne 100 and $image_y ne 150 the image distort the mystere ... if set 70 the image not distort note my image as good set up canvas 100*150 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() If your thumbnails are all the right size to start with (100x150) then you could change your skin1/product_thumbnail.tpl to this
Code:
In other word just remove the part that sets the size
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() I have pictures that are 300 x 225 (I know a little large).
I want the thumbnails to be about half size. The full image is too big and the small thumbs are too small to see the details of my products. I need an in between. i see that in / product_thumbnail.tpl there are some x and y variables but I am not sure how to change these. Since I've the same question and I don't see anyone replay, I thought I post this again. original post: http://forum.x-cart.com/viewtopic.php?t=2147&highlight=productthumbnail+tp l |
|||||||
#6
|
|||||||
|
|||||||
![]() Hi,
You may be better off just setting the image x to 100 and not setting the y. This will maitain the image aspect ratio, resizing in aspect based on the width. If you set both x and y, and the settings do not maintain the original image aspect ratio, the image will be distorted. Hope that helps, ATKOgirl
__________________
X-Cart Versions: 4.1.10 and 4.2.0 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Incidentally, I chatted with Dez and managed to solve this problem.
Go into the page customer/main/products.tpl and change the product_thumbnail include to something like this: Code:
where x is width y is length As ATKO girl mentioned settings the y value isn't recommended unless all thumnails are exactly the same dimension. In this case remove image_y=150 Hope this helps...
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|