Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

put an image instead of "Click to Enlarge"


Guest

Recommended Posts

Edit the product_info.php file and find the Click to enlarge located in two places and replace with:

 

tep_image(DIR_WS_IMAGES . 'filename_here', 'alt_tag_here')

Link to comment
Share on other sites

for some reason...the image doesnt show up....:(

 

and there's no x box that means it doesnt exist....

 

it just doesnt show up and there's no errors on the page or anything....

 

any ideas why?

Link to comment
Share on other sites

This includes both the text and the image for the two sections. Edit it to match your settings that you want:

          <tr>

           <td align="center" class="smallText">

<script language="javascript"><!--

document.write('<?php echo '<a href="javascript: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 . tep_image(DIR_WS_IMAGES . 'click_to_enlarge.gif') . '</a>'; ?>');

//--></script>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . tep_image(DIR_WS_IMAGES . 'click_to_enlarge.gif') . '</a>'; ?>

</noscript>

           </td>

         </tr>

Link to comment
Share on other sites

You will need to load an image in your /images folder ... I called mine click_to_enlarge.gif

 

You will then need to edit it if you want the text gone. The:

 

TEXT_CLICK_TO_ENLARGE .

 

adds the text.

 

I left both the text and the image in there so you could choose.

 

Example:

http://www.8thoctave.com/osc_freecall/prod...p?products_id=8

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...