Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Help with header/category names and a couple of other teeny things

Help with header/category names and a couple of other teeny things

Started by mzunderstood on 12 Nov 2012, 4:30 AM · Views: 1,668

Results 1 to 20 of 21
12 Nov 2012, 4:30 AM
#1
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #1 by mzunderstood

Not sure if I have given this the right title. I have 3 queries to do with the Abby template and customisation

I have a new installation of zen and I am currently setting it all up. Very pleased with what I have done so far,,, but, and there is always a but isn't there,,lol

I followed the instructions to create a new template and override system,, yay! But when I told it to use my template, it somehow changed the names on the category headers across the top of the store

I started out with this free template
http://free-zen-cart-templates-demo.zen-cart-power.net/bask/index.php?skin=abby_template

and this is my store
http://bhdesigns.biz/cardsandscraps/

as you can see the headings, including the login and register links all now have HEADER in front of them and I have searched everywhere I can think but cannot find where to fix it, pleasse help!

I am fine with editing style sheets and php files, just get stuck knowing where to look sometimes

Also if anyone can point me in the direction of where I add the two graphics that are showing at the top of the template demo page that would be great
and the other thing I would like to know is how to get rid of the search box that is showing on the top of the right column please

Thanks so much

12 Nov 2012, 4:57 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

This is displaying a constant due to a mis edit of the text that should be displayed
This text MUST be contained within a pair of single quotes as in
'my_text'

Use your admin > tools > developers tool kit and search for "HEADER_OR" check case sensitive
Look for a defines and where single quotes might be missing

Zen-Venom Get Bitten

12 Nov 2012, 10:20 PM
#3
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #3 by mzunderstood

Hi Kobra
Many thanks for your reply.
I'm still stuck though :(

I searched for the document and found it,, and I simply cannot see where there may be a problem. I even compared it line for line against the original that came with the template and it looks fine. I haven't changed anything on this particular file but obviously in setting up my overrides and custom folder etc, something went wrong somewhere

are you able to offer any further help, or anyone?
Much appreciated
TIA

12 Nov 2012, 10:23 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Are you overriding that file?

Zen-Venom Get Bitten

12 Nov 2012, 10:54 PM
#5
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #5 by mzunderstood

I followed the instructions on this site and copied the file into my custom folder, so I guess I am,,, but, I have tried to upload the original file again and the menu bar disappeared altogether!

I should add that nowhere in the file in question does it have the word define.
So,, I have been searching around some more and I did find the file header.php in custom/includes/lanhuages/english
which I Have edited,, this file does have some defines and also the heading that are incorrect, but searching through it doesn't show me any obvious errors

12 Nov 2012, 10:56 PM
#6
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #6 by mzunderstood

Attachment 11423

Maybe a fresh pair of eyes!
I have edited lines 18 and 21 - 24 inc

Hmm it doesn't have all the headings that are wrong,, is it possible there is another file, I am sure the tpl_header.php that I found on search is not the right one

12 Nov 2012, 11:02 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #7 by kobra

copied the file into my custom folder, so I guess I am,,, but, I have tried to upload the original file again and the menu bar disappeared altogether!
What program are you using to edit files with?

I should add that nowhere in the file in question does it have the word define.
What file name - & full path - are you editing?

Zen-Venom Get Bitten

12 Nov 2012, 11:06 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

cards & scraps
special memories**!**
Try replacing special characters with their escape codes

http://www.w3schools.com/tags/ref_entities.asp

Zen-Venom Get Bitten

12 Nov 2012, 11:21 PM
#9
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #9 by mzunderstood

kobra:

What program are you using to edit files with?

What file name - & full path - are you editing?

I use Notepad ++ to edit

from your first instruction I located this file in my search
cardsandscraps/includes/templates/cardsandscraps_template/common/tpl_header.php

but as I said there is no define in that file, I searched within it too, and I haven't edited that file either, but when I uploaded the original file from the template package it took out the menu bar altogther, so I put my custom file back

