Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    354
    Plugin Contributions
    1

    Default Is there a way to override the pages header.php file...

    What I would like to know is there a way to override the pages directory for a template so that I don't have to modify the pages/xxxxx/header.php file directly?

    If so where can I place my file?

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

    Default Re: Is there a way to override the pages header.php file...

    No.
    You'll need to rename the existing header_php.php file as header_php.ORIGINAL and then put your custom version of the file in that same folder as header_php.php.
    .

    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
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    354
    Plugin Contributions
    1

    Default Re: Is there a way to override the pages header.php file...

    If another file is placed in a pages /modules/pages directory, in what order will it be loaded?

    In general, I'm trying to write a redirect code for the login page but want the page to either redirect to account creation OR account guest checkout (via module).

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

    Default Re: Is there a way to override the pages header.php file...

    Multiple header_php files will be loaded in the order in which the filesystem lists them back to PHP. There is no explicit sort done on them.

    Better to use a notifier/observer to hook the notifier point already found in the top of that file, and let the observer do the required redirect instead.
    .

    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.

 

 

Similar Threads

  1. Override this file or not?
    By pb4 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 26 May 2010, 11:35 AM
  2. Default CSS Optmization - How do I change CSS File name in header of all pages?
    By Beama in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 7 Oct 2009, 09:50 PM
  3. Override an Admin file?
    By eflat in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Oct 2008, 03:35 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
  •