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
|