Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Delete Items From The Header?


6thSense

Recommended Posts

Where do I go to delete so I can remove from my header? I want to delete Languages, the flag, and Currencies. I have went through these forums prior to posting this, and a couple said to alter the header.php file?

 

I wouldn't know the first place to look or what to edit.

 

 

My header...

header.jpg

Link to comment
Share on other sites

Where do I go to delete so I can remove from my header? I want to delete Languages, the flag, and Currencies. I have went through these forums prior to posting this, and a couple said to alter the header.php file?

 

I wouldn't know the first place to look or what to edit.

My header...

header.jpg

 

I'm assuming you just want the English language as your default? Go to Includes > Header.php and do a search for "Languages" .. once you find that you can delete the image of the flag and the title. Do a search for "Currencies" and see if that shows up as well.

Link to comment
Share on other sites

  • 3 weeks later...

I am new to PHP. What do I delete?? This is the header.php

 

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<table border="0" cellspacing="0" cellpadding="0" width="680" align="center">

<tr><td valign="top">

<table border="0" cellspacing="0" cellpadding="0">

<tr><td width="473" valign="top">

<table border="0" cellspacing="0" cellpadding="0">

<tr><td width="473" height="3" bgcolor="#CCCCCC" colspan="7"></td></tr>

<tr><td height="10" colspan="7"></td></tr>

<tr><td width="150" class="tx"><b><?=BOX_HEADING_LANGUAGES?>:</b><br style="line-height:1px"><br style="line-height:5px">

<? // LANGUAGES

if (!isset($lng) || (isset($lng) && !is_object($lng))) {

include(DIR_WS_CLASSES . 'language.php');

$lng = new language;

}

$languages_string = '';

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {

$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>  ';

}

echo $languages_string;

?>

 

</td>

<td><img src="images/m04.gif" alt=""></td>

<td width="19"></td>

<td width="138"><b><span class="tx"><?=BOX_HEADING_CURRENCIES?>:</span></b><br style="line-height:1px"><br style="line-height:5px">

<? // CURRENCIES

 

echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');

 

reset($currencies->currencies);

$currencies_array = array();

while (list($key, $value) = each($currencies->currencies)) {

$currencies_array[] = array('id' => $key, 'text' => $value['title']);

}

 

$hidden_get_variables = '';

reset($HTTP_GET_VARS);

while (list($key, $value) = each($HTTP_GET_VARS)) {

if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {

$hidden_get_variables .= tep_draw_hidden_field($key, $value);

}

}

 

echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit(); "class=se1" style="width:120px"') . $hidden_get_variables . tep_hide_session_id();

echo '</form>';

 

?>

 

</td>

<td><img src="images/m04.gif" alt=""></td>

<td width="21"></td>

<td width="143"><ul><li><a href="<?=tep_href_link('specials.php')?>"><?=BOX_HEADING_SPECIALS?></a></li>

<li><a href="<?=tep_href_link('advanced_search.php')?>"><?=BOX_SEARCH_ADVANCED_SEARCH?></a></li>

<? if (tep_session_is_registered('customer_id')) { ?>

<li><a href="<?=tep_href_link('logoff.php')?>"><?=HEADER_TITLE_LOGOFF?></a></li>

<? } else { ?>

<li><a href="<?=tep_href_link('login.php')?>"><?=HEADER_TITLE_LOGIN?></a></li>

<? } ?>

</ul></td></tr>

<tr><td height="13" colspan="7"></td></tr>

</table>

</td>

<td valign="top"><img src="images/m15.gif" alt=""></td>

<td width="30"></td>

<td width="171" valign="middle" class="tx"><span class="tx1"><?=BOX_HEADING_SHOPPING_CART?></span><br>now in your cart <a class="ml" href="<?=tep_href_link('shopping_cart.php')?>"><?=$cart->count_contents()?> <?=BOX_SHOPPING_CART_EMPTY?></a></td></tr>

</table>

<table border="0" cellspacing="0" cellpadding="0">

<tr><td><a href="<?=tep_href_link('index.php')?>"><?=tep_image('images/m06.jpg');?><?=tep_image('images/m07.jpg');?></a></td>

<td width="1"></td>

<td><?=tep_image('images/m08.gif')?><br><a href="<?=tep_href_link('products_new.php')?>"><?=tep_image_button('m09.gif')?></a><br><a href="<?=tep_href_link('account.php')?>"><?=tep_image_button('m10.gif')?></a><br><a href="<?=tep_href_link('shopping_cart.php')?>"><?=tep_image_button('m11.gif')?></a><br><a href="<?=tep_href_link('checkout_shipping.php')?>"><?=tep_image_button('m12.gif')?></a><br><a href="<?=tep_href_link('contact_us.php')?>"><?=tep_image_button('m13.gif')?></a><br><?=tep_image('images/m14.gif')?></td></tr>

<tr><td height="4" colspan="3"></td></tr>

<tr><td width="680" height="4" class="bg" colspan="3"></td></tr>

<tr><td height="10" colspan="3"></td></tr>

</table>

</td></tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...