Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / ZC Constants show name instead of value.

ZC Constants show name instead of value.

Views: 825

Results 1 to 4 of 4
10 Mar 2011, 5:42 AM
#1
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

ZC Constants show name instead of value.

I made a modification of the store code - including changing the Admin settings...the page itself seems to be working...but now I see that on every page the buttons, header and footer have the name of the Constant rather that the value of the constant!

Take a look at http://www.orcatools.com/orcatools/ and you can see HEADER_ALT_TEXT & HEADER_SALES_TEXT in the header - in the footer there is TEXT_YOUR_IP_ADDRESS & FOOTER_TEXT_BODY.

If you go to "Contact Us", you see several ENTRY_REQUIRED_SYMBOL & buttons with their labels instead of the button text.

No doubt this is an easy thing I just overlooked, or a switch I clicked the wrong way, but I've tried reconstructing what I did and can find nothing that seems to affect this.

Any suggestions?

Oh, and the change I made was to change the name of the override folders - if one is not functional, wouldn't it have just gone to the default?

10 Mar 2011, 5:50 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: ZC Constants show name instead of value.

When constants show instead of their defined value, that means it's not finding the files that contain the define. So, you're likely missing the file from your server. Or you've damaged it with a syntax error.

ref: https://www.zen-cart.com/tutorials/index.php?article=95

10 Mar 2011, 5:58 AM
#3
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

Re: ZC Constants show name instead of value.

DrByte:

When constants show instead of their defined value, that means it's not finding the files that contain the define. So, you're likely missing the file from your server. Or you've damaged it with a syntax error.

ref: https://www.zen-cart.com/tutorials/index.php?article=95

Thanks for the fast response - I'll read that article & find where I went wrong.:smile:

10 Mar 2011, 7:17 AM
#4
orcasoul avatar

orcasoul

Zen Follower

Join Date:
Jan 2010
Posts:
133
Plugin Contributions:
0

Re: ZC Constants show name instead of value.

OK, it was really simple - I had forgotten to change the names of the override files to reflect the changes to the override folders...

:clap: :clap: :clap: :clap: :clap: :clap: