Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

click to enlarge


spudeov

Recommended Posts

hi peeps i just need a little hlpe on this.

 

When i click to enlarge i get a small box that appers but it doesnt get any bigger, i have to manualy click on the maximze to get it to go bigger

 

any help

 

thanks

edit catalog/popup_image.php

 

function resize() {

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

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

 

I believe this is where I changed mine. ie width +30 can be width +60 if you need larger.

Link to comment
Share on other sites

hi there

 

thanks for the reply

 

here is what is in my popup_image.php

 

<?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

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$navigation->remove_current_page();

 

$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);

 

$content = CONTENT_POPUP_IMAGE;

$javascript = $content . '.js';

$body_attributes = ' onload="resize();"';

 

include(bts_select('popup', $content_template)); // BTSv1.5

 

require('includes/application_bottom.php');

?>

Link to comment
Share on other sites

hi there

 

thanks for the reply

 

here is what is in my popup_image.php

 

<?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

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$navigation->remove_current_page();

 

$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);

 

$content = CONTENT_POPUP_IMAGE;

$javascript = $content . '.js';

$body_attributes = ' onload="resize();"';

 

include(bts_select('popup', $content_template)); // BTSv1.5

 

require('includes/application_bottom.php');

?>

I just simply put a larger photo in the images folder and when you click on enlarge you then get the bigger picture

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...