Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

plz help. Missing images


Aceicol

Recommended Posts

Posted

Hi

 

I have used a contribution that uses 3 different image sizes. I can see that all the small ones are working OK as I can see them, but is there a way I can get a page to display all the middle and large images in the same way as the small.

 

I thought I could just change the words products_image to products_mediumimage in the default.php page and that this would then use the medium images instead of the small ones but this doesn't seem to work.

 

Thanks in Advance.

Posted

In product_info.php change;

 

<?php

 $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "'");

 if (!tep_db_num_rows($product_info_query)) { // product not found in database

?>

 

to:

 

<?php

 $product_info_query = tep_db_query("select p.*, pd.* from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "'");

 if (!tep_db_num_rows($product_info_query)) { // product not found in database

?>

 

I think thats what I had to do to get that contrib working.

 

hth

Posted

Won't this just show one image per page. I have about a 1000 images and therefore need to see which images are working and which aren't.

Archived

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

×
×
  • Create New...