Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 images for category... >>> HELP!!!


riccardino

Recommended Posts

Hi everyone!

This is my "little" problem...!

 

When I see categorie products, I see default images (ie: PIC1.GIF)

This is perfect.

But...

When I enter in a category, I must see another pic (ie: PIC2.GIF)

 

If is possibile, I request you a help with php/js for "loading" a different pic into the category.

I can upload this pic manually with ftp, without upload procedure with admin OSC.

 

Please, it's more important...

 

I hope in an your answer...!!! ;)

Link to comment
Share on other sites

I have found this code in index.php

 

// Get the right image for the top-right

$image = DIR_WS_IMAGES . 'table_background_list.gif';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$image = tep_db_fetch_array($image);

$image = $image['manufacturers_image'];

} elseif ($current_category_id) {

$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$image = tep_db_fetch_array($image);

$image = $image['categories_image'];

}

?>

 

The results is: image.gif

 

Can you help me to change this script for have "image2.gif" or "2image.gif" or else???

 

Regards!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...