Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 set of images?


acoz

Recommended Posts

osCommerce does that already. When you make your product, you upload a larger version of your image. osCommerce then changes the size on the appropriate page depending on what you have it set as in your configuration area.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

osCommerce does that already. When you make your product, you upload a larger version of your image. osCommerce then changes the size on the appropriate page depending on what you have it set as in your configuration area.

 

Thanks for the reply.

 

Im guessing your talking about "Configuration" under "images"

 

Small Image Width

Small Image Height

 

Once i set these to the setting i wanted for catalog, let's say 24x24. now that the catalog well show the picture at 24x24. But the product detail page is also showing the picture by 24x24.

 

am I doing something wrong?

Link to comment
Share on other sites

I have the same question! :-"

 

 

When you placed all the page info including the image did you specify the image width and height? B)

 

Example:

<img align="right" src="images/grav-bott.jpg" width="260" height="300" alt="Graviola Bottles">

Link to comment
Share on other sites

When you placed all the page info including the image did you specify the image width and height? B)

 

I saw this in my pages:

<img src="images/1001051324.jpg" border="0" alt="1001051324" title=" 1001051324 " width="150" height="112.8" hspace="5" vspace="5"><br>Click to enlarge</a>');

 

I don't understand what's you means... :(

 

image.jpg

 

This is my image value in my admin area.

What I need to change? <_<

Link to comment
Share on other sites

I saw this in my pages:

<img src="images/1001051324.jpg" border="0" alt="1001051324" title=" 1001051324 " width="150" height="112.8" hspace="5" vspace="5"><br>Click to enlarge</a>');

 

I don't understand what's you means... :(

 

image.jpg

 

This is my image value in my admin area.

What I need to change? <_<

 

The image settings in Admin is for the small image that appears in the upper right hand corner. Here's another piont. If you want the small image to look more real and undistorted, change your small image height setting to nothing and OSC will automatically adjust the image to it's original proportions. Try small image width at 100

 

Now You're asking about a different image, the image in your product detail page. This is not found in the Admin Configuration. It is found in Admin under Catalog in catagories-products in the body of the write up in whatever product you are looking at. The image should be in there and you could increase the size by changing the width and height. The changes must be in proportion to each other so multipy the exiting H -W number by the same factor. B)

Link to comment
Share on other sites

The image settings in Admin is for the small image that appears in the upper right hand corner. Here's another piont. If you want the small image to look more real and undistorted, change your small image height setting to nothing and OSC will automatically adjust the image to it's original proportions. Try small image width at 100

 

Now You're asking about a different image, the image in your product detail page. This is not found in the Admin Configuration. It is found in Admin under Catalog in catagories-products in the body of the write up in whatever product you are looking at. The image should be in there and you could increase the size by changing the width and height. The changes must be in proportion to each other so multipy the exiting H -W number by the same factor. B)

 

Im looking inside my product detail page setting, but i dont see any setting i can change my image size. Only upload image setting.

 

4.gif

Link to comment
Share on other sites

Well, i finally got it >_< for those who want to display their product detail image bigger here's how.

 

1.) Goto your /public_html/catalog/ and open up "product_info.php"

 

2.) Find this script inside "product_info.php"

<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

 

3.) Where you see

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'

change it to

'width="xxx" height="xxx" hspace="5" vspace="5"'

NOTE: change the xxx to whatever image size you want it to be

 

4.) save and upload (overwrite file) be sure to make a backup! before uploading :)

Link to comment
Share on other sites

  • 2 weeks later...
Well, i finally got it >_< for those who want to display their product detail image bigger here's how.

 

1.) Goto your /public_html/catalog/ and open up "product_info.php"

 

2.) Find this script inside "product_info.php"

<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

 

3.) Where you see

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'

change it to

'width="xxx" height="xxx" hspace="5" vspace="5"'

NOTE: change the xxx to whatever image size you want it to be

 

4.) save and upload (overwrite file) be sure to make a backup! before uploading :)

 

You can also just change the instances of SMALL_IMAGE to LARGE_IMAGE and that will work too ;)

Link to comment
Share on other sites

Well, i finally got it >_< for those who want to display their product detail image bigger here's how.

 

1.) Goto your /public_html/catalog/ and open up "product_info.php"

 

2.) Find this script inside "product_info.php"

<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

 

3.) Where you see

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'

change it to

'width="xxx" height="xxx" hspace="5" vspace="5"'

NOTE: change the xxx to whatever image size you want it to be

 

4.) save and upload (overwrite file) be sure to make a backup! before uploading :)

 

 

Neither solution in this thread seems to work for me. I get no changes to the image in product_info?

Tom

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...