Blag,
Funny you should ask about this. My experience, and I believe that of others is that the attributes popups will ONLY work when the images_styles is set to 0. BTW, the popups also work with the check boxes but only for style=0.
I just spent the greater part of the day trying to overcome this problem. :frusty: Unfortunately my PHP is not that good yet so I didn't succeed. But here's what I see.
If you look at the "switch" code for the radio buttons (lines 227-282) or the check boxes (lines 325-382), case=0 does not draw an image whereas the other cases (1-5) do. Directly above the call to the popup code is a section which draws the images for product_options_images_style == 0;
// collect attribute image if it exists and to be drawn in table below
if ($products_options_names->fields['products_options_images_style'] == '0' or ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == '0') ) {
if ($products_options->fields['attributes_image'] != '') {
$tmp_attributes_image_row++;
I found that I could move the header section of the popup code, which defines the large popup image and the attribute name,
//find large size attribute images. Location must be in /images/large and image name must be image_LRG.ext Mike Scott 070606
$array_filename = split("[/\\.]", $products_options->fields['attributes_image']) ;
$filename = $array_filename[count($array_filename)-2];
$extension = '.'.$array_filename[count($array_filename)-1];
$filename = $filename.'_LRG';
$path = DIR_WS_IMAGES . '/large/';
$attribute_image_lrg = $path . $filename. $extension;
$selected_attrname = $products_options_names->fields['products_options_name'] . ': '.$products_options->fields['products_options_values_name'];
to just above the beginning of the "radio button" code in line 198 and the popups still worked fine.
Then I tried incorporating the call to jscript_dynamic_window_popup.js into one of the cases in the switch calls to make it work with a different style. NO LUCK. I don't see a global way to do it so it looks like the call to the popup script would have to be written into each of the case statements.
Just for fun I tried to incoporpate the image_hover.js script from IH2, but I kept running into parsing errors with the php code. I've got more studying to do.
Hope this explains it. Maybe you can see a solution.
Maury