Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product image display question


xuechao

Recommended Posts

Is it possible to have the "New Product" in the default page to load a different (larger size) image?

 

For example, currently I enabled the images in the listing size (60x60),

But I want the same image to appear in the New Product with a size (100x100). Is that possible?

Link to comment
Share on other sites

You could edit it to be SMALL_IMAGE_WIDTH*1.25,SMALL_IMAGE_HEIGHT*1.25 or something like that.

 

Or, just replace the values specifically with 100,100

Link to comment
Share on other sites

maybe i didn't make my question clear.

 

Currently I can set the max and min image size in OSCommerce and that will apply to all product images.

 

But is it possible to have the same image with two different sizes?

Like:

 

An image appears in the product listing page with size (60x60)

and the same image with size (100x100) when it's used in New Product (in default.php) section.

Link to comment
Share on other sites

If you have the code load based on SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT which are both set to 60 in the Admin ...

 

Then you edit one of the pages to use SMALL_IMAGE_WIDTH*1.25 you get 60 + 25% bigger ... which is 75 in this example.

 

You just change the *1.25 to whatever size you want 60 to grow to on any page where you want to use the exact same image but show it a little bigger than the settings in the Admin.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...