Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default 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...

    HTML Code:
    <?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..

    HTML Code:
    $show_languages= true;   
    TO -->  
    $show_languages= false;
    HTML Code:
    if ($show_languages == true) {
    TO -->  
    if ($show_languages == false) {
    But that didnt work....
    Last edited by dddmx3; 24 Jul 2010 at 03:51 AM.

  2. #2
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default 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.

  4. #4
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Remove language and currency boxes

    www.lfswear.com

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

  5. #5
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Remove language and currency boxes

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

  6. #6
    Join Date
    Jan 2010
    Location
    Broome
    Posts
    325
    Plugin Contributions
    0

    Default 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?

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,163
    Plugin Contributions
    11

    Default 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;
    }
    */

  8. #8
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Remove language and currency boxes

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

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,163
    Plugin Contributions
    11

    Default 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.

  10. #10
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: Remove language and currency boxes

    I did do that
    Posted via Mobile Device

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Currency and Language display
    By Athens Collectibles in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Mar 2012, 08:38 PM
  2. How To Remove Drop Down Currency and Language Flags?
    By smiffy12 in forum General Questions
    Replies: 1
    Last Post: 4 Mar 2011, 03:50 PM
  3. how can i remove search box,language and currency in header
    By louisapple in forum Basic Configuration
    Replies: 7
    Last Post: 3 May 2010, 01:39 AM
  4. Hide currency & language drop down boxes?
    By pharry in forum General Questions
    Replies: 4
    Last Post: 2 Jul 2009, 05:15 PM
  5. Remove Currencies & language boxes
    By susanshropshire in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 May 2009, 04:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR