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)
-   -   Shrink images on view cart page (https://forum.x-cart.com/showthread.php?t=56007)

a1deano 10-13-2010 07:28 AM

Shrink images on view cart page
 
Hi could someone help me with shrinking the images on the view cart page only, without it affecting images size else were

Many thanks for any help

cflsystems 10-13-2010 10:00 AM

Re: Shrink images on view cart page
 
Edit the template and change image_x, image_y where it calls the image template

balinor 10-13-2010 10:12 AM

Re: Shrink images on view cart page
 
Another one of those things that should be a setting in the admin.

a1deano 10-13-2010 10:50 AM

Re: Shrink images on view cart page
 
i agree it should be a standard setting in admin, make life just a little easier.

I altered /common_files/product_thumbnail.tpl
this code -

{if $image_x ne 0} width="{$image_x}"{/if}
{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" />

to this -

{if $image_x ne 0} width="100px"{/if}
{if $image_y ne 0} height="100px"{/if} alt="{$product|escape}" />

But it also changed the main image size as well

balinor 10-13-2010 12:01 PM

Re: Shrink images on view cart page
 
He didn't mean that template - he meant cart.tpl. You can't change product_thumbnail.tpl as that is EVERY image.

cflsystems 10-13-2010 05:01 PM

Re: Shrink images on view cart page
 
Yes I meant the template that calls product_thumbnail.tpl (thanks balinor). It passes widht and height of the image to product_thumbnail.tpl

a1deano 10-19-2010 02:29 AM

Re: Shrink images on view cart page
 
Thanks guys done the trick


All times are GMT -8. The time now is 12:06 AM.

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