Thread: Thank you page

Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Thank you page

    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.

  3. #3
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Thank you page

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

  4. #4
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default 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:
    Code:
    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!
    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.

  5. #5
    Join Date
    Aug 2006
    Posts
    135
    Plugin Contributions
    0

    Default Re: Thank you page

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

 

 

Similar Threads

  1. Inserting Frames into either Define Page or Ez Page
    By Jump Network in forum General Questions
    Replies: 12
    Last Post: 20 Mar 2009, 09:57 PM
  2. Problem Displaying Customer Greeting and Category on Main Page
    By zerocool in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Nov 2008, 03:36 PM
  3. Making Category Page the Home Page
    By coolglobal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jul 2007, 11:46 AM
  4. rename define page
    By byob in forum Basic Configuration
    Replies: 4
    Last Post: 2 Nov 2006, 08:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •