Zen Follower
- Join Date:
- May 2007
- Location:
- Virginia
- Posts:
- 102
- Plugin Contributions:
- 0
how do I edit the Information sidebox?
How do I add/remove categories in it?
Views: 4,251
Zen Follower
How do I add/remove categories in it?
Totally Zenned
Don't really understand what you're getting at, but if you really do mean the Information sidebox, then edit includes/modules/sideboxes/information.php and save back to your override
Zen Follower
Ok.
I mean the "information" sidebox that contains the categories such as privacy policy, conditions of use, shipping and returns, etc.
I would like to change some of those categories to , say, "about us"
one I would like to link to my WP blog, some I don't need at at all.
I did go to the information.php but I don't know what to edit and that is what I need help with.
TIA!
Zen Follower
You can edit their CONTENT using the DEFINE PAGES editor under tools.
You can turn them on/off using the DEFINE PAGES status under conifguration.
I don't know how to add to it, or to make it do what you want. Hope i helped a bit. I'm new at this too.
Zen Follower
anyone else??
I know how to edit the content of each category, but to actually change or disable the individual categories or add new ones?
Oba-san
There are settings on the Define Page Status:
Define Privacy Status
Enable the Defined Privacy Link/Text?
0= Link ON, Define Text OFF
1= Link ON, Define Text ON
2= Link OFF, Define Text ON
3= Link OFF, Define Text OFF
Zen Follower
How do I change the name of the information sidebox? I want to remove the word "information" and replace it with "Shop with Confidence"
help :)
thanks!
Oba-san
Any text that is displayed on your Zen Cart pages has been defined in the language files ...
To locate which file you should customize by copying to your templates and overrides directory then editing your changes, you can use the Tools ... Developers Tool Kit ...
In the bottom input box enter the text that you are searching for ...
information
Select Catalog ... and click Search ...
This will locate all occurances of the word: information in all of the php files ...
From here, you can determin which one is affecting the section(s) of text display that you wish to change ... :smile:
Zen Follower
yes, I did that :) that is how I was able to change the names in the define pages editor. I went to the file below and made the changes. However NONE of the ones i changed show up in the information box, even after adding text to them. THAT is my issue.....and have no idea how to solve it :( Any ideas?
**/home/mooncave/public_html/shopping/includes/languages/darkness/english.php
**Line #135 : // information box text in sideboxes/information.php
Line #136 : define('BOX_HEADING_INFORMATION', 'Shop With Confidence');
Line #137 : define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
Line #138 : define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
Line #139 : define('BOX_INFORMATION_SHIPPING', 'Shipping');
Line #140 : define('BOX_INFORMATION_RETURN POLICY', 'Return Policy');
Line #141 : define('BOX_INFORMATION_CONTACT', 'Contact Us');
oh wait....i see an underscore that I forgot..........ahahahahah
Oba-san
Do a view on the file on the server for:
/includes/languages/darkness/english.php
make sure that you have the right file in there with your changes ...
Also make sure that you are on the /darkness template ...
Zen Follower
yes, checked file on server, yup, darkness. What I did was change the page 4 entry to this:
Line #140 : define('BOX_INFORMATION_RETURN_POLICY', 'Return Policy');
so logically, after editing this in the define pages editor, it should show up in the sidebox below....it does not. Why doesnt the Return and Refunds show up? I am perplexed.
Shop With Confidence
Oba-san
Do you have this defined somewhere with a link? Or just to echo it in the sidebox?
Zen Follower
well, i was kind of thinking the page_4.php link would work when I changed the name to Returns_and_Refunds. yes, i know, i am simple minded......LOL
does that make sense?
Oba-san
There are many peices and parts to Page 4 ... just renaming a file doesn't make it happen ...
If you did a search on:
page_2
page 2
you would find a whole gang of entrees for this ...
I could change the text for Page 2 to Fred's Life History by editing a language file, but I would not have to touch a file or make a file for this to work ...
When making new pages, then I have to follow the pattern and get all of the pieces put together correctly and also look at adding a switch to the database configuration table or adding a new define for the define status of the new page ...
Somewhere, you have a step or three left out of this ... so things appear to not be working ...
Also, it is a good idea to keep the filenames lowercase in a more unix like method ...
You might even look at the About Us add-on which shows how to add a whole new page and new sidebox to get a better feel for the locations of the files involved ...
Zen Follower
thanks for the info.......this is wayyyyyyyyyy over my head, so i will just keep my return info with the shipping info. Sounds like I have screwed up the other stuff enough. :censored:
Zen Follower
This is the answer I got to the same question on another site Moon and it seemed to work for me. That was before I just made a monumental cock up and ruined my site completely, but that's another story.
'You have to edit the language files for that, you will find them in /includes/languages
You will find template and page specific files in the sub directories. Probably the most useful file is english.php, what you change in here affects the whole store so be careful what you change and make sure you have a back up of the file so you can restore it in case of a mistake.
This is the bit that defines the box header texts.'
PHP Code:
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_INFORMATION_CONTACT', 'Contact Us');
Tell staff why this post should be reviewed.