Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Removing Storefront Top Sub Menu  (Read 10022 times)

Offline familyfirstom

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Removing Storefront Top Sub Menu
« on: February 19, 2013, 03:12:06 AM »
I want to get rid of the Special Offers / Bookmarks / Sitemap / Keywords buttons at the top of the default template but can't find where to remove these in any of the admin options. Can someone please direct me as to where these are located?
« Last Edit: February 19, 2013, 04:27:53 AM by abantecart »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4153
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Removing Top Menu
« Reply #1 on: February 19, 2013, 04:27:16 AM »
This is in the template file: storefront/view/default/template/common/header.tpl

Look at these lines:

Code: [Select]
          <li><a href="<?php echo $special?>" class="special"><?php echo $text_special?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a onclick="bookmark(document.location, '<?php echo addslashes($title); ?>');" class="bookmark"><?php echo $text_bookmark?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a href="<?php echo $contact?>" class="contact"><?php echo $text_contact?></a></li>
          <li class="nav_sep">&nbsp;</li>
          <li><a href="<?php echo $sitemap?>" class="sitemap"><?php echo $text_sitemap?></a></li>
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline rmurrell34608

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Removing Storefront Top Sub Menu
« Reply #2 on: February 22, 2013, 07:59:33 AM »
I was just wondering how to add links to this menu, I would like to add account and login links, but when I add the links just goes to home page - here is the code I am trying to use - <li><a href="<?php echo $account; ?>" class="account"><?php echo $text_account; ?></a></li> - not sure what link should be for this or if it is possible.  Any help would be greatly appreciated.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4153
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Removing Storefront Top Sub Menu
« Reply #3 on: February 22, 2013, 09:20:06 AM »
If you need to add link, you can do this 2 ways.

1. Use variable with the code that you created, but you need to add value to in in the controller.
in the template /storefront/view/default/template/common/header.tp:

Code: [Select]
<li><a href="<?php echo $account?>"><?php echo $text_account?></a></li>

in controller /storefront/controller/common/header.php:
Add:

Code: [Select]
$this->data['text_account'] = $this->language->get('text_account');
$this->data['account'] = $this->html->getURL('account/account');

2. Add relative portion of URL to the template (lazy way :) )
Code: [Select]
<li><a href="/index.php?rt=account/account">My Account</a></li>

FYI. For blue menu above, you can add link using admin -> menu without any code changes.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline iStuck

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Removing Storefront Top Sub Menu
« Reply #4 on: May 04, 2013, 11:21:15 AM »
I want to get rid of the Special Offers / Bookmarks / Sitemap / Keywords buttons at the top of the default template but can't find where to remove these in any of the admin options. Can someone please direct me as to where these are located?

How do you remove this from the additional free theme ?

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4153
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Removing Storefront Top Sub Menu
« Reply #5 on: May 04, 2013, 03:26:42 PM »
In template2 extension edit below file:

Code: [Select]
extensions/template2/storefront/view/template2/template/common/header.tpl
Locate code
Code: [Select]
      <div class="flt_left">
        <ul id="info_links">
          <li><a href="<?php echo $special?>" class="special"><?php echo $text_special?></a></li>
          <li><a href="<?php echo $contact?>" class="contact"><?php echo $text_contact?></a></li>
          <li><a href="<?php echo $sitemap?>" class="sitemap"><?php echo $text_sitemap?></a></li>
        </ul>
      </div>
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

 

Powered by SMFPacks Social Login Mod