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
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
in catalog/view/theme/default/template/common/footer.tplVicki 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
add this:
<li><a target="_blank" href="www.other peoples website.com"><?php echo "other peoples website"; ?></li>
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
edit 999 for the information_id mention above
edit THE NAME OF THE PAGE for the name of the page
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 THE NAME OF THE PAGE for the name of the page
This worked like a charm. thanksuksitebuilder 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
edit 999 for the information_id mention aboveCode: Select all
<li><a href="<?php echo $this->url->link('information/information', 'information_id=999'); ?>">THE NAME OF THE PAGE</a></li>
edit THE NAME OF THE PAGE for the name of the page

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
To get it back you will need to mod it See -> http://www.opencart.com/index.php?route ... on_id=5341
Who is online
Users browsing this forum: No registered users and 21 guests