Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Different image size for different products


_doctor

Recommended Posts

Posted

Hi!

 

I am selling cigarettes at http://smokingplaza.com

Its natural that there are different size packs: usual size and big size.

 

OsCommerce resizes all the product images to the same size. This might be ok for the main page, when products are shown in some kind of grid. But on the product description page I want image to be shown in its native size. How can I do it?

I know PHP basics and was trying to play with arguments passed to tep_image.. (or something like this), but failed.

 

How can I have native image size on the product description page?

Posted

admin > Configuration > Images > Small Image Height and Small Image Width, delete the numbers and leave blank. There is more advice floating around somewhere about how to get rid of the Click to Enlarge text.

 

Hth,

Matt

Always back up before making changes.

Posted

I tried clearing small image width and height, but this removed picture sizing everywhere. As a result main page and categories pages look ugly. I want to remove picture sizing on orpduc_info pages only

Posted

Can you post a specific page?

 

*edit*

Posted

You have to change lines 109 and 112 in product_info.php (osc 2.2 ms2). Replace the SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT with null, so the default (no resizing) can be used in tep_image() (see this OsCommerce Tutorial)

Posted
You have to change lines 109 and 112 in product_info.php (osc 2.2 ms2). Replace the SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT with null, so the default (no resizing) can be used in tep_image() (see this OsCommerce Tutorial)
You can't post outside osCommerce links in the forums. If you want them to be able to see that info, you should post the Tutorial in the forums and then link to that. That's why your posts keep getting edited.

 

Hth,

Matt

Always back up before making changes.

Posted

ecartz, thanks for the hint :) I realized very soon that outside links in signatures are disallowed per forum rules, but I couldn't find a policy prohibiting any outside links. I hope the link is ok. If not, please remove it.

 

> Heh, I tried '', -1 and 0, but not null

:)

 

Hm, 0 actually should have worked. But anyway, I hope it works for you now as it worked for me.

Archived

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

×
×
  • Create New...