then I looked for another header file and found cardsandscraps\includes\languages\english\tpl_header.php
which I have edited as above

off to look at the link you sent

thank you so much for all your patience,, I can be a little lost with this stuff, but I am keen to learn!

13 Nov 2012, 1:09 PM
#10
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Post #10 by keneso

The defines are here
includes\languages\abby_template\english.php

might it be that you mistyped the folder name, as in your post #5?
custom/includes/lan**h**uages/english

where BTW you are not putting abby_template

13 Nov 2012, 11:24 PM
#11
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #11 by mzunderstood

Hi keneso
Thanks for your input,, I found the file you pointed me to and it does have those defines, I can't see any problem with them and the custom one I set up is completely different to that one

I know a lot of my confusion is caused by this override system,, as simple as it sounds, I never know if I am editing the correct file and which one the store is pulling from

Here is what I have on the file you point to above
Attachment 11433
I double checked and no, I didn't mispell the folder, it was just an error in my post above

and I'm sorry, but I just didn't understand you last line
'where BTW you are not putting abby_template'

I know when I finally sort this is will be really simple,, and I am still searching around and looking at solutions myself,, thanks for your patience

13 Nov 2012, 11:28 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #12 by kobra

mzunderstood,
Did you replace the special characters in the files you posted earlier(the overridden one)

Zen-Venom Get Bitten

13 Nov 2012, 11:38 PM
#13
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #13 by mzunderstood

Yes, I did,, I couldn't find the escape for the excamation mark so I took that out and used a full stop instead, thanks

13 Nov 2012, 11:41 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #14 by kobra

I suggest that you switch to the classic template and see if this persists

Zen-Venom Get Bitten

13 Nov 2012, 11:43 PM
#15
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #15 by mzunderstood

I just tried that and no, it doesn't appear to, but the classic template does not have the menu bar across the top anyway,

13 Nov 2012, 11:49 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #16 by kobra

it doesn't appear to, but the classic template does not have the menu bar across the top anyway
So this directs you to only files that are part of the template you are using
You might try reloading them

Zen-Venom Get Bitten

13 Nov 2012, 11:52 PM
#17
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #17 by mzunderstood

I did,, when the problem first appeared,, but the only thing that happened is that the menu bar disappeared completely.

I may just start again though,, lol. I will be an expert by the time I've done, not!

13 Nov 2012, 11:58 PM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #18 by kobra

Delete all the template files
Re-FTP them to you account

Zen-Venom Get Bitten

14 Nov 2012, 12:02 AM
#19
mzunderstood avatar

mzunderstood

New Zenner

Join Date:
Nov 2010
Location:
UK
Posts:
17
Plugin Contributions:
0

Post #19 by mzunderstood

I will do,, not gonna try it tonight tho,, been up till 5 am last 3 nights trying to resolve this and I need a fresh head,, cheers for all your help. I will have a go at that tomorrow and come back if I am still having a problem
thanks

14 Nov 2012, 10:19 AM
#20
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Post #20 by keneso

and I'm sorry, but I just didn't understand you last line
'where BTW you are not putting abby_template'

Sorry for not being clear, in your post you have mentioned "custom/includes/..."

custom/includes/lanhuages/english

Whereas it is supposed to be
includes/languages/abby_template/english.php
or
includes/languages/english/abby_template/english.php

Might be you misplaced the order in your post, and is correct on your server, I just thought to mention it in case.
It seemed to me that you placed correctly the template files, but not the language files.

For the override system I found this rule to be helpful:
wherever you see the "classic" folder create a folder with the name of your custom template, and if you need to modify any given file on that parent directory just copy it in your custom folder, and edit that one, consequently upload that on the server.
i.e.
includes/languages has the folder "classic" so create the folder "your_own_template" in includes/languages if you want to modify the file english.php which is in includes/languages copy it in includes/languages/your_own_template then edit it, and that is the file that will be used.