Forums / Templates, Stylesheets, Page Layout / Changing Categories Sidebox Header Text

Changing Categories Sidebox Header Text

Locked

Views: 1,224

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 May 2010, 9:52 PM
#1
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Changing Categories Sidebox Header Text

https://www.chromeworld.com.au

Hi, I'm trying to change the text in Categories Sidebox Header. If I change it to more than one word, eg "Shop By Model", my whole home page disappears except for the search sidebox. Any ideas? Thanks in advance.

22 May 2010, 10:16 PM
#3
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

I went to includes/languages/english.php. I was able to edit the Manufacturers sidebox header text to "Shop By Brand" but can't change the Categories sidebox header text to more than one word. I'll search the tutorials but any help you can give me would be great. Thanks.

23 May 2010, 1:51 AM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Changing Categories Sidebox Header Text

/includes/languages/YOUR_TEMPLATE/english.php

around Line #89 : define('BOX_HEADING_CATEGORIES', 'Shop by Category');

this is the exact heading for categories in one of my shops, contains the 3 words Shop by Category

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

23 May 2010, 10:29 PM
#5
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

I don't have a /includes/languages/blue_strip/english.php file.
If I go to /includes/languages/blue_strip/ the only file I have is an empty.txt file.

24 May 2010, 7:19 AM
#6
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

includes/languages/english.php

Line #77 : define('BOX_HEADING_CATEGORIES', 'Shop By Model');

includes/templates/blue_strip/languages/english.php

Line #77 : define('BOX_HEADING_CATEGORIES', 'Shop By Model');

These are all the files I can find that I should edit. They already have 'Shop By Model' yet my categories sidebox still says simply Model. What am I doing wrong!!!!!!!!!!!!!!!!!!:censored:

24 May 2010, 9:08 AM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Categories Sidebox Header Text

You're not putting the edited file in the right folder.

As Frank mentioned, your edited english.php file belongs in includes/languages/blue_strip

There's never a reason to have an english.php file in the templates area.

28 May 2010, 10:19 AM
#8
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

OK. I moved the english.php file from:

includes/templates/blue_strip/languages/english.php to
includes/languages/blue_strip/english.php

but it hasn't made any difference. There must be still something wrong. The single word 'Model' still exists in my categories sidebox. I've searched for the word 'Model' in the Developers Toolkit and it doesn't show up next to any 'BOX_HEADING_CATEGORIES' text like I thought it should.:censored:

28 May 2010, 10:29 AM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

2-MINUTE TUTORIAL ON OVER-RIDES / CUSTOM TEMPLATE

Let's take a simple example in the templates directory...

Let's say you want to (on your remote server) edit:

/includes/templates/template_default/templates/tpl_products_info_display.php

You will (in your FTP program) navigate to that file, and then you will FTP it BACK to your local drive, to THIS location:

/includes/templates/YOUR-TEMPLATE/templates/tpl_products_info_display.php

(if, in templates/YOUR-TEMPLATE/ you do not have a sub-folder called templates... create one before you ftp the file)

THAT is the over-ride location (which is mirrored on your server), and THAT is the copy of the file that you edit.

When you have edited it, you will ftp it to the MIRRORED location on your remote server.

So, now you have TWO copies of that file...

One is in CORE (and is un-edited) - /includes/templates/template_default/templates/tpl_products_info_display.php

The other is CUSTOM (edited) - /includes/templates/YOUR-TEMPLATE/templates/tpl_products_info_display.php


What happens now, in the inner workings of zencart, the override programming works like this...

Zencart says: "OK... I must display the PRODUCT INFORMATION PAGE, so I go FIRST to the over-ride folder and I look to see if Joe-Bloggs has made a custom file for that page. AH.. YES... Joe-bloggs HAS made an override file, so I use that one, and NOT the core file."

Basically, that is the override system... Zc looks FIRST in an override folder for a file, and will use THAT file if there is one.

If there is NO override file, it will go look for the file it needs in the CORE folder(s).

20 years a Zencart User

29 May 2010, 9:23 AM
#10
hrsteel avatar

hrsteel

New Zenner

Join Date:
Dec 2008
Posts:
41
Plugin Contributions:
0

Re: Changing Categories Sidebox Header Text

Thanks but you're confusing me even more. I don't know what an FTP program is. Unless you mean my cPanel, from which I edit the few files I do edit. All I want to do is change the text in my categories sidebox header. Now you're talking about /includes/templates/template_default/templates/tpl_products_info_display.php I know you said "Let's say you want to edit: /includes/templates/template_default/templates/tpl_products_info_display.php" but that's not the file I actually need to edit is it?? stevesh said "There's never a reason to have an english.php file in the templates area". So when you start talking about templates you lose me. Please consider me a real dummie? I need step by step and file by file instructions. I was able to edit my manufacturers sidebox header from 'Manufacturers' to 'Shop By Brand'. How can this be so hard? :frusty:

29 May 2010, 10:28 AM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Categories Sidebox Header Text

I'm confused now, too.

You would change that (Categories) in the same file where you changed the Manufacturers wording (english.php).

You say that when you do that, the whole page disappears. One thing that will do that is special characters (like an apostrophe or quotation mark) in a define, so if you tried to change 'Categories' to 'Bob's Categories' you'd get a blank page. It doesn't sound like you're doing that, but using the CPanel editor may be causing the problem.

This would be a good time to learn about FTP - it'll save you a lot of trouble and make styling your site a lot less stressful.

Get an FTP program - many here use Filezilla, I use the FireFTP plugin for the Firefox browser. Then enter your server login details, and you'll end up with a screen with two Windows Explorer-type panes - one showing your local computer's files, and one the server files.

Find the english.php file, drag it to somewhere on your local computer, open it in a text editor (like Notepad), make your changes, save it, upload back to the server.

Once you get the idea of it, it's second nature.