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.
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.
Which .php file are you editing???
Look here please:
Last edited by haredo; 22 May 2010 at 10:57 PM.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
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.
/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
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.
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!!!!!!!!!!!!!!!!!!![]()
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.
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.![]()
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).
Last edited by schoolboy; 28 May 2010 at 11:33 AM.
20 years a Zencart User
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?![]()