Post by Vicki » Tue Feb 28, 2012 9:59 pm

Hi all,

Id like to add another page to the information footer on my template, i want one called 'links' to simpley add other peoples website links on as a page of interest relating to my business.

I was going to simply copy the terms & conditions tab and rename it to 'links' but im not sure where in the root i should take the info from to create the extra page.

hope that makes sence. i know basics of the root files so if you can show me what files and what to add that will be great.

Also like to appologise if this is already in the forum somewhere but i couldnt see it.

thanks

New member

Posts

Joined
Thu Aug 25, 2011 8:46 pm

Post by MatthewB » Wed Feb 29, 2012 1:12 am

Hi

To add another page to the footer simply go to "Catalog/information" in your admin the click insert and complete the details for your new page.

Matthew


Active Member

Posts

Joined
Sat Jul 23, 2011 5:18 am
Location - Sunderland Tyne and Wear

Post by nudylady » Thu Mar 01, 2012 2:17 am

Vicki wrote:Hi all,
Id like to add another page to the information footer on my template, i want one called 'links' to simpley add other peoples website
thanks
in catalog/view/theme/default/template/common/footer.tpl
add this:
<li><a target="_blank" href="www.other peoples website.com"><?php echo "other peoples website"; ?></li>

New member

Posts

Joined
Sun Feb 19, 2012 12:14 am

Post by nudylady » Thu Mar 01, 2012 2:19 am

I wanted add a_new_page just under Extra in footer. Any one can help me what code should I put inside

\catalog\controller\information\a_new_page.php?

the new page is simple as privacy policy page.

New member

Posts

Joined
Sun Feb 19, 2012 12:14 am

Post by uksitebuilder » Thu Mar 01, 2012 4:31 pm

You should create the new page in your admin Catalog - Information

Give it a sort order of -1 to stop it appearing in the Information column

Make a note of it's information_id number which you should see in your browsers status bar when hovering over the edit link next to it in the list of information pages.

edit catalog/view/theme/default/template/common/footer.tpl

add a new line with the following code wherever you wish it to appear

Code: Select all

<li><a href="<?php echo $this->url->link('information/information', 'information_id=999'); ?>">THE NAME OF THE PAGE</a></li>
edit 999 for the information_id mention above
edit THE NAME OF THE PAGE for the name of the page

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by nudylady » Thu Mar 01, 2012 11:06 pm

uksitebuilder wrote:You should create the new page in your admin Catalog - Information

Give it a sort order of -1 to stop it appearing in the Information column

Make a note of it's information_id number which you should see in your browsers status bar when hovering over the edit link next to it in the list of information pages.

edit catalog/view/theme/default/template/common/footer.tpl

add a new line with the following code wherever you wish it to appear

Code: Select all

<li><a href="<?php echo $this->url->link('information/information', 'information_id=999'); ?>">THE NAME OF THE PAGE</a></li>
edit 999 for the information_id mention above
edit THE NAME OF THE PAGE for the name of the page
This worked like a charm. thanks :crazy:

New member

Posts

Joined
Sun Feb 19, 2012 12:14 am

Post by nudylady » Sun Mar 11, 2012 7:47 pm

Give it a sort order of -1 to stop it appearing in the Information column
I have worked in 1.5.1.3
but not work in 1.5.2. New Page always show.

New member

Posts

Joined
Sun Feb 19, 2012 12:14 am

Post by uksitebuilder » Wed Mar 14, 2012 9:18 pm

For some reason the hiding of pages with a sort order of -1 has been removed in OC 1.5.x

To get it back you will need to mod it See -> http://www.opencart.com/index.php?route ... on_id=5341

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by JohnM » Tue Aug 07, 2012 1:30 am

Pretty cool, but it is then removed from the Site Map, which is not good.

Any other ideas or mod out there for a simple "exclude" command? :-\

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by Digmen1 » Tue Aug 07, 2012 2:12 am

I think Opencart should make Adding and Delete these pages in the footer part of Opencart and very easy.

Simple Options as Add page with a sort order
And
Delete Page.

Active Member

Posts

Joined
Wed Apr 11, 2012 6:50 am

Who is online

Users browsing this forum: Bing [Bot] and 21 guests