Alright.
I'm pretty excited as I managed to get SOME results from knowing nothing.
I put this inside the WHILE
PHP Code:
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE));
and put a value into $products_image
PHP Code:
$products_image = $new_products->fields['products_image'];
but when I use that variable in $products_image_medium I get a mismatched image.
I dont know what to think because in the very next space $new_products->fields['products_name'] is called and its CORRECT but the code right before that gives me a $new_products->fields['products_image'] of the previous product.
Here is the code line 62 in new_products.php if anybody could point out where to define my $products_image for the medium filename changer
PHP Code:
'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT, 'style="position:relative" onmouseover="showtrail(\'' . $products_image_medium . '\',\'' . $new_products->fields['products_name'] . '\',250,130,350,373,this,0,0,250,130);" onmouseout="hidetrail();"') . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . $products_price);
Again I have no programming knowledge so any help is greatly appreciated.