Hello team,
I've created new fields in the 'products' table to hold additional image paths.
Then, in the sts_inc/product_info.php I've defined new variables that would work as thumbnails and one to work as a zoomed area, to avoid the use of popups.
Thumbnails:
$template_pinfo['image01']
$template_pinfo['image02']
$template_pinfo['image03']
Zoomed area:
$template_pinfo['imagezoom']
Now I would like to transform the thumbnails in hyperlinks, so for instance, if I clicked on image01, the variable $template_pinfo['imagezoom'] would be set to what's in image01 (the same happening in the products page).
How do I do this??
I was trying to play with the imagepopup definition (below) but had no joy with the sintax, as I'm not a PHP programmer at all.
$template_pinfo['product_popup']= '<script language="javascript"><!--'."\n".
'document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link($product_info['products_image01'], 'pID=' . (int)$products_id) . '\\\')">' . $template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>\');'."\n".
'//--></script>'."\n".
'<noscript>'."\n".
'<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n".
'</noscript>'."\n";
Please help.
Thanks,
Old Shoe