Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Help With Re-size Image In Product_Info OSC 2.31


1 reply to this topic

#1 gaspower

  • Community Member
  • 410 posts
  • Real Name:JR
  • Gender:Male
  • Location:OR

Posted 06 November 2011, 21:57

Hello,

Can someone please explain how to re-size the main image in product_info.php in OSC 2.31. I see the code,

<script type="text/javascript">
$('#piGal ul').bxGallery({
  maxwidth: 300,
  maxheight: 200,
  thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,
  thumbcontainer: 300,
  load_image: 'ext/jquery/bxGallery/spinner.gif'
});
</script>

All my images are 450x450 pixel. I would like in product_info.php that the be 250x250.

Thanks Jr

#2 multimixer

  • Community Sponsor
  • 3,594 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2011, 07:07

Set the maxwidth and maxheight to be 250, same for thumbcontainer. Thumbwidth you can set depending on how many thumbs you want to display (eg if 5 then 250/5 = 50, so you set it to 48 because of 1px shadow left and right)
Looking for a way to create your own osCommerce template ? click