Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make Thumbnail Larger Only In Detailed Review?


trembita

Recommended Posts

I want to make thumbnails larger but only in detailed review of the product. There is an option in admin panel, but it makes bigger all small images includes ones at main page.

 

So, how to make thumbnail larger but only in detailed review of the product?

Link to comment
Share on other sites

in your catalog\product_info.php you should have code like:

tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"')

 

Change the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT parameters to numbers like (350,350) for testing, then you could add another set of configuration switches to control their values from the admin end.

Link to comment
Share on other sites

OK I found code:

 

tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"')

 

in product_info.php , but what parameters shoud I change to get for example 40x40px image?

Link to comment
Share on other sites

  • 1 month later...

Archived

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

×
×
  • Create New...