Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove language and currency boxes

Remove language and currency boxes

Locked

Views: 3,506

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
24 Jul 2010, 2:47 AM
#1
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Remove language and currency boxes

I cant figure out how to remove either of the language or currency boxes..

Here whats inside my tpl_header_languages.php file...

<?php
/**
 * languages sidebox - allows customer to select from available languages installed on your site
 */

// test if box should display
  $show_languages= true;


  if ($show_languages == true) {
    if (!isset($lng) || (isset($lng) && !is_object($lng))) {
      $lng = new language;
    }

    reset($lng->catalog_languages);
  }
  
      $lang_array = array();
	  while (list($key, $value) = each($lng->catalog_languages)) {
        $lang_array[] = array('id' => $key, 'text' => $value['name']);
      }
      $hidden_get_variables = '';
      reset($_GET);

      while (list($key, $value) = each($_GET)) {
        if ( ($key != 'language') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
        }
      }

	$content = "";
    $content .= zen_draw_form('lang_form', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get');
    $content .= zen_draw_pull_down_menu('language', $lang_array, $_SESSION['languages_code'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
    $content .= '</form>';



?>

I already tried changing..

$show_languages= true;   
TO -->  
$show_languages= false; 
if ($show_languages == true) {
TO -->  
if ($show_languages == false) {

But that didnt work.... :(

24 Jul 2010, 4:10 AM
#2
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Remove language and currency boxes

Admin>Tools>Layout Box Controller .. look for sideboxes/languages.php ... click on the green e .. click the edit box .. turn everything off and click update.

Same goes for currency.

24 Jul 2010, 1:19 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove language and currency boxes

Language and Currency don't display in the header of a stock Zencart store, so you've installed a mod or a purchased template. A link to your site would help.

25 Jul 2010, 1:41 AM
#4
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Remove language and currency boxes

https://www.lfswear.com

I'll login into my admin area and do that. Brb..

25 Jul 2010, 1:43 AM
#5
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Remove language and currency boxes

When I logged into my admin place, Everything was OFF anyways....

25 Jul 2010, 2:01 AM
#6
wotnow avatar

wotnow

Zen Follower

Join Date:
Jan 2010
Location:
Broome
Posts:
331
Plugin Contributions:
0

Re: Remove language and currency boxes

Sorry didnt realise you were talking about the header .. thought you meant the sideboxes. Dont know this template .. which one are you using?

25 Jul 2010, 2:42 AM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove language and currency boxes

Is using pure_black

try going into the stylesheet.css and adding .languages-wrapper{display: none;} BEFORE the current call at line 587.

If that works, it would be a good idea to comment out the call at line 587. Change > .languages-wrapper select, .languages-wrapper {

font: 11px tahoma, arial !important;

}
.languages-wrapper select {
height: 18px;
}
.languages-wrapper form {
float: right;
}
.languages-wrapper label {
padding: 3px 0;
line-height: 17px !important;
}to
/
.languages-wrapper select, .languages-wrapper {
font: 11px tahoma, arial !important;
}
.languages-wrapper select {
height: 18px;
}
.languages-wrapper form {
float: right;
}
.languages-wrapper label {
padding: 3px 0;
line-height: 17px !important;
}
/

25 Jul 2010, 7:59 PM
#8
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Remove language and currency boxes

It didnt work, but go onto https://www.lfswear.com and see what it did.. It just kinda messed it up.

25 Jul 2010, 8:11 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove language and currency boxes

Looks like you didn't do this > try going into the stylesheet.css and adding .languages-wrapper {display: none;} BEFORE the current call at line 587.

25 Jul 2010, 11:03 PM
#10
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Remove language and currency boxes

I did do that
Posted via Mobile Device

25 Jul 2010, 11:13 PM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove language and currency boxes

The div is still showing on your page so it may be in another css or later in the existing.

26 Jul 2010, 4:59 AM
#12
dddmx3 avatar

dddmx3

Zen Follower

Join Date:
Jul 2010
Location:
Battle Ground, WA
Posts:
282
Plugin Contributions:
0

Re: Remove language and currency boxes

dbltoe:

is using pure_black

try going into the stylesheet.css and adding .languages-wrapper{display: None;} before the current call at line 587.

If that works, it would be a good idea to comment out the call at line 587. Change to

you were right!! I didnt read your whole message!! I just did the /* and */ thank you thank you thank you!

26 Jul 2010, 6:39 AM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Remove language and currency boxes

Glad you got it going.:clap:

18 Aug 2010, 11:26 AM
#14
kaafum avatar

kaafum

New Zenner

Join Date:
Oct 2009
Posts:
55
Plugin Contributions:
0

Re: Remove language and currency boxes

dbltoe:

Is using pure_black

try going into the stylesheet.css and adding .languages-wrapper{display: none;} BEFORE the current call at line 587.

If that works, it would be a good idea to comment out the call at line 587. Change to

I have the same problem. I had a template implemented and now I am also trying to get rid of the currency and the language boxes. But I can't find the above text in my stylesheet. The only thing I do find is the following text. Can someone please tell me what to amend here? I don't want to delete the shopping cart however.

#headerShoppingCartWrapper, #headerCurrencyWrapper, #headerLanguagesWrapper{ float: right; color: #87c4ff; font-size: 12px; margin: 3px 10px; clear: right; line-height: 20px; }

#headerShoppingCartWrapper{ background: #1e4a7c url(../images/shopping_cart_bg.gif) no-repeat; padding-left:55px; height: 35px; padding-top:10px; margin-right: 20px; padding-right:20px; font-weight: bold;}

#headerShoppingCartWrapper a:hover{color: #87c4ff;}

#headerShoppingCartWrapper a{color: #ffffff;}

18 Aug 2010, 12:44 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove language and currency boxes

Add to your stylesheet just below the lines you quote

#headerCurrencyWrapper, #headerLanguagesWrapper{display: none;}

If that doesn't work, we will need to see your site live to give correct advice.

18 Aug 2010, 1:42 PM
#16
kaafum avatar

kaafum

New Zenner

Join Date:
Oct 2009
Posts:
55
Plugin Contributions:
0

Re: Remove language and currency boxes

That was just a sublime piece of advice... many thanks :clap: