Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hiding currency drop down menu


uo55

Recommended Posts

Hi,

 

I have looked at instructions on how to hide the currency drop down menu at the top of my website but nothing is working. I would like to know if anyone out there can tell by my code how to do this?

 

:D

 

<!-- start -->

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>

</tr>

</table>

<?php

}

?>

<!-- start -->

<div class="bg_body">

<table cellpadding="0" cellspacing="0" border="0" align="center" class="width_table">

<tr><td class="width_td">

 

 

<table cellpadding="0" cellspacing="0" border="0" align="center" style="height:100%;">

<tr><td class="row_1">

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

<tr>

<td class="logo"><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'logo.gif')?></a></td>

<td style="width:100%;padding:0px 0px 0px 0px;">

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

<tr>

<td style="padding:36px 1px 0px 1px;background:url(images/flag_bg.gif) center 0px no-repeat;">

<!-- <table cellpadding="0" cellspacing="0" border="0" style="width:56px; height:44px; text-align:center;">

<tr><td> <?php

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

include(DIR_WS_CLASSES . 'language.php');

$lng = new language;

}

$languages_string = '';

reset($lng->catalog_languages);

$i = 0;

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

if ($i) $languages_string .= '<br />'.tep_draw_separator('spacer.gif', '1', '2').'<br />';

$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>';

$i++;

}

echo $languages_string;

?></td></tr>

</table> -->

</td>

<td style="width:100%;">

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

<tr><td class="navigation"><span><a href="<?php echo tep_href_link('advanced_search.php')?>"><?php // echo /BOX_SEARCH_ADVANCED_SEARCH?></a>   |   <a href="<?php echo tep_href_link('reviews.php')?>"><?php echo BOX_HEADING_REVIEWS?></a>     |     <a href="<?php echo tep_href_link('checkout_shipping.php')?>"><?php echo HEADER_TITLE_CHECKOUT?></a>   |   <? if (tep_session_is_registered('customer_id')) {

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

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

?></span></td></tr>

<tr><td style="vertical-align:middle;padding:8px 2px 0px 0px;">

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

<tr>

<td><?php

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="select"') . $hidden_get_variables . tep_hide_session_id();

echo '</form>';

?></td>

<td style=" vertical-align:middle;"><?php echo tep_image(DIR_WS_IMAGES.'part2.gif')?></td>

<td style=" vertical-align:middle; text-align:right">

<table cellpadding="0" cellspacing="0" border="0" align="right" style="width:185px;" class="z1">

<tr><td><?php echo BOX_SHOPPING_NOW;?>: <a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY?></a></td></tr>

</table>

</td>

</tr>

</table>

</td></tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</table><div class="hline_bg_rep">

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

<tr><td class="hline_bg_left"><?php echo tep_draw_separator('spacer.gif', '1', '4'); ?></td></tr>

</table></div><div class="menu">

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

<tr><td class="menu_left">

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

<tr>

<td><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image_button('m1.gif')?></a></td>

<td class="menu_separator"><?php // echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td><a href="<?php echo tep_href_link('products_new.php')?>"><?php // echo tep_image_button('m2.gif')?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td><a href="<?php echo tep_href_link('specials.php')?>"><?php echo tep_image_button('m3.gif')?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td><a href="<?php echo tep_href_link('account.php')?>"><?php echo tep_image_button('m4.gif')?></a></td>

<td class="menu_separator"><?php echo tep_image(DIR_WS_IMAGES.'menu_separator.gif')?></td>

<td><a href="<?php echo tep_href_link('contact_us.php')?>"><?php echo tep_image_button('m5.gif')?></a></td>

 

</tr>

</table>

</td></tr>

</table></div>

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

<tr><td style="width:100%"><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></td>

<td><?php if ($banner = tep_banner_exists('dynamic', 'banner2')) { echo tep_display_banner('static', $banner); }?></td>

<td><?php if ($banner = tep_banner_exists('dynamic', 'banner3')) { echo tep_display_banner('static', $banner); }?></td>

<td><?php if ($banner = tep_banner_exists('dynamic', 'banner4')) { echo tep_display_banner('static', $banner); }?></td>

</tr>

</table>

 

 

</td></tr>

<tr><td class="row_2">

Link to comment
Share on other sites

edit column_right.php and comment out:

 

include(DIR_WS_BOXES . 'currencies.php');

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Remove this code

 

<?php 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="select"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>

Link to comment
Share on other sites

You don't need to remove anything. Do as spooks said. For other similar questions (this one you ask is post #5) read the How do I ...

 

They asked how to hide it from the top of their site and the code posted is header.php. As posted it seems to have nothing to do with the column.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...