Results 1 to 10 of 16

Threaded View

  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.

 

 

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

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