Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Help with header.php!

    I understand how to edit PHP and HTML. BUT when I edit correctly header.php my site won't show up when I go to it. When I put it back to it's original state it works. Please help me, I just want to know how to fix this problem, in case it happens with other files! I am using the latest zenCart.

    Thank you.

  2. #2

    Default Re: Help with header.php!

    It will probably help if you post what you are changing and or adding to the file. It sounds like a syntax error, but without seeing what you are doing it is hard to tell.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Help with header.php!

    It definitely sounds like you've made a mistake in editing the file. What editor did you use? Notepad++ and Crimson Editors are good ones for php.

  4. #4
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Help with header.php!

    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: header.php 2940 2006-02-02 04:29:05Z drbyte $
     */
    
    // header text in includes/header.php
      define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
      define('HEADER_TITLE_CONTACT_US', 'Contact Us');
      define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
      define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
      define('HEADER_TITLE_CHECKOUT', 'Checkout');
      define('HEADER_TITLE_TOP', 'Top');
      define('HEADER_TITLE_CATALOG', 'Home');
      define('HEADER_TITLE_LOGOFF', 'Log Out');
      define('HEADER_TITLE_LOGIN', 'Log In');
      define('HEADER_TITLE_PRIVACY', 'Privacy');
    
    // added defines for header alt and text
      define('HEADER_ALT_TEXT', 'Candle Shop');
      define('HEADER_SALES_TEXT', 'Candle Shop');
      define('HEADER_LOGO_WIDTH', '192px');
      define('HEADER_LOGO_HEIGHT', '64px');
      define('HEADER_LOGO_IMAGE', 'logo.gif');
    
    // header Search Button/Box Search Button
      define('HEADER_SEARCH_BUTTON','Search');
      define('HEADER_SEARCH_DEFAULT_TEXT', 'Search');
    
    ?>
    This is my edited header.php

    EDIT: I used Notepad and Notepad++

  5. #5

    Default Re: Help with header.php!

    I replace my header file with the one you posted and everything works still... did you perhaps previously have a typo and have since fixed it?

    Perhaps the problem is in a different file.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  6. #6
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Help with header.php!

    Maybe it's my host. I am not sure. I will try it again later. Maybe reinstall it.
    Thanks anyway.

 

 

Similar Threads

  1. Need help with header image/header area-Apple Zen
    By Samuz in forum Addon Templates
    Replies: 2
    Last Post: 9 Jul 2010, 12:37 AM
  2. help with php image rotation in header
    By Potterpoole in forum General Questions
    Replies: 1
    Last Post: 17 Mar 2009, 02:25 AM
  3. Include header with PHP
    By NaturalEnquirer in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2009, 09:29 PM
  4. PHP help with broken tpl_main_page.php
    By HeresySnowboarding in forum General Questions
    Replies: 4
    Last Post: 18 Sep 2008, 07:48 PM
  5. problems with header.php
    By stevepickup in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2007, 03:13 AM

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