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

Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

Locked
Results 1 to 15 of 15
This thread is locked. New replies are disabled.
05 Feb 2009, 17:16
#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***
05 Feb 2009, 17:22
#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>
05 Feb 2009, 17:26
#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?
05 Feb 2009, 17:32
#5
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
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.
05 Feb 2009, 17:37
#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"
05 Feb 2009, 17:51
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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.
05 Feb 2009, 18:07
#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');"
05 Feb 2009, 18:19
#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?
05 Feb 2009, 18:22
#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 :-)
05 Feb 2009, 18:33
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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.
05 Feb 2009, 18:43
#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...
05 Feb 2009, 18:53
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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
05 Feb 2009, 18:55
#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:
05 Feb 2009, 19:00
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Problem with BOX_INFORMATION_SHIPPING Displaying on Site Map

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