Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Listings with no images


mickj

Recommended Posts

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

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

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

  • 4 weeks later...
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

Archived

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

×
×
  • Create New...