Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display big image on product_info.php with mopics installed?


FridayNight

Recommended Posts

Does anybody know how to display the big image on top right of the product_info.php with the dynamic mopic 3.0 installed?

 

The sourcecode of the small image, including the popup link for the big one, is this:

 

			<tr>			  
		  <td align="center" class="smallText">
<?php
		$image_lg = mopics_get_imagebase($product_info['products_image'], DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR);
		if ($lg_image_ext = mopics_file_exists(DIR_FS_CATALOG . $image_lg, DYNAMIC_MOPICS_BIG_IMAGE_TYPES)) {
			$image_size = @getimagesize(DIR_FS_CATALOG . $image_lg . '.' . $lg_image_ext);
			?>		  
<script language="javascript" type="text/javascript"><!--
		document.write('<a href="java script:popupImage(\'<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&type=' . $lg_image_ext); ?>\',\'<?php echo ((int)$image_size[1] + 30); ?>\',\'<?php echo ((int)$image_size[0] + 5); ?>\');"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"'); ?><br><span class="smallText"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a>');
	  //--></script>		  
			<noscript>			
			  <a href="<?php echo tep_href_link($image_lg . '.' . $lg_image_ext); ?>" target="_blank">
				<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"'); ?>
				<br>
				<span class="smallText">
				  <?php echo TEXT_CLICK_TO_ENLARGE; ?>
				</span></a>		  
			  </noscript>
<?php
		} else {
	  echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="imgframe"');
		}
			  ?>			  </td>			
		</tr>

 

 

Please, any help appreciated!

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...