| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Thumbnail values and resizing | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() When I create a new product X-Cart automatically inputs the x and y image values in the products table. Consequently, when I physically resize and reupload the image, my product.tpl is giving the wrong height and width values. I normally change this using PHPMyAdmin but the problem is I've just resized all my thumbnails and am wondering the easiest way to update the database?
I also notice that the code for displaying the thumbnails in products.tpl is different from the product.tpl code and I'm wondering which one I should be using. Products.tpl doesn't take into account the x and y values in the database so displays the image correctly. product: Code:
products: Code:
This is a 3.5.4 store that X-Cart upgraded to 4.0.12 so I'm not sure what the default should be. Thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#2
|
|||||||
|
|||||||
![]() Products.tpl uses the setting in General settings/Appearance options to resize the image. Product.tpl defaults to the image size. Are your images in the DB or filesystem? You could just remove this from the product.tpl template to get them to resize automatically:
image_x=$product.image_x image_y=$product.image_y
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks Balinor, they're in the filesystem. I've also got the appearance options to default to actual image size (00) as they don't turn out to well when resized.
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
i was having exact same issue. this worked perfectly. thanks! now i notice its doing it on the admin side when editing a product, the thumbnail is still trying to show at the old size (300 px wide when the image is actuall only 200 now). any idea what (and where) to modify the code "image_x=$product.image_x image_y=$product.image_y" on the admin side? can't seem to find it.
__________________
4.2.2 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|