Jump to content
Sign in to follow this  
flagman86

Как в шапке убрать некоторые ссылки: Заметки, корзина покупок

Recommended Posts

Сайт gytalin.ru мешают ссылки в шапке: Заметки и Корзина покупок. Как их убрать?  Шаблон Shopica2

Share this post


Link to post
Share on other sites

убираются в файле /catalog/view/theme/ваша_тема/common/header.tpl

  • +1 1

Share this post


Link to post
Share on other sites

Что именно убрать? а то я не особо силен. Вот так выглядит хедер:

 

 

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<?php echo $tbData->base_httpsIf; ?>" />
<?php if ($keywords): ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php endif; ?>
<?php if ($description): ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php endif; ?>
<?php require TB_Utils::vqmodCheck('catalog/view/theme/' . $this->config->get('config_template') . '/template/tb/header.tpl'); ?>
<?php if ($icon): ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php endif; ?>
<?php foreach ($links as $link): ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php endforeach; ?>
<?php foreach ($styles as $style): ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php endforeach; ?>
<?php foreach ($scripts as $script): ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php endforeach; ?>
<?php echo $google_analytics; ?>
<script type="text/javascript" src="catalog/view/javascript/scrolltopcontrol/scrolltopcontrol.js"></script>
</script>
<!-- JV_Quick_Order -->
<script type="text/javascript" src="catalog/view/javascript/jv_quickorder/jquery.validate.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jv_quickorder/jv_quickorder.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jv_bootstrap/bootstrap.min.js"></script>
<!-- JV_Quick_Order -->
 
<script language="JavaScript" type="text/javascript">
var go_down = jQuery('body');
jQuery(function() {
  $("#Go_Top").hide().removeAttr("href");
  if ($(window).scrollTop() >= "250") $("#Go_Top").fadeIn("slow")
  var scrollDiv = $("#Go_Top");
  $(window).scroll(function() {
   if ($(window).scrollTop() <= "250") $(scrollDiv).fadeOut("slow")
   else $(scrollDiv).fadeIn("slow")
  });
 
  $("#Go_Bottom").hide().removeAttr("href");
  if ($(window).scrollTop() <= go_down.height()-"999") $("#Go_Bottom").fadeIn("slow")
  var scrollDiv_2 = $("#Go_Bottom");
  $(window).scroll(function() {
   if ($(window).scrollTop() >= go_down.height()-"999") $(scrollDiv_2).fadeOut("slow")
   else $(scrollDiv_2).fadeIn("slow")
  });
 
  $("#Go_Top").click(function() {
   $("html, body").animate({scrollTop: 0}, "slow")
  })
  $("#Go_Bottom").click(function() {
   $("html, body").animate({scrollTop: go_down.height()}, "slow")
  })
});
</script>
</head>
 
<body class="<?php echo 's_layout_' . $tbData->common['layout_type']; ?><?php if (!$tbData->right_column_empty) { echo ' s_2_cols'; } else { echo ' s_single_col'; } ?> s_page_<?php echo str_replace('/', '_', $this->request->get['route']); ?>">
 
<?php if($tbData->footerInfo['facebook_enabled'] == '1') require TB_Utils::vqmodCheck('catalog/view/theme/' . $this->config->get('config_template') . '/template/tb/header_facebook.tpl'); ?>
<?php echo $tbData->schemerHTML; ?>
 
<div id="wrapper">
 
  <!-- ---------------------- -->
  <!--      H E A D E R       -->
  <!-- ---------------------- -->
  <div id="header" class="s_row clearfix">
    <div class="s_wrap">
      <div class="s_col_12">
 <div id="address-data">
    <?php if (($this->config->get('config_display_address') == 1) || ($this->config->get('config_display_telephone') == 1) || ($this->config->get('config_display_fax') == 1) || ($this->config->get('config_display_email') == 1)) { ?>
  <div class="address-data-header"><?php echo $address_data; ?></div>
<?php } ?>
<?php if ($this->config->get('config_display_address') == 1) { ?>
  <?php echo $address; ?><br />
<?php } ?>
<?php if ($this->config->get('config_display_telephone') == 1) { ?>
  <b><i><?php echo $text_telephone; ?></i></b>
  <font color="#4cb2cb" size="12"><b><?php echo $telephone; ?></b></font>
<?php } ?>
<?php if ($this->config->get('config_display_fax') == 1) { ?>
  <br /><b><i><?php echo $text_fax; ?></i></b>
  <?php echo $fax; ?>
<?php } ?>
<?php if ($this->config->get('config_display_email') == 1) { ?>
  <br /><b><i><?php echo $text_email; ?></i>
 <?php echo $email; ?>
<?php } ?>
  </div>
        <?php if ($logo): ?>
        <a id="site_logo" href="<?php echo $tbData->base_http; ?>">
          <img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" />
        </a>
        <?php endif; ?>
        <div id="top_navigation" class="s_<?php echo $tbData->common['show_search_bar'] ? 'static' : 'dynamic' ?>">
 
          <?php $tbSlot->start('common\header.search_bar'); ?>
          <?php if ($tbData->common['show_search_bar']): ?>
          <div id="site_search">
            <input id="filter_keyword" type="text" name="filter_name"<?php if ($filter_name): ?> value="<?php echo $filter_name; ?>"<?php endif; ?> title="<?php echo $text_search; ?>" />
            <a id="search_button" class="s_search_button" href="javascript:;" title="<?php echo $text_search; ?>"></a>
          </div>
          <?php else: ?>
          <div id="site_search">
            <a id="show_search" class="s_search_button" href="javascript:;" title="<?php echo $text_search; ?>"></a>
            <div id="search_bar" class="clearfix">
              <input id="filter_keyword" type="text" name="filter_name"<?php if ($filter_name): ?> value="<?php echo $filter_name; ?>"<?php endif; ?> title="<?php echo $text_search; ?>" />
              <a id="search_button" class="s_button_1 s_button_1_small s_secondary_color_bgr"><span class="s_text"><?php echo $text_search; ?></span></a>
            </div>
          </div>
          <?php endif; ?>
          <?php $tbSlot->stop(); ?>
 
         <?php echo $currency; ?>
        </div>
        <div id="system_navigation">
          <?php if ($tbData->common['cart_menu_position'] == 'above' && $tbData->common['checkout_enabled']): ?>
          <?php $cart_contents = $tbData->getCartContents(); ?>
          <div id="cart_menu" class="s_nav">
            <a href="<?php echo $shopping_cart; ?>">
              <span class="s_icon"></span>
              <?php if ($tbData->common['show_cart_label'] == '1'): ?>
              <small class="s_text"><?php echo $tbData->text_cart;?></small>
              <?php endif; ?>
              <span class="s_grand_total s_main_color"><?php echo strip_tags($cart_contents['total_sum']); ?></span>
            </a>
            <div class="s_submenu s_cart_holder">
              <?php echo $cart_contents['html']; ?>
            </div>
          </div>
          <?php endif; ?>
          <p id="welcome_message">
            <?php if (!$logged) echo $text_welcome; else echo $text_logged; ?>
          </p>
          <ul class="s_list_1">
            <?php if ($tbData->common['wishlist_enabled']): ?>
            <li><a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a></li>
            <?php endif; ?>
            <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
            <?php if ($tbData->common['checkout_enabled']): ?>
            <li><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a></li>
            <li><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></li>
            <?php endif; ?>
          </ul>
        </div>
  
      </div>
     
    </div>
  </div>
  <!-- end of header -->
 
