Page 1 of 2

SOLVED - Insert New Page in Customer Service section v1.5.1

Posted: Tue Aug 09, 2011 3:57 am
by CamboKev
V1.5.1, clean install.

Hi there. I can see how to insert new pages into the Information section. Is there an easy way to insert new pages into the Customer Service Section.

Thanks for looking Opencarters ;D

Re: Insert New Page in Customer Service section v1.5.1

Posted: Tue Aug 09, 2011 4:10 am
by uksitebuilder
Create an info page and give it a -1 sort order

Manually edit your catalog/view/theme/default/template/common/footer.tpl and add a html link to your new info page under the Customer Service section

Re: Insert New Page in Customer Service section v1.5.1

Posted: Tue Aug 09, 2011 4:44 am
by CamboKev
genius!
slight tweak if poss...
do you know how i can amend the text 'Returns' so it reads 'Returns Form'...the php calls $text_return...

<li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>

much appreciated!

Re: Insert New Page in Customer Service section v1.5.1

Posted: Tue Aug 09, 2011 5:32 am
by uksitebuilder
catalog/language/english/common/footer.php

Re: Insert New Page in Customer Service section v1.5.1

Posted: Tue Aug 09, 2011 6:16 am
by CamboKev
super O0

SOLVED - Insert New Page in Customer Service section v1.5.1

Posted: Tue Sep 13, 2011 4:19 am
by CamboKev
O0

Re: Insert New Page in Customer Service section v1.5.1

Posted: Tue Nov 01, 2011 11:13 pm
by pitkin2020
nice tip, very easy to add new pages under different headings, thanks

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Apr 24, 2012 11:58 pm
by TAC
Hi uksitebuilder,

Forgive me for asking a dumb question but how do I
Manually edit your catalog/view/theme/default/template/common/footer.tpl and add a html link to your new info page under the Customer Service section
I mean how do I write the html link?

I tried a few things but nothing worked. The test site is http://www.chocolatemadcowes.co.uk/CMC/ and the page I want to move to the Cusotmer Service menu is 'Visit Cowes Shop'

v1.5.1.3

Thank you :)

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Wed Aug 15, 2012 9:25 pm
by DesktopNev
"Create an info page and give it a -1 sort order"

in Version 1.5.2.1 this doesn't remove the page from the information section.

I have added manual links in footer.tpl which now results in a duplicate page.

i've tried changing the sql in model-catalog-information but this doesn't affect anything.

any help would be greatly appreciated :-)

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Thu Mar 21, 2013 10:50 pm
by itsbob
Just remove it from the information section:
Not by setting it to inactive but by deselecting "show in footer"
So now you don't see it under 'information', but it's still active so it will work.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Sun Sep 01, 2013 9:21 pm
by Criskross88
UKSITEBUILDER Your the bomb man !! This really helped me out , unbelievble what variety of answers people to this question.

What i know Opencart forum need people like you, i wont even bother no more looking at the Dutch section no replies or stupid answers that dont matter the subject.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Sun Oct 20, 2013 5:28 am
by TAC
I have this problem again and realise I never resolved my issue from last year....

So I have tried again by changing the footer.tpl file as in the attached screenshot.

