?> <div id="compare_window"> </div> <?php } /*image gallery*/ if (PRODUCT_INFO_GALLERY != 'false') { ?> <div class="product-gallery"> <?php echo tep_get_product_stars($product_info['products_id'], 'detail', $discount); if (!file_exists(DIR_WS_IMAGES . $product_info['products_image'])) { $product_info['products_image'] = 'foto/no_image.jpg'; } $images = array(); for ($i = 0; $i < 5; $i++) { $postfix = $i > 0 ? '_' . $i : ''; if ($product_info['products_image' . $postfix]) { $images[] = $product_info['products_image' . $postfix]; } } if (sizeof($images) > 0) { if (IS_PRINT_FRIENDLY == '1') { echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT); } else { ?>
$image_width = MEDIUM_THUMBNAIL_WIDTH; $image_height = MEDIUM_THUMBNAIL_HEIGHT; } else { $image_width = SMALL_IMAGE_WIDTH; $image_height = SMALL_IMAGE_HEIGHT; } ?> <div class="product-image"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']); ?> "><?php echo tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], $image_width, $image_height); ?> </a></div> <?php echo tep_get_product_stars($listing['products_id'], $display_class, $discount); } else { if ($list_config['configuration_key'] == 'PRODUCT_' . $listtype . '_WEIGHT') { ?> <div class="product-quantity"><?php echo $listing['products_weight']; ?> </div> <?php } else { if ($list_config['configuration_key'] == 'PRODUCT_' . $listtype . '_PRICE') { //DISCOUNT if ($discount_price['lowest']['discount'] > 0 && PRICE_BOOK == 'true') { if (tep_not_null($listing['specials_new_products_price'])) { $new_price = $listing['specials_new_products_price']; if ($new_price < $discount_price['lowest']['price']) {