<!--
  <!-- ---------------------- -->
  <!--    M A I N   N A V     -->
  <!-- ---------------------- --> 
 <div id="main_navigation" class="s_row">
    <div class="s_wrap">
      <div class="s_col_12">
 
        <div id="categories" class="s_nav">
         <?php echo $tbData->menuHTML; ?>
        </div>
 
        <?php if ($tbData->common['cart_menu_position'] == 'right' && $tbData->common['checkout_enabled']): ?>
        <?php $cart_contents = $tbData->getCartContents(); ?>
        <div id="cart_menu" class="s_nav">
          <a href="<?php echo $shopping_cart; ?>">
            <span class="s_icon"></span>
            <?php if ($tbData->common['show_cart_label'] == '1'): ?>
            <small class="s_text"><?php echo $tbData->text_cart;?></small>
            <?php endif; ?>
            <span class="s_grand_total s_main_color"><?php echo strip_tags($cart_contents['total_sum']); ?></span>
          </a>
          <div class="s_submenu s_cart_holder">
            <?php echo $cart_contents['html']; ?>
          </div>
        </div>
        <?php endif; ?>
        
      </div>
    </div>
  </div>
  <!-- end of main navigation -->
 
  <?php if (isset($common_error)): ?>
  <!-- ---------------------- -->
  <!--  S E R V E R   M S G   -->
  <!-- ---------------------- -->
  <div class="s_row">
    <div class="s_wrap">
      <div class="s_server_msg">
        <?php echo $common_error; ?>
      </div>
    </div>
  </div>
  <!-- end of server messages -->
  <?php endif; ?>

Share this post


Link to post
Share on other sites

Вот эта строка: <li><a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a></li> - это Заметки

вот эта: <li><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a></li> - это Корзина покупок

 

удалите или закоментируйте эти две строки

Edited by jdeac
  • +1 1

Share this post


Link to post
Share on other sites

Огромное спасибо!!!

Может еще подскажите как закомментировать верхнее меню  навигации? а то меню и слева и сверху очень много, хочу верхнее скрыть. Если просто в категориях убрать галки "выводить в главном меню", то в навигации всеравно остается пункт Информация и На Главную =(

Share this post


Link to post
Share on other sites

пришлите содержимое файла /catalog/view/theme/ваша_тема/common/header.tpl

 

извиняюсь... выше есть ))) совсем заработался

Edited by jdeac

Share this post


Link to post
Share on other sites

вот этот код отвечает за навигацию:

 <!--    M A I N   N A V     -->
  <!-- ---------------------- --> 
 <div id="main_navigation" class="s_row">
    <div class="s_wrap">
      <div class="s_col_12">
 
        <div id="categories" class="s_nav">
         <?php echo $tbData->menuHTML; ?>
        </div>
 
        <?php if ($tbData->common['cart_menu_position'] == 'right' && $tbData->common['checkout_enabled']): ?>
        <?php $cart_contents = $tbData->getCartContents(); ?>
        <div id="cart_menu" class="s_nav">
          <a href="<?php echo $shopping_cart; ?>">
            <span class="s_icon"></span>
            <?php if ($tbData->common['show_cart_label'] == '1'): ?>
            <small class="s_text"><?php echo $tbData->text_cart;?></small>
            <?php endif; ?>
            <span class="s_grand_total s_main_color"><?php echo strip_tags($cart_contents['total_sum']); ?></span>
          </a>
          <div class="s_submenu s_cart_holder">
            <?php echo $cart_contents['html']; ?>
          </div>
        </div>
        <?php endif; ?>
        
      </div>
    </div>
  </div>
  <!-- end of main navigation -->
  • +1 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.