Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product info page : "Fixed thumbnails size" and "click to enlarge"


ngos

Recommended Posts

hello all,

 

I made a search in the forum but I couldnt find a topic to help me. So please be patient with me if I post a topic very common.

 

1. How can I have in thproduct_info.php page a fixed size for the thumbnails. The default of oscommerce sets width at 75px. Can I have a same value for the height ? So what ever the large pictures sizes are their thumbnail image to be for example 75X50 pixels ?

 

so far I came across this 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>

 

can I set the height for the thumbs e.g to 50px changing something here ?

 

 

2. How can I add a text above the large image in the gallery to notify guests to click it to enlarge ?

 

I have attached a pic to explain better.

 

thanks

post-289175-0-72408200-1318515896_thumb.jpg

Link to comment
Share on other sites

  • 6 months later...

Try changing

 

thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,

 

to

 

thumbwidth: <?php echo (($pi_counter > 1) ? '50' : '0'); ?>,

 

or if you want an image to size by height

 

thumbwidth: <?php echo (($pi_counter > 1) ? '0' : '75'); ?>,

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

  • 2 weeks later...

Try changing

 

thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,

 

to

 

thumbwidth: <?php echo (($pi_counter > 1) ? '50' : '0'); ?>,

 

or if you want an image to size by height

 

thumbwidth: <?php echo (($pi_counter > 1) ? '0' : '75'); ?>,

 

 

This doesn't seem to work for me. Just makes the thumbs disappear. Any ideas?

Link to comment
Share on other sites

You would need to play with the .js file that powers the bxgallery. That would not be straightforward.

 

In general, look for width in that file, and see if you can do something for the height in a similar way.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...