PDA

View Full Version : Manufactures Box- Image instead of text link



Anonymous
10-18-2002, 11:04 AM
hello all.
I am hoping to get a response from this, it is quite urgent...
as the tilte says, I only have one Manufacturer, and instead of displaying a link to the Manufacturers page in text (this is the box that is in the left_column.php file), I want to make it as a clickable image that directs you to the page...
I searched everywhere for an answer to this, and did notice several people asking the same thing but never a response??

can anyone please help??
thx in advance

Anonymous
10-18-2002, 11:25 AM
Ok figured it out...
open the \catalog\includes\boxes\manufacturers.php

look for this code:


// Display a list
$manufacturers_list = '';
while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_values['manufacturers_id'], 'NONSSL') . '">' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</a><br>';


CHANGE THE ABOVE CODE TO THIS:

// Display a list
$manufacturers_list = '';
while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_list .= '<div align="center"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_values['manufacturers_id'], 'NONSSL') . '">' . '<img src="/catalog/images/boxes/NAME_OF_YOUR_IMAGE.gif" width="112" height="132" border="0"></a><br>';

You will now have an image of your choice centered in the Manufactuerer's box.