Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Description images


Guest

Recommended Posts

Hi

 

I have just written a brilliant script to put multiple pop up enlargeable images in the product description area. You can see it working at http://ambermines.co.uk//product_info.php?...&products_id=35

 

However, I now want to get rid of the sad single enlargeable image provided by the default installation. Could anyone tell me where I have to make my edit please?

 

I did try putting a white 100X80 jpg as the default image, which works fine. However, when you sort several products together, they all have little white squares next to them. No good that, then.

 

Basicically, I just want to get rid of the image from the product description box - nowhere else.

 

If you like my multiple images hack (which does not involve ANY file editing), you can download it from the Contributions area at, http://www.oscommerce.com/community/contributions,1817

 

Please help brothers and sisters.

 

Cheers

 

Tim

Link to comment
Share on other sites

The code is line 109 catalog/product_info.php

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 . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . 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 . '</a>'; ?>
</noscript>

 

This part is also used in product_reviews.php and product_reviews_info.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Thanks 241 - Brilliant!

 

I deleted all the code that you highlighted and that worked a treat. I still get thumbnails up when the product is listed, but now the product description widow contains only that which is entered into the prod description box when you set up the product in admin.

 

I will update my hack so that others will be able to do this too.

 

Any thoughts on the hack? I have read of lots of people trying to get multiple product images and I'm quite proud to have found a risk free route (you will have guessed that I have little/no programming knowledge).

 

Thanks also radbe - I got your suggestion too late to try out.

 

Much obliged colleagues.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...