Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Customer history order not showing

    When a customer want to check there orders none are showing. I did a debug . The result is an error in common_tl_main_page.php at line 122
    122 require($body_code)

    Anybody have an idea of the problem?

    Thank very much.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer history order not showing

    If it's failing on "require($body_code)" then you've likely got something broken in the files that build the value of $body_code, which suggests you've got one or more addons or custom coding that has broken something in the original code, or you've got a bad upload of files.

    Or, it could be that the filename that $body_code is supposed to name, doesn't exist.

    But, since you failed to not post the ACTUAL error message, all we can do is tell you to go fix whatever you broke, or to read the error message more clearly, perhaps out loud this time instead of keeping it a secret.
    .

    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.

  3. #3
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Customer history order not showing

    Thank for answer me. Yes I should put more info. Here are the information please help me (I have a hard time with PHP)

    Error:
    [03-Mar-2010 14:54:16] PHP Warning: require(includes/templates/template_default/templates/tpl_account_history_info_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122
    [03-Mar-2010 14:54:16] PHP Warning: require(includes/templates/template_default/templates/tpl_account_history_info_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122
    [03-Mar-2010 14:54:16] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_account_history_info_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122


    Code found on line 122: require($body_code); ?>

    Code found with Tools: main_template_vars (in Common)

    if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) {
    $body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php';
    } else {
    $body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php';
    }


    Thanks.

  4. #4
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Customer history order not showing

    Resolve: includes/templates/template_default/templates/tpl_account_history_info_default.ph was missing.
    Thanks Dr,Byte you put me on the correct track. A big hug...

 

 

Similar Threads

  1. Customer Order History Not Available
    By snowstar in forum Managing Customers and Orders
    Replies: 10
    Last Post: 23 Nov 2015, 06:39 PM
  2. v1.2.x Excel Export of Customer Contact Details and Customer Order History?
    By sbokkie12 in forum General Questions
    Replies: 3
    Last Post: 1 May 2013, 12:43 AM
  3. Customers Order History Not Showing in My Account
    By ccjones in forum Managing Customers and Orders
    Replies: 4
    Last Post: 25 Feb 2011, 06:15 PM
  4. Replies: 4
    Last Post: 29 Aug 2010, 01:49 PM
  5. Order not show in Admin nor Customer's account history
    By jppp in forum General Questions
    Replies: 5
    Last Post: 7 May 2010, 04:57 PM

Posting Permissions

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