Post by CamboKev » Tue Aug 09, 2011 3:57 am

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
Last edited by CamboKev on Tue Nov 15, 2011 6:19 am, edited 1 time in total.

It's part of a trilogy, a musical trilogy I'm working on in D minor which is the saddest of all keys, I find. People weep instantly when they hear it, and I don't know why.


User avatar
New member

Posts

Joined
Fri Jul 29, 2011 9:41 pm
Location - London

Post by uksitebuilder » Tue Aug 09, 2011 4:10 am

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

User avatar
Guru Member

Posts

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

Post by CamboKev » Tue Aug 09, 2011 4:44 am

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!

It's part of a trilogy, a musical trilogy I'm working on in D minor which is the saddest of all keys, I find. People weep instantly when they hear it, and I don't know why.


User avatar
New member

Posts

Joined
Fri Jul 29, 2011 9:41 pm
Location - London

Post by uksitebuilder » Tue Aug 09, 2011 5:32 am

catalog/language/english/common/footer.php

User avatar
Guru Member

Posts

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

Post by CamboKev » Tue Aug 09, 2011 6:16 am

super O0

It's part of a trilogy, a musical trilogy I'm working on in D minor which is the saddest of all keys, I find. People weep instantly when they hear it, and I don't know why.


User avatar
New member

Posts

Joined
Fri Jul 29, 2011 9:41 pm
Location - London

Post by CamboKev » Tue Sep 13, 2011 4:19 am

O0

It's part of a trilogy, a musical trilogy I'm working on in D minor which is the saddest of all keys, I find. People weep instantly when they hear it, and I don't know why.


User avatar
New member

Posts

Joined
Fri Jul 29, 2011 9:41 pm
Location - London

Post by pitkin2020 » Tue Nov 01, 2011 11:13 pm

nice tip, very easy to add new pages under different headings, thanks

New member

Posts

Joined
Thu Oct 06, 2011 5:20 am

Post by TAC » Tue Apr 24, 2012 11:58 pm

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 :)

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by DesktopNev » Wed Aug 15, 2012 9:25 pm

"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 :-)

Newbie

Posts

Joined
Tue Feb 07, 2012 9:38 pm

Post by itsbob » Thu Mar 21, 2013 10:50 pm

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.

Newbie

Posts

Joined
Mon Mar 18, 2013 5:41 am

Post by Criskross88 » Sun Sep 01, 2013 9:21 pm

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.

New member

Posts

Joined
Sat Feb 25, 2012 4:48 am

Post by TAC » Sun Oct 20, 2013 5:28 am

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?

Attachments

Screen Shot 2013-10-19 at 22.26.23.png

Screen Shot 2013-10-19 at 22.26.23.png (23.73 KiB) Viewed 7391 times

Screen Shot 2013-10-19 at 22.24.17.png

Screen Shot 2013-10-19 at 22.24.17.png (9.5 KiB) Viewed 7391 times


User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by butte » Mon Oct 21, 2013 12:58 am

. . . 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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by TAC » Tue Oct 22, 2013 3:36 am

Thank you butte, I changed all the footer files in catalogue and it is working :laugh:

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by TAC » Tue Oct 22, 2013 4:01 am

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 :(

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by butte » Tue Oct 22, 2013 6:54 am

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Cleo » Tue Oct 22, 2013 5:05 pm

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

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by butte » Tue Oct 22, 2013 9:35 pm

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by TAC » Thu Oct 24, 2013 12:06 am

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.

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by butte » Thu Oct 24, 2013 1:14 am

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.
Last edited by butte on Thu Oct 24, 2013 1:35 am, edited 1 time in total.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 102 guests