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)
-   -   Image Resizing (https://forum.x-cart.com/showthread.php?t=10280)

elabdesigns 11-09-2004 12:25 PM

Image Resizing
 
I am building a site for a client using x-cart 4.0.6 gold. Once I customize the site to their liking, they will mantain the site. Not that uncommon right? :D

Well I have ran into a bit of a problem. When you add a product and select an image for the product, my client will not know how to resize their image to fit my design scale. So if my client imports a 680x420 image and I need the image to be no bigger than 150 wide, how can I make the cart resize the image for them. Kinda like the thumbnail view on the category listing, but not destort it? Does anyone have a why to rescale the image once they click on a product (/product.php?productid=2&cat=13&page=1)

Also, does anyone know how to make a three column product category listing rather than the default one product under the other listing? Nevermind, sorry found that. What file do I edit to change the appearance of the multi-column lists? products.tpl?

Thanks :D

shan 11-09-2004 02:21 PM

products_t.tpl

emil 11-09-2004 02:35 PM

hi,

for the image sizing,

try to adding the code with (width="150") in the image tags where the image appears and remove the smarty tags that input the image widths.

eg, in the file product_thumnail.tpl

Quote:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{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}[/img]{/if}


try to change the code to:
Quote:

{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{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}[/img]{/if}


you also may need to create your own image tpl file since changing the above template also affects your products list

shan 11-09-2004 03:28 PM

having them upload massive files wioll screw up the performance of the store.

get some freeware software that resizes images and teach them how to do it properly.


All times are GMT -8. The time now is 05:40 AM.

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