Guest Posted March 25, 2006 Posted March 25, 2006 I've linked all of my manufacturers on an osCommerce site, however the logos are not linking to the manufacturer's website. How can I link them? If you look at the following page, I've specified Fender to link to Fender's website - but the image displays, however there's no link......am I missing something? http://graysonstunetown.com/shop/index.php...facturers_id=10
Guest Posted March 25, 2006 Posted March 25, 2006 It seems you are missing the manufacturer info box normally like on my site I have that in the right column and you dont so thats what I think is missing in your site
Guest Posted March 25, 2006 Posted March 25, 2006 add this in your left or right column if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); and then add this in your boxes 'catalog/include/manufacturer_info.php' if you dont have it <?php /* $Id: manufacturer_info.php,v 1.11 2003/06/09 22:12:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if (isset($HTTP_GET_VARS['products_id'])) { $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_query); ?> <!-- manufacturer_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURER_INFO); new infoBoxHeading($info_box_contents, false, false); $manufacturer_info_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">'; if (tep_not_null($manufacturer['manufacturers_image'])) $manufacturer_info_string .= '<tr><td align="center" class="infoBoxContents" colspan="2">' . tep_image(DIR_WS_IMAGES . $manufacturer['manufacturers_image'], $manufacturer['manufacturers_name']) . '</td></tr>'; if (tep_not_null($manufacturer['manufacturers_url'])) $manufacturer_info_string .= '<tr><td valign="top" class="infoBoxContents">- </td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer['manufacturers_id']) . '" target="_blank">' . sprintf(BOX_MANUFACTURER_INFO_HOMEPAGE, $manufacturer['manufacturers_name']) . '</a></td></tr>'; $manufacturer_info_string .= '<tr><td valign="top" class="infoBoxContents">- </td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer['manufacturers_id']) . '">' . BOX_MANUFACTURER_INFO_OTHER_PRODUCTS . '</a></td></tr>' . '</table>'; $info_box_contents = array(); $info_box_contents[] = array('text' => $manufacturer_info_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- manufacturer_info_eof //--> <?php } } ?> good luck make a back up first just in case
Guest Posted March 25, 2006 Posted March 25, 2006 Right, we did away with that manufacturer's info box, I simply want to link the manufacturer logo that I added on top of the image description......any ideas? It seems you are missing the manufacturer info box normally like on my site I have that in the right column and you dont so thats what I think is missing in your site
Guest Posted March 25, 2006 Posted March 25, 2006 sorry no idea good luck again but you can just add it in your left column below the rest
Guest Posted March 25, 2006 Posted March 25, 2006 OK I got it - now can I control the size of the manufactuerrs logo? It throws off the entire page....
Guest Posted March 25, 2006 Posted March 25, 2006 Hey so you finally got it working like you want good for you take care
Recommended Posts
Archived
This topic is now archived and is closed to further replies.