Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how do I edit the Information sidebox?

how do I edit the Information sidebox?

Locked

Views: 4,251

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
21 Jun 2007, 2:01 PM
#1
thecatinthetree avatar

thecatinthetree

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?

22 Jun 2007, 9:26 AM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: how do I edit the Information sidebox?

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

22 Jun 2007, 1:44 PM
#3
thecatinthetree avatar

thecatinthetree

Zen Follower

Join Date:
May 2007
Location:
Virginia
Posts:
102
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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!

23 Jun 2007, 3:35 AM
#4
solarflare avatar

solarflare

Zen Follower

Join Date:
Sep 2006
Posts:
81
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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.

5 Jul 2007, 5:31 PM
#5
thecatinthetree avatar

thecatinthetree

Zen Follower

Join Date:
May 2007
Location:
Virginia
Posts:
102
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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?

5 Jul 2007, 5:33 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how do I edit the Information sidebox?

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

20 Oct 2007, 1:43 AM
#7
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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!

21 Oct 2007, 3:45 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how do I edit the Information sidebox?

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:

21 Oct 2007, 3:52 PM
#9
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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

21 Oct 2007, 3:57 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how do I edit the Information sidebox?

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

21 Oct 2007, 4:07 PM
#11
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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

21 Oct 2007, 4:52 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how do I edit the Information sidebox?

Do you have this defined somewhere with a link? Or just to echo it in the sidebox?

21 Oct 2007, 4:55 PM
#13
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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?

21 Oct 2007, 5:01 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: how do I edit the Information sidebox?

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

21 Oct 2007, 5:14 PM
#15
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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:

21 Oct 2007, 7:23 PM
#16
arkwright avatar

arkwright

Zen Follower

Join Date:
Oct 2007
Posts:
95
Plugin Contributions:
0

Re: how do I edit the Information sidebox?

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');