Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stormlifter

Archived
  • Posts

    49
  • Joined

  • Last visited

Profile Information

  • Real Name
    Chris

Stormlifter's Achievements

  1. Still not working.... I'm getting a blank popup image] but my additional images are still workin' just fine.
  2. Gee thanks, i'll take a look at it... THank you a lot!
  3. Guys I really really need help with this, if someone could come in here and give me a hand... if you need anymore info just lemme know!
  4. I'm using additional images mod for additional images, but those work just fine. The problem is with the main product image, it doesn't expand from the thumbnail to the full size image. This is my popup_image.php code... Note: if this makes a difference I'm using ImageMagick to resize images... Thanks for any help... if you need me to paste more info, let me know. --------------------------------------------------- <?php /* $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Code Modification: March 2004 Andrey A. Skleznev "IT-Commerce" ltd. Mailto: [email protected] Released under the GNU General Public License */ require('includes/application_top.php'); $navigation->remove_current_page(); //wdo - Una nueva imagen popup, se agrego 'p.products_image_pop' a la sig. consulta $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_pop 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); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo $products['products_name']; ?></title> <base href="<?php echo (($request_type == 'SSL') ? 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); self.focus(); } //--></script> </head> <body onload="resize();"> <?php if ($products['products_image_pop']== NULL ) {echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); } else {echo tep_image(DIR_WS_IMAGES . DIR_FS_CATALOG_IMAGES_BIG . $products['products_image_pop'], $products['products_name'], POPUP_IMAGE_WIDTH, POPUP_IMAGE_HEIGHT);}; ?> </body> </html> <?php require('includes/application_bottom.php'); ?>
  5. I'm having an issue with the main popup image. The additional images work just fine. The problem is that when I try to click on the product image I just get a blank window with nothing in it. It might help to know that I'm using ImageMagick to resize all my images. If anyone could help I'd be very appreciative :)... If you need me to copy and paste any code just lemme know.
  6. Something I discovered>> is that if I delete the table 'products_image_pop' and then recreate it and don't specify a popup image, then it'll work, but of course only display a larger version of the product image. As soon as I try to specify a popup image again the popup image doesn't come up at all not even the way it did before I deleted and created the table... This is very odd... Please help ;) lol....
  7. I got it all working... and for those in the thread that were wondering about having image resize with it, I do... using IMAGEMAGICK... What I do have a problem with is that when I try to add a "pop-up" image, I don't get anything... I can only see the mini-image in the catalog, but when I try to click on it to get the bigger image, I get nothing... I had it one point I belive, but I didn't change any code and now it's gone.... any suggestions? Thanks so much!
×
×
  • Create New...