Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I do that


lapo4ka18

Recommended Posts

Posted
In category after "Let's See What We Have Here" I have an image for manufacturer, and instead of image I would like to have manufacturer name as a text.

Here is what I mean

http://mercury.lunarpages.com/~megape2/cat...php?cPath=21_31

 

Thanks

 

AdrienneVittadini2.gif

 

That is an image. Or was that YOUR example?

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

Make changes in /catalog/default.php as follows:

 

Line 261 to Line 272 replace the following code:

 

$name = 'Manufacturer Page';

if ($HTTP_GET_VARS['manufacturers_id']) {

$name = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'");

$name = tep_db_fetch_array($name);

$name = $name['manufacturers_name'];

} elseif ($current_category_id) {

$name = tep_db_query("select categories_name from " . TABLE_CATEGORIES . " where categories_id = '" . $current_category_id . "'");

$name = tep_db_fetch_array($name);

$name = $image['categories_name'];

}

?>

<td align="right"><?php echo $name; ?></td>

 

But as always advised by me, make a copy of your original file before making modifications suggested by me. :wink:

 

Kagg

Posted

Oops, there is a little mistake left in the line:

 

$name = $image['categories_name'];

 

Make it

 

$name = $name['categories_name'];

 

kagg

Posted

When I choose from manufacturers table it's working fine and when I chooce from categories table it's giving me thgis error.

 

Please help.

Archived

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

×
×
  • Create New...