Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Large Image Sizes and other configuration values


Guest

Recommended Posts

After giving up on trying to lightbox the large images and a request to enlarge the large image size and place the large images directly on the product info page*, I looked through most of the includes and templates as well as searched the configuration table in the database for anything that defined image sizes. I could not find anything related to the size of the large product images. I found the heading images dimensions in the configuration table, but nothing else that determines image size.

 

So, where does one change the image sizes?

 

 

 

 

 

 

*Most of the products in this store can be described by one large image and the product name alone.

Edited by anametamystik
Link to comment
Share on other sites

...hi, in the sourcecode look for:

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT

. These sizes you can change in the admin ->configuration -> images.

 

If you want to output the large image in the product_info, you have to change:

 

document.write('<?php //echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

 

into

 

document.write('<?php //echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_lrg'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

 

or without java script:

 

<?php echo  tep_options_images(DIR_WS_IMAGES . $product_info['products_image_lrg'], addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"'); ?>

 

...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...