ok i think i know where i need to put the code needed to make the image mouseover work:
Code:
showtrail(<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
}
?>,
<?php echo $products_name; ?>,100,80,200,200,this,0,0,100,80)
I think that is right... the code above is supposed to call the following string to pass to the js file:
Code:
showtrail(imagename,title,oriwidth,oriheight,zoomimgwidth,zoomimgheight, image, startx, starty, startw, starth)
I think that I have to put the top code section:
Code:
showtrail(<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
}
?>,
<?php echo $products_name; ?>,100,80,200,200,this,0,0,100,80)
into here:
Code:
if (PRODUCT_ALL_LIST_IMAGE != '0') {
if ($products_all->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
$display_products_image = str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
} else {
$display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_all->fields['products_image'], $products_all->fields['products_name'], IMAGE_PRODUCT_ALL_LISTING_WIDTH, IMAGE_PRODUCT_ALL_LISTING_HEIGHT, INSERT HERE) . '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
}
} else {
$display_products_image = '';
}
I tested it but got the following error:
Code:
Parse error: syntax error, unexpected '<', expecting ')' in /home/.nightshadow/avel/batteriesinaflash.com/includes/templates/template_biaf/templates/tpl_modules_products_all_listing.php33
any confirmation or guidance will be greatful for...
Thank you kobra for the guidance.. actually gave me a direction on where to look which was pretty close to what i was looking at but just didnt know it.