Once an order has been complete I get my thank you page, but there are som missing bits at the bottom:
and a missing button..TEXT_CHECKOUT_LOGOFF_CUSTOMER
Has anyone got an idea how I can sort this?
Once an order has been complete I get my thank you page, but there are som missing bits at the bottom:
and a missing button..TEXT_CHECKOUT_LOGOFF_CUSTOMER
Has anyone got an idea how I can sort this?
This is the concept about "why" you're getting that:
http://tutorials.zen-cart.com/index.php?article=95
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
so if I search for TEXT_CHECKOUT_LOGOFF_CUSTOMER wherever that might be, I should be able to fix it?
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: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.Code:define('TEXT_MAIN', 'Something to display here');
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!
Donations always welcome: www.zen-cart.com/donate
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.
Cheers for that... I'll start now... great help, thank you :)
Bookmarks