But I get a mess on the store front :(

What am I doing wrong?

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Mon Oct 21, 2013 12:58 am
by butte
. . . blog is not defined. You neglected to set something in place for blog, $blog is where it balks. Look at the full set of footer.php files (controller/, model/, language/ just to see it, template/common/) and follow the pattern for the public variables -- compare the ones below blog to whatever you did or dinna do for blog, fix blog.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Oct 22, 2013 3:36 am
by TAC
Thank you butte, I changed all the footer files in catalogue and it is working :laugh:

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Oct 22, 2013 4:01 am
by TAC
When I said 'working' it turns out I meant the footer now looks correctly formatted. But if you click on the Blog link it goes nowhere.

I have created the Blog page as an information page with a sort order of -1 as it says further up in this thread. However, I realise I still don't know how to add the html link as described :(

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Oct 22, 2013 6:54 am
by butte
Rather than <A HREF echoing $blog and then <A HREF echoing $text_blog, you can instead <A HREF hard code blog URL and likewise <A HREF the text. Then it doesn't have to think beyond just telling the browser the URL it is expected to bring up. That URL will be "/[dirname]/index.php" and should display as a . . . blog page.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Oct 22, 2013 5:05 pm
by Cleo
Hi!

I created my F.A.Q. with an information page and what I did is:

I went to System/layout and created a layout 'faq'

store is: default and layout is: 'information/faq'

In information my faq page is:

(title) F.A.Q.

and the seo keyword is: 'faq'

then in the last tab in the dropdown design box I selected: 'faq'

then in my header I added the link:

<li><a href="faq">FAQ</a></li>


Not sure if there is an easier way to do it but at least it is working for me without problem!

So you can do the same and just change the name 'faq' for 'blog' and put the link in your footer instead of header!

Cleo

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Tue Oct 22, 2013 9:35 pm
by butte
I think TAC already gets A, HREF, echo, and hard code, that is why the suggestion above is half-tagged. Starting with <A HREF it is implicit that the text position follows the opening tag and precedes the closing </A>. The <li> and else do not matter, the header arrangement varies with theme and TAC needs the linkage itself, without or without echo.

<A HREF"/[dirname]/index.php">BLOG</A>
and for backlink there, <A HREF"../index.php">STORE</A> or similar to drop back to OC.

If both are in directories, then either
relative fallback (../) or
absolute fallback (http://[address]/[dirname]/[blog or shop/index.php)

thus, relative
<A HREF"../[blog_dirname]/index.php">BLOG</A>
<A HREF"../[shop_dirname_if_any/]index.php">STORE</A>
or absolute
<A HREF"http://[address]/[blog_dirname]/index.php">BLOG</A>
<A HREF"http://[address]/[shop_dirname]/index.php">STORE</A>
each upper in shop to get to blog, lower in blog to get to shop.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Thu Oct 24, 2013 12:06 am
by TAC
Thank you Cleo for your idea, I might try that for something else :-)

Butte I'm not great with code so please forgive me if I have misunderstood your instructions...

I would actually love the link to open the WP part of the site in a new tab so would something like this work?

<li><a target="_blank" href="http://www.theambercat.co.uk"><?php echo $text_blog; ?></a></li> ???

Linking back to the store will be easy from WP.

Re: SOLVED - Insert New Page in Customer Service section v1.

Posted: Thu Oct 24, 2013 1:14 am
by butte
Ya know, compared to what else you have already done this is a piece of cake. Second line from the bottom will probably be simplest, and most people will expect to find it near top not bottom of screen.

In the shop, in common/header.php or in common/footer.php:
<A HREF"http://[www.domain.com]/[where_is_the_blog]/index.php">BLOG</A>
or you can echo it between the quotation marks.
In the blog, in its own header or footer file:
<A HREF"http://[www.domain.com]/[where_is_the_shop]/index.php">STORE</A>
or you can echo it between the quotation marks.

Those can go wherever they seem to belong, SUCH AS beside home or inside the menu crossbar OR somewhere conspicuous, by itself, on the footer. The <li> is NOT necessary OR EVEN appropriate, that just relates to her custom theme, in the shop or in the blog, alike.

What IS important below is minding <DIV THIS><A OR THIS>[WHAT]</A></DIV> . . .

You can instead just put the link itself (each one at a time)
in its own layer
and then using
position: as either absolute or relative (whichever works with certain other things going on at once)
and top: as well as left: (or if far enough over right: instead) a fixed number of px,
all with ; between them and ; ending the last one,
so that the link appears where you want it.

That goes inside a <div> or the <a> as either a
class="[name]"
that you added and formatted in .css
or in-line inside a <div> or the <a> as
class="special" style="position: absolute; top: 40px; left: 80px; z-index: 2; opacity: .99;"

Then you can knock your socks off by wrapping that around a button but first make it work.