Forums / Templates, Stylesheets, Page Layout / currency and language at top of page

currency and language at top of page

Locked

Started by merlinof2 on 21 Sep 2009, 11:15 PM · Views: 2,479

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Sep 2009, 11:15 PM
#1
merlinof2 avatar

merlinof2

New Zenner

Join Date:
Mar 2009
Location:
Southern California
Posts:
4
Plugin Contributions:
0

currency and language at top of page

ZenCart ver 1.3.8a with database security patch. This may be a simple question but I've been unable to locate it in the forums or FAQ's with multiple searches.
All I want to do is turn OFF the currency and language choices at the top of the page. This will be an English only site and it's for purchase orders only so currency isn't an issue. I don't even want them to appear at the top of the page.
Is there a way to turn them off or "rem" them out in a file?
Thanks in advance for any assistance.

22 Sep 2009, 1:04 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: currency and language at top of page

merlinof2:

ZenCart ver 1.3.8a with database security patch. This may be a simple question but I've been unable to locate it in the forums or FAQ's with multiple searches.
All I want to do is turn OFF the currency and language choices at the top of the page. This will be an English only site and it's for purchase orders only so currency isn't an issue. I don't even want them to appear at the top of the page.
Is there a way to turn them off or "rem" them out in a file?
Thanks in advance for any assistance.

A default Zen Cart install does not place the currency and language choices at the top of the page. Instead those are placed in sideboxes and can be turned off or on in the Zen Cart admin panel.

A URL to your site would be useful.

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

22 Sep 2009, 6:32 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: currency and language at top of page

Yes, you are using a custom template (possibly TemplateMonster???)

It is likely that the code governing the apperarance of those elements has been embedded in the header file.

look in:

includes/templates/custom_template/common/tpl_header.php .

If you put that file up here (copy the contents) and encase it as PHP code (see the php icon in the editor menu), we can give further advice.

20 years a Zencart User

22 Sep 2009, 7:40 PM
#4
merlinof2 avatar

merlinof2

New Zenner

Join Date:
Mar 2009
Location:
Southern California
Posts:
4
Plugin Contributions:
0

Re: currency and language at top of page

Yes, I am using a template, and I believe it was purchased from TemplateMonster. Here is the "tpl_header.php" file below. I see the portion that displays the currency&language choices, but my meager knowledge of PHP won't allow me to "rem" it out without destroying the page content.. (I tried...).

thanks....

<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div class="main_t"> <div class="main_t_inner1"> <div class="main_t_inner2"> <div class="main_t_inner3"> <div class="header_t"> <div class="row1"> <div class="indent user_menu"> <ul>
	<?php #HEADER LINKS START ?>
            
            <li class="first"><a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li>
            
        <?php if ($_SESSION['customer_id']) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
            <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> 
        <?php
              } else {
                if (STORE_STATUS == '0') {
        ?>
            <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>  
        <?php } } ?>  
        
        <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
            <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
            <li class="last"><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
        <?php } ?>
                
    <?php #HEADER LINKS END ?>
            
          </ul>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div class="main_t_inner4">
      <div class="header_t">
        <div class="row2">
          <div class="col1"><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a><br />
          </div>
          <div class="col2"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '20');?><br />
            <div class="col1"><?php echo BOX_HEADING_CURRENCIES; ?>:<br />
            </div>
            <div class="col2">
<?php echo zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>
 <?php
            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);
                }
              }
            }
        ?>
        <?php echo zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'class="select" onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?>
</form>
            </div>
            <div class="col3"><?php echo BOX_HEADING_LANGUAGES; ?>: </div>
            <div class="col4">
            
						<?php # LANGUAGE START ?>
                            <?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>';
                            }
                            ?>
                        <?php # LANGUAGE END ?>
            
            
            </div>
            <div class="clear"></div>
          </div>
          <div class="clear"></div>
        </div>
        <div class="row3">
          <div class="inner1">
            <div class="inner2">
              <div class="col1">
                <div class="indent h_menu">
                
                
<?php #HEADER START ?>
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
        <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
<?php #HEADER END ?>


                </div>
              </div>
              <div class="col2">
                <div class="indent">
                
                
    <?php 
        if ($_SESSION['cart']->count_contents() == 1) {
            $items = $_SESSION['cart']->count_contents() . ' item';
        } else {
            $items = $_SESSION['cart']->count_contents() . ' items';
        }
    
    ?>
                
                
                
                
                <?php echo BOX_HEADING_SHOPPING_CART; ?>:  <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL');?>"><?php echo $items;?></a><br />
                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
        </div>
        <div class="row4"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '1');?><br /></div>
      </div>
      <div class="content_t">
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <?php } ?>