burakbarr Posted February 11, 2008 Posted February 11, 2008 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!
Guest Posted February 12, 2008 Posted February 12, 2008 Find in includes column_left.php open it and comment currencies box out like this //require
burakbarr Posted February 12, 2008 Author Posted February 12, 2008 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.
♥geoffreywalton Posted February 12, 2008 Posted February 12, 2008 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 ======>>>>>.
germ Posted February 12, 2008 Posted February 12, 2008 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 >
bigjat69 Posted February 12, 2008 Posted February 12, 2008 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
burakbarr Posted February 13, 2008 Author Posted February 13, 2008 Thanks for your replies :) I will try these and write back my reviews
burakbarr Posted February 13, 2008 Author Posted February 13, 2008 germ, */ and /* did not work , when i added them nothing changed but the text on my site */ and /* :) But when i delete the code that you wrote here, it worked! Many thanks for your help again :)
germ Posted February 13, 2008 Posted February 13, 2008 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.