Thank you page

Locked

Started by danallkins on 15 Sep 2007, 10:17 AM · Views: 2,883

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Sep 2007, 10:17 AM
#1
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Thank you page

Once an order has been complete I get my thank you page, but there are som missing bits at the bottom:

TEXT_CHECKOUT_LOGOFF_CUSTOMER
and a missing button..

Has anyone got an idea how I can sort this?

15 Sep 2007, 11:40 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Thank you page

This is the concept about "why" you're getting that:
https://www.zen-cart.com/tutorials/index.php?article=95

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

15 Sep 2007, 6:20 PM
#3
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: Thank you page

so if I search for TEXT_CHECKOUT_LOGOFF_CUSTOMER wherever that might be, I should be able to fix it?

15 Sep 2007, 9:34 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Thank you page

TEXT_CHECKOUT_LOGOFF_CUSTOMER is called a "constant" in PHP language terms.

A "define" statement is used to declare a constant.

This is what Zen Cart currently uses to build language output content.

Commonly you'll see language definitions in the form of:```
define('TEXT_MAIN', 'Something to display here');


Then, in a template file or somewhere else in the system, there will be a request to display the contents of TEXT_MAIN ... often in a PHP "echo" statement, but could be in many other forms too.

If the constant TEXT_MAIN hasn't been defined anywhere, or if the file in which it is defined has a syntax error above where it's defined (causing it to not *get* defined), then the name of the constant will be displayed *instead of* the defined content.


Thus, *somewhere* in your files is a request to display the value defined to the TEXT_CHECKOUT_LOGOFF_CUSTOMER constant.
But, since you don't have it defined, you're seeing the constant name instead.

You have to find out where it was supposed to be defined, and fix it.

80% of the time this is a cause of someone editing a language file and "deleting" define statements that they don't want to display, instead of just deleting the text that's currently being displayed.
ie: one should use define('TEXT_MAIN', ''); instead of just deleting the line altogether if they don't like what TEXT_MAIN was defined to in the first place.

10% of the time it's a result of a syntax error where a define statement earlier in the file has mismatched quotation marks, or a ) or ; has been dropped, etc etc.

10% of the time it's because you've failed to upload the language file altogether, and thus the define is missing.

Good luck sleuthing.

You might start with checking which files you've edited recently or contributions you've added, or compare your files vs a fresh set of Zen Cart files.

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

15 Sep 2007, 9:40 PM
#5
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: Thank you page

Cheers for that... I'll start now... great help, thank you :)