I might have narrowed it down to this file attrib_prod_info.php for me at least. Since I have installed the mod to have attributes replace main images when selected. The code inside of this file looks like this...
And I am pretty sure this is the culprit. I deleted this partCode:<?php require('includes/application_top.php'); $products_options_values_id = $_REQUEST['products_options_values_id']; $alt = $_REQUEST['alt']; $width = $_REQUEST['width']; $height = $_REQUEST['height']; $products_id = $_REQUEST['products_id']; $sql = "select pa.attributes_image from " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products_id . "' and pa.options_values_id = '" . (int)$products_options_values_id ."'"; $account_query = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $products_color_image = $db->Execute($sql); $attributes_image = $products_color_image->fields['attributes_image']; if($attributes_image!=''){ $image = zen_image('images/'.$attributes_image, $alt, $width, $height); ?> <?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?> <?php }?>
and everything still worked except when i clicked on the drop down menu and chose a product. Then it gave me an error. So is there a way to change the above code to work with lightbox instead of a generic java popup window?Code:<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?> <?php }?>


Reply With Quote
opupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?>

I'm not sure if you will be able to respond, given the age of your post, but did you also have to install the attribute pop up or did you just borrow their code? from what I can see, the popup mod places a new attribute.php file in module/customeTemplate/.
