Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove currencies box


burakbarr

Recommended Posts

Hi,

 

I hide prices from my site so currencies box is unnecessary for me.

 

But i couldnt find how to remove it.It is not included in column_left or right (because i tried to find codes in it which people wrote on forum to remove the box)

 

It can be in application_top file , there are some codes about currency and i tried to remove it from here but when I do this my site was crashed.

 

Please help me about it.

 

Thanks!

Link to comment
Share on other sites

Find in includes column_left.php

 

open it and comment currencies box out like this //require

 

As I said in my first message, it is not included in column_right or column_left.php. Maybe it can be in application_top.php but when i tried to put // here to remove the box, my site was crashed.

Link to comment
Share on other sites

This link covers how to remove a box

 

http://www.oscommerce.info/kb/osCommerce/C..._Area/Boxes/260

 

You could apply it to your currency box problem.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

In your header.php file find this code:

 

						   <td><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></td>
						<td>  <strong><b><?=BOX_HEADING_CURRENCIES?>:</b></strong><br>
<form action=""><table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<? // 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="se"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>	 
</td></tr>
</table></form></td>

Change it to this:

 

/*
					   <td><?php echo tep_draw_separator('spacer.gif', '1', '1'); ?></td>
						<td>  <strong><b><?=BOX_HEADING_CURRENCIES?>:</b></strong><br>
<form action=""><table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<? // 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="se"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>	 
</td></tr>
</table></form></td>
*/

I just added /* before the code, and */ after it.

 

All this does is just "comment out" (tell the PHP interpreter to ignore) this section of code. That way you can "uncomment it" later to add it back if you want.

 

burkabarr, you have a special template installed with your osC, so many things that apply to a "standard" osC install won't apply for you.

 

This is one of them.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

in the file

 

catalog/includes/column_right.php

 

edit

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

 

to

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

//include(DIR_WS_BOXES . 'currencies.php');

 

 

Hope that helps

 

Regards web-junkies

Link to comment
Share on other sites

You must have gotten the two mixed up, 'cuz I comment out code like that all the time.

 

Oh, well...

 

Whatever works...

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...