Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Calculate Image Size


chuntse

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

Link to comment
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
Link to comment
Share on other sites

  • 4 months later...

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...