Forums / Templates, Stylesheets, Page Layout / Removal of Language and Currency from your top menu bar.

Removal of Language and Currency from your top menu bar.

Started by charles_persinger on 30 Nov 2013, 7:43 PM · Views: 1,392

Results 1 to 3 of 3
30 Nov 2013, 7:43 PM
#1
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Removal of Language and Currency from your top menu bar.

After plenty of searching I was finally able to remove the Language (and flag) and currency from my top menu bar. Delete or rem out the below from your tpl_header.php. Of course use the override system. While I'm a bit slow I figured if I had trouble finding a solution then someone else might also be having issues so...

<div class="nav_language">
               <?php echo BOX_HEADING_LANGUAGES ?> 
           
                <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) {
                    $lng = new language;
                  }
                
                  reset($lng->catalog_languages);
                
                  while (list($key, $value) = each($lng->catalog_languages)) {
                    echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a> ';
                  }
                 ?>
                 
                

            </div>  <!-- nav_language -->
            
            <div class="nav_currencies">
                

            
                <?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>

                <?
                
                    if (isset($currencies) && is_object($currencies)) {
                
                      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($_GET);
                      while (list($key, $value) = each($_GET)) {
                        if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
                          $hidden_get_variables .= zen_draw_hidden_field($key, $value);
                        }
                      }
                    }
                
                ?><?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], ' onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?></form>

            </div> <!-- nav_currencies -->
            
            

             <div class="clearBoth"></div>
1 Dec 2013, 12:32 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Removal of Language and Currency from your top menu bar.

Looks like a customized template (Template MOnster????).

Simplest way:

In your customized stylesheet find .nav_language and .nav_currencies and add {display: none;} to each of them.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

1 Dec 2013, 2:30 AM
#3
charles_persinger avatar

charles_persinger

New Zenner

Join Date:
Nov 2013
Location:
Charleston, WV
Posts:
12
Plugin Contributions:
0

Re: Removal of Language and Currency from your top menu bar.

Yup. Template from Zenflavor.