Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Thumbnail to Full Image?


Recommended Posts

I need to alter the Product Info page, but I just can't seem to get the image to appear.



Basically, instead of having a thumbnail image and a link to a larger image, I want to have the larger image directly on the product info page.


What I have tried so far, is to take the code from popup_image.php and incorporate it into product_info.php....but the image will not appear.


Here is what I have done:


$products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");

$products = tep_db_fetch_array($products_query);



<?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?>





This is now in the exact position where I want the image to appear.


Can someone please help? It's driving me mad.

Link to comment
Share on other sites


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

  • Create New...