mickj Posted June 11, 2009 Share Posted June 11, 2009 HI, Studied the Forum and Contribs but cannot seem to find an answer. I have a large number of products that do not require images. For example Fresh Produce and I think most people know what a carrot or tomato looks like. I want to leave my Category images but I do not want any product images, just a listing with short descriptions and the usual Buy Now button Can anyone advise please if this is possible or what and where to edit. Regards Mick Link to comment Share on other sites More sharing options...
FIMBLE Posted June 11, 2009 Share Posted June 11, 2009 Hi You can turn off images in admin >> configuration >> product listing. this will turn them all off. Other than that you need to add some code to make it happen Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mickj Posted June 11, 2009 Author Share Posted June 11, 2009 Thanks Nic, With the Display Product Image set to 0 , the product images do not display in my initial category listings, which is good, but when I choose Buy Now or go the Cart the images are still displayed. I'm looking for a way to eliminate product images completely. Link to comment Share on other sites More sharing options...
FIMBLE Posted June 11, 2009 Share Posted June 11, 2009 if there is no image uploaded it shold not show one, you could just delete / comment out the code that displays images Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mickj Posted June 11, 2009 Author Share Posted June 11, 2009 Thanks Nic, Adding a product with no image displays a broken image type icon against the product. Do you happen to know which file and which lines would need removing / commenting out, to remove all references to product images? Mick Link to comment Share on other sites More sharing options...
kornel76 Posted July 3, 2009 Share Posted July 3, 2009 Thanks Nic,Adding a product with no image displays a broken image type icon against the product. Do you happen to know which file and which lines would need removing / commenting out, to remove all references to product images? Mick Hi! In index.php you dont need to do anything, just set Display Product Image to 0 In product_info.php find <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> take // before the echo. In shopping_cart.php find: ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . take // before the ' . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.