
December 30th, 2008, 07:30 AM
|
|
Registered User
|
|
Join Date: Dec 2008
Posts: 1
Time spent in forums: 27 m 35 sec
Reputation Power: 0
|
|
Need Some Help With Embedded Code in OSC
Hi there,
I have 2 issues of embedded coding that i need to pay attention to:
1) The first is related to the product info. On the product preview and the full product display there is some text stating Model ID. I dont want this in either instance but cannot find the correct code to remove.
For an example please visit
Code:
www.raunchyrags.co.uk/index.php?manufacturers_id=34
and note the the model ID, then if you click on one fo the items the model ID actuyally changes? I need to remove both instances of this.
2) The second I have addressed previously but am now doing in a more formatted detail. My website is based on a template, from which i cannot recall where from and there is no code snippets to confirm within the website. The issue I have is the left column is basically 2 menus (brands & Catagories). I want to use the oprion of a drop down menu for the brands as there are too many for the current format.
I have used the admin to alter this but it does not work, I have since found the embedded code that is causing this but do not know how to change this. When removed the whole menu is removed. The code is located in the header.php and is as follows:
PHP Code:
<? // ---- MANUFACTURERS STRING OUTPUT
$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
$manufacturers_array = array();
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$output .= $output ? '<tr><td height=1></td></tr>' : '';
$output .= '<tr><td><img src=images/m12.gif width=19 height=19></td><td bgcolor=#E7DCCB width=220 height=19 class=ch5><a class=ml2 href=';
$manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']);
$output .= tep_href_link('index.php', 'manufacturers_id='.$manufacturers['manufacturers_id']). '>'.$manufacturers_name;
$output .= '</a></td></tr>';
}
echo $output;
}
?>
I would appreciate any help offered on these coding issues
|