Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image size on first page not correct


bpaskin

Recommended Posts

Hi, I am going loopy trying to find this problem in the code.

 

Basically, when the user comes into the index.php page the images that are shown are not bound by the constraints setup in admin. Every other page is fine. Could someone please point out where this piece of code is located? I have spent half the day looking, and probably ran over it a thousand times.

 

Thanks, Brian

Link to comment
Share on other sites

Hi, I am going loopy trying to find this problem in the code.

 

Basically, when the user comes into the index.php page the images that are shown are not bound by the constraints setup in admin. Every other page is fine. Could someone please point out where this piece of code is located? I have spent half the day looking, and probably ran over it a thousand times.

 

Thanks, Brian

 

I found it!!! I just need to have a nice pasta dinner and let my eyes rest for awhile. I also assumed I knew what page it was included, but it was not true.

 

Here is the fix:

under includes/modules/new_products.php

 

locate this line:

<tr><td><a href="<?=tep_href_link('product_info.php?products_id='.$new_products['products_id'])?>">

<?=tep_image(DIR_WS_IMAGES.$new_products['products_image'],$new_products['products_name'])?>

</a></td></tr>

 

and replace it with this:

 

<tr><td><a href="<?=tep_href_link('product_info.php?products_id='.$new_products['products_id'])?>">

<?=tep_image(DIR_WS_IMAGES.$new_products['products_image'],$new_products['products_name'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)?>

</a></td></tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...