Post by harmonymusic » Sat Feb 11, 2012 7:34 am

Hi guys! New to the forum, have a few problems.
The main one - info pages linked to the top menu - could you please post the full solution.
I'd like to have buttons in the top menu for the pages like "about". We have service departments without "items for sale", so I'd like them look like info pages (no price, qty, etc.), but to be accessible from the top menu bar(I would also move the "home" link there, but don't know how...)
Thanks a lot!

New member

Posts

Joined
Sat Feb 11, 2012 1:29 am

Post by JAY6390 » Sat Feb 11, 2012 9:49 pm

"could you please post the full solution" are you serious? That is custom to your site, and to your theme, and you'd be lucky to find anyone that will just do that for you for free

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by labeshops » Sat Feb 11, 2012 9:58 pm

I have posted example code before to manually code your menu bar. You might try a search for my posts.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by harmonymusic » Sun Feb 12, 2012 2:57 am

JAY6390 wrote:"could you please post the full solution" are you serious? That is custom to your site, and to your theme, and you'd be lucky to find anyone that will just do that for you for free
I didn't ask to customize my site, I'm not dumb... I just asked for help to link the page to the menu bar...

New member

Posts

Joined
Sat Feb 11, 2012 1:29 am

Post by harmonymusic » Sun Feb 12, 2012 3:17 am

labeshops wrote:I have posted example code before to manually code your menu bar. You might try a search for my posts.
Thanks a lot! Great forum! I've found it. It's manually managed, but will work fine for me. Do you know if there is any option of the auto generated call ? Thanks again.

New member

Posts

Joined
Sat Feb 11, 2012 1:29 am

Post by harmonymusic » Sun Feb 12, 2012 4:21 am

One more thing. You can combine manually and auto generated options by adding your "<li>s" into original code in the place and order you need:

Code: Select all

<div id="menu">
  <ul>
<!--manually -->
   <li><a href="/index.php?route=common/home">Home</a></li>
<!-- auto generated  -->
    <?php foreach ($categories as $category) { ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
      <?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>
    </li>
    <?php } ?>
 <!--manually -->
   <li><a href="/index.php?route=information/information&information_id=4">About Us</a></li>
  </ul>
</div>
Thanks again labeshops ! It's exactly what I needed! You made my day!

New member

Posts

Joined
Sat Feb 11, 2012 1:29 am

Post by mandamexico » Sat Mar 17, 2012 4:42 am

how can i make it change to a different language when selecting to switch?

example english: About Us
example spanish: De Nosotros

My Extensions

OpenCart Developer (OCD) Tools

Donate - If I ever helped you.


User avatar
Active Member

Posts

Joined
Mon Jun 29, 2009 10:14 am
Location - Los Angeles, CA

Post by arames » Fri Mar 30, 2012 9:45 am

Has anybody a solution for different languages in the Top Menu??

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm

Post by inspirio » Fri Mar 30, 2012 1:33 pm

I remixed my store to only catalog mode:

www.lipnenski-bg.com/opencart

See the top header link bar - is this that you want?????

Image


User avatar
New member

Posts

Joined
Fri Feb 17, 2012 9:11 pm

Post by arames » Fri Mar 30, 2012 6:17 pm

Very cool design inspirio!

Wish I could speak Bulgarish :)

What I want, and I think what everybody else wants is to simply see the INFORMATION Menu that is in the footer to show in the Top Menu Bar:

About Us
Delivery Information
Privacy Policy
Terms & Conditions


Of course we do NOT want to add static links, because we want these links to show the text in Different Language in the Top Menu, just as they show up in the footer in different language.

Warmest regards,
Arames T.

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm

Post by arames » Sat Apr 07, 2012 6:46 am

I think we have finally the answer:
http://www.opencart.com/index.php?route ... on_id=5839

We can change this post to RESOLVED O0

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm
Who is online

Users browsing this forum: No registered users and 22 guests