davidj Posted June 19, 2005 Posted June 19, 2005 I would like to be able to display product images only in the description page after a user has clicked the product's name. I am selling vinyl Lps and will have hundreds or 1000's of titles in each category. Having pictures load in the product listings area would take too long for many customers. any help or links would be greatly appreciated.
niknakgroup Posted June 19, 2005 Posted June 19, 2005 are you removing them from the category pages or the product pages? kinda confused as to what you're after, so being the mug I am, will answer both. For the categories pages, in includes/modules/product_listing.php find: case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_THUMBS . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_THUMBS . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } and comment out. If its product_info.php you want to change, this is simpler....find . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, 0, 'hspace="5" vspace="5"') . '<br>' and remove it - if you do this you'll probably want to redefine TXT_CLICK_TO_ENLARGE as it will look a bit silly asking your customer to enlarge an image which doesn't exist.... Anyway, hope that helps. Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.