Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Code to use for full size images


quickshot12

Recommended Posts

Hi,

 

I know this is part of a contribution but I think people with general coding knowledge may be able to help out.

 

I have Ultra Pics installed however I do not want to use popup images but would rather have the full size images show.

 

I've figured out that this code will display the main product image full sized on the product info page:

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_med']) ?>

 

Now the rest of the code to show additional images is like so;

<?php
if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {
?>
 <td align="center" class="smallText">
	   <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
<?php
} elseif
   (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] != '')) {
?>
 <td align="center" class="smallText">


	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" rel="lightbox[product]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>

  </td>
<?php
} elseif
  (($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {
?>
 <td align="center" class="smallText">
	   <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
<?php
}
?>

 

If someone could help me that would be great.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...