Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Showing full image size in product_info.php


bitera

Recommended Posts

Posted

Hi Again,

 

I want to have the full image size shown by default under the product_info page instead of having to click to enlarge. How can this be done, I have been trying to figure this out but can't seem to get it to work.

 

TIA,

 

John

--

 

John Cannon

Posted

In catalog->product_info.php, find:

 

tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, 0, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

 

(it may look slightly different in your file as mine has been tweaked all over the place) - where it says SMALL_IMAGE_WIDTH, change this to 0 - you can see I have already changed SMALL_IMAGE_HEIGHT to 0 - this should show the image full size, if my memory serves me well. If not, take out completely the reference to sizes. Hope that helps!

 

Oh, you may have to look for other instances of $product_info['products_image'], I can't remember if it shows more than once in the file for various different if and else eventualities. A quick squint should find them though - just remember to BACKUP incase i'm wrong though!!

 

:):):)

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)

}

Archived

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

×
×
  • Create New...