Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dispay images only in product description?


davidj

Recommended Posts

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.

Link to comment
Share on other sites

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)

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...