Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No image in Popup windows


capsulas

Recommended Posts

Hello from Mexico

I need your help, What is wrong? :( :? The image in PopUp Windows Products, is unable to show up.

 

Thanks for your help.

 

 

 

File: catalog/popup_image.php

<?php

 require('includes/application_top.php');

 $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_id = '" . $HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . $languages_id . "'");

 $products_values = tep_db_fetch_array($products_query);

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<title><?php echo $products_values['products_name']; ?></title>

<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

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

var i=0;

function resize() {

 if (navigator.appName == 'Netscape') i=40;

 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);

}

//--></script>

</head>

<body onload="resize();">

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

</body>

</html>

Link to comment
Share on other sites

I think you are calling the image incorrectly from what I can see.

 

Try this code:

<body onload="resize();">

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

</body>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...