Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

big image contribution Alternative (2/2)


Recommended Posts

I'm trying to add the functionality to display a larger image when one clicks on the thumbnail for a larger image. I'm trying to use Alternative (2/2) from the contributions page.


The last step says:


Make the following change in catalog/product_info.php:


$product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_big, pd.products_url, p.products_price, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'");


<a href="java script:popupImageWindow('<? echo FILENAME_POPUP_IMAGE; ?>?image=<? echo $product_info_values['products_image_big']; ?>&alt=<? echo addslashes($product_info_values['products_name']); ?>')"><? echo tep_image($product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"'); ?></a><p><? echo stripslashes($product_info_values['products_description']); ?></p>



Where do I make this change in the file? Or, where do I add this to the file??




Link to comment
Share on other sites


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

  • Create New...