Jump to content
Sign in to follow this  
chuntse

Calculate Image Size

Recommended Posts

Hi All,

 

The Calculate Image Size doesn't work in Product Info page.

How can we thumbnail the image in Product Info page?

I tried to search solution on internet or forum, there are no answer, I always see the discussion.

 

Developper of Oscommerce 2.3.1 has not noticed this problem??

 

What had happened to the Oscommerce Development?

There are no news about the final production verion of Oscommerce 3.0 and no one fixes the problems of oscommerce 2.3.1....

 

is any development freezed?

 

OMG...Who can help us?

 

chuntse

Share this post


Link to post
Share on other sites

Chuntse ,

 

calm down and no panic please !

 

1) The fact that you can not find an answer to something doesn't mean the answer don't exist, it means just that you can not find it, not more not less.

2) Because you face a problem doesn't mean that it is a osCommerce problem that developers should fix, it mean just that you can not fix it, not more not less

 

To your question now, that has been answered many times in the forum by the way:

 

1) Upload a second image for each of your products where it says "+ add large image". It can be the same file, doesn't matter. You will see that the image got resized

2) If you want to manipulate this, open your file catalog/product_info.php and find the section where it says

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

 

You can change the numbers to get the size you want for the main image (maxwidth / maxheight) and the thumbnalis (thumbwidth) and the container that hold them as well. Play around with the settings till you get the result you want.

 

Sure this all can be improved, but no reason to get a "end of the days" mood

Edited by multimixer

Share this post


Link to post
Share on other sites

Just for the record, if you want to make the width fixed but the height taller as possible, comment (or delete) the height:

 

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

Edited by Huroman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×