Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Limiting the image size in the shopping cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-30-2007, 09:04 PM
 
LisaB LisaB is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 74
 

Default Re: Limiting the image size in the shopping cart

I found it, and fixed it. Worked for both the cart and the wish list.
__________________
XCart Version 4.1.6
PHP 4.4.4
MySQL 4.1.21-standard
Reply With Quote
  #12  
Old 02-01-2007, 09:15 AM
 
floydiology floydiology is offline
 

Newbie
  
Join Date: Jan 2007
Posts: 2
 

Default Re: Limiting the image size in the shopping cart

Lisa, we had to fix the permissions on the file and that seemed to allow the change.
Reply With Quote
  #13  
Old 05-16-2007, 05:17 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Limiting the image size in the shopping cart

I can't find this file in my cart.tpl Is it different for the 4.1.7 version? I would really like to scale down the pictures in the shopping cart. Most of all I'd like to use the thumbnails of the products. Is that possible?

/Anna
__________________
X-cart Version 4.1.7
Reply With Quote
  #14  
Old 06-08-2007, 12:19 PM
  icnjan's Avatar 
icnjan icnjan is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Wine Country, California
Posts: 80
 

Default Re: Limiting the image size in the shopping cart

Anna, did you find a solution for the cart image size issue? I could not find it in my 4.1.6 cart.tpl file either and am wondering if it has to do with Fast Lane Checkout. Was interested enough to file a support ticket.

Essentially, since our product thumbnail and detail pictures vary in size and we do not want X-Cart to resize all images using the "thumbnail width in the product list" option, we are stuck seeing oddly sized product detail pictures in the cart.

Product support has confirmed that it is an issue - if we want only product thumbnails to appear in the cart - they can fix it for us in exchange for support points.

Anyone able to fix this on their own??

Thanks!!
__________________
X-Cart Version 4.1.12
Dedicated server
Reply With Quote
  #15  
Old 06-08-2007, 04:45 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Limiting the image size in the shopping cart

Icnjan,

No I never found a solutions to this.
So I think I will sacrifice support points then, because some pictures are a little too large. I would find this a little.... excessive as a customer

/Anna
__________________
X-cart Version 4.1.7
Reply With Quote
  #16  
Old 06-19-2007, 11:28 AM
  icnjan's Avatar 
icnjan icnjan is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Wine Country, California
Posts: 80
 

Default Re: Limiting the image size in the shopping cart

Anna,

With the support dept approval here are the fixes that they suggested:

Images stored outside the file system (this worked for me):

In order the thumbnail image to be always displayed instead of the product images, you should open the '<root directory of X-Cart>/include/func.cart.php' file again and delete the following pieces of code:

$tmp = func_query_first("SELECT id, image_path, image_x, image_y FROM $sql_tbl[images_P] WHERE id = '$productid' LIMIT 1");

IF($sql_tbl[images_P].id IS NULL, '', 'P') as is_pimage,

Please note, in this case the products must always have the thumbnail image. I recommend making a backup copy for the file before the modification.


Images stored within the file system:

In order all the images on the cart page to be thumbnails you should do the following:
1.Open the '<root directory of X-Cart>/include/func.cart.php'
2.Find the

# Get thumbnail's URL (uses only if images stored in FS)

area.
3. Change the string

if (!empty($products_array['pimage_path']) && !empty($products_array['is_pimage'])) {

to

if (false && !empty($products_array['pimage_path']) && !empty($products_array['is_pimage'])) {

string.

Hope that helps!!

Jan
__________________
X-Cart Version 4.1.12
Dedicated server
Reply With Quote
  #17  
Old 06-20-2007, 05:45 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Limiting the image size in the shopping cart

Jan you are an angel!!
It worked perfectly! Thank you SOOO much!!!

<---- Jan

Thanks!!!

Kind regards,
Anna
__________________
X-cart Version 4.1.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:16 AM.

   

 
X-Cart forums © 2001-2020