Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images inside admin


rusty1001

Recommended Posts

Hi

would anyone know how to change the image size of the admin - categories,

 

I have images that could be downloaded but they are huge in preview,

 

it would be subcategory_image_width something.. not which image to set for

 

 

thanks

 

russell

Rusty

-------------------------------------------

Link to comment
Share on other sites

look for the HEADING_IMAGE_WIDTH and SMALL_IMAGE_WIDTH in categories.php. You have to add other definitions as those are retrieved from the dbase. But you also need a thumbnailer on the admin end. Otherwise the browser still downloads the full image (if you're concerned with the time taken to load the product pages).

Link to comment
Share on other sites

Example of preview page. I have code set to small image, but you can get a good idea of what needs changed:

 

<?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'width="130" height=""', 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; ?>

 

Do a search of categories.php and change all to the width you want. Note, no value is set in height.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...