Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

set IMAGE_REQUIRED from popup_image.php


scottmc

Recommended Posts

Posted

I have image_required = false but then when you inlarge image it is blank

 

what is the best way to allow larger image popup while keeping image required false

 

function setVar() {

<php? IMAGE_REQUIRED=='false'; ?>;

}

//-->

</script>

</head>

<body onload="resize()" onBeforeUnload="setVar()">

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

 

witch dosen't work

 

 

Also i saw at one time that there was a site that had all variables, function, location, references, dependants, db layout. any one know where that is?

Posted

Actually i guess i dont want to change the variable that is not good for other ppl viewing sight, i need to hard code it in popoup_image.

 

I am stuck with the darn quotes

<?php echo "<img src=" . DIR_WS_IMAGES . $products['products_image'] . " alt=" . $products['products_name']) ?>

 

 

i need more quotes whats a good way?

 

Thanks for any replies

Archived

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

×
×
  • Create New...