Post by DaveBunny » Mon Jul 14, 2008 7:46 pm

Hi All,

I'm new to Opencart but loving the flexibility so far. Can anyone offer advice regarding how to add links from the search bar. I've removed the language and curreny box and want to add the following links:

Home
Blog
News
How to Order
Contact

Home and Contact are obviously existing pages, so I have two questions really:

1) How do I link to existing pages

2) How do I link to pages that I create (i'm assuming that I have to create these as information pages?)?

Thanks a million.

Dave

New member

Posts

Joined
Mon Jul 14, 2008 7:32 pm

Post by psionics » Tue Jul 15, 2008 5:19 am

If you want to use "information"(not external link) got find \catalog\template\default\layout.tpl
then move "information" script like this format:

Code: Select all

<div id="column">
    <?php if (isset($information)) { ?>
    <?php echo $information; ?>
    <?php } ?>
    <?php if (isset($cart)) { ?>
    <?php echo $cart; ?>
    <?php } ?>
    <?php if (isset($category)) { ?>
    <?php echo $category; ?>
    <?php } ?>
    <?php if (isset($review)) { ?>
    <?php echo $review; ?>
    <?php } ?>

New member

Posts

Joined
Tue Apr 01, 2008 4:49 pm

Post by manndave » Sat Aug 16, 2008 11:33 pm

Say, how did you remove the currency box from the header?

User avatar
Newbie

Posts

Joined
Sat Aug 16, 2008 9:21 pm
Location - Waco Texas

Post by Qphoria » Sun Aug 17, 2008 2:52 am

Hi Dave, welcome to OpenCart!

Lets take a step back and make sure you are doing it the correct way.....

To properly remove the currency and language boxes, you can goto the Admin section under "Extension->Modules" and disable the currency and language extensions. I'm not sure if that is what you did, but just want to make sure you're not manually editing those out of the tpl files (just adds confusion later)

As far as changing the links in the top navigation bar, Do you mean the top "Home | My Account | Log In | Cart | Checkout" bar? or do you want to add new links to the grayish search bar below it, to the left of the search box? (see attachment)

To change the top header you'd edit: "catalog/template/default/module/header.tpl"
to change the search bar you'd edit: "catalog/template/default/module/search.tpl"

Attachments

???
navbar.JPG

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests