Forums / Templates, Stylesheets, Page Layout / Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Locked

Started by limelites on 5 Feb 2009, 5:16 PM · Views: 1,753

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
5 Feb 2009, 5:16 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

I wonder if anyones know what's causing the text BOX_INFORMATION_SHIPPING to display on my site map structure instead of the Shipping and Returns link?

I was editing a custom page not found page when I noticed it but not sure how long it's been like that.

huge screenshot removed

5 Feb 2009, 5:16 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2009, 5:22 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Hi,

I was aware of the the cause, just wondered if anyone might know which file to check?

There are 3 files being highlighted in the admin Developers Toolkit but the fact that these three files contain the text, does that mean those are NOT the culprits as they haven't had this entry deleted?

/home/content/d/y/s/dystynction/html/includes/modules/sideboxes/information.php

Line #14 : $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';

/home/content/d/y/s/dystynction/html/includes/templates/template_default/templates/tpl_page_not_found_default.php

Line #45 : <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>

/home/content/d/y/s/dystynction/html/includes/templates/template_default/templates/tpl_site_map_default.php

Line #49 : <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>

5 Feb 2009, 5:26 PM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

The fact that this capitalized text appears on the redirect page and is contained in the site map, does that give you any clues as to which files I need to sleuth into and compare with the originals?

5 Feb 2009, 5:32 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,717
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Please re-read the FAQ - https://www.zen-cart.com/tutorials/index.php?article=95

Hint: you are looking for a language file.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

5 Feb 2009, 5:37 PM
#6
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

I wonder which one? Which language file would output the text, "Shipping and Returns" or "Shipping & Returns"

5 Feb 2009, 5:51 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Probably english.php:

  define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

If you compare your customized version of that file against your edited override version of the file, you'll see what alterations you've made to break it.
Then again, if you're editing language/template files directly instead of using the override infrastructure for your customizations, you won't have that luxury.
There are several articles on the "override" system in the FAQ area.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2009, 6:07 PM
#8
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Nope, that was the first file I checked. Original and existing are identical on line 140 they both say, "define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');"

5 Feb 2009, 6:19 PM
#9
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

I've now replaced all possible candidates in my includes/languages/english folder with the original files from the install folders and none of them cure this annoying CAPS_TEXT. I've tried shippinginfo.php + site_map.php + page_not_found.php + privacy.php (as I'd edited this earlier and wanted to be sure) + of course english.php

Anyone have any more clues as the this annoying culprit?

5 Feb 2009, 6:22 PM
#10
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

could someone please do me a favour, search the word "returns" in their Developers Toolkit and see which files contain this text? I only have three files which contain "returns" so if you guys had 4 then this would certainly point to the culprit :-)

5 Feb 2009, 6:33 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

limelites:

Nope, that was the first file I checked. Original and existing are identical on line 140 they both say, "define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');"

Well ... if it's there, it should be used. If it's not getting used, then you probably have a syntax error up higher in the file. Either that or the file you're looking at is on your PC, and not the one on the server (because the Developers Toolkit would have found it if it was on the server and you were searching All Files).

There's no point searching in other files. That definition is in the english.php file by default. It's not defined in other files.
It's defined in english.php and it's "used" by reference in the 3 other files you mentioned earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2009, 6:43 PM
#12
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

I dragged the english.php file from FTP onto my hard drive before opening it and then I opened the other one from the install files and both are identical at line 140. It's odd that Developer Tools didn't find it as it's definitely searching ALL files and it's definitely the file on the server.

Another thing though, it's not just english.php which defines this definition, it's also in my shippinginfo.php file:

define('NAVBAR_TITLE', 'Shipping & Returns');
define('HEADING_TITLE', '');

I removed the heading earlier today but should still work. Have tried the original too, same error.

I have overwritten all 75 php files in my english directory on the server now and still, the same problem...

5 Feb 2009, 6:53 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

limelites:

Another thing though, it's not just english.php which defines this definition, it's also in my shippinginfo.php file:

define('NAVBAR_TITLE', 'Shipping & Returns');
Yes, true, but ... you were complaining about it showing BOX_INFORMATION_SHIPPING ... not NAVBAR_TITLE

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2009, 6:55 PM
#14
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

OK, I feel like a halfwit now! I double checked my English.php file and you were right, somehow I'd been looking at a file on my hard drive twice.... Duuuhhh!! Sorry to have wasted your time! :bangin:

5 Feb 2009, 7:00 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

lol ... it happens to all of us :D

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.