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

    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    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.

 

 

Similar Threads

  1. v139h Can I override the /includes/modules/pages/shopping_cart/header_php.php ?
    By devyani in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Mar 2013, 10:59 PM
  2. v151 override \includes\modules\pages\shopping_cart\header.php.php??
    By tlyczko in forum General Questions
    Replies: 7
    Last Post: 27 Nov 2012, 06:12 PM
  3. Is there a way to remove the breadcumbs from the EZ pages?
    By scastro in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Aug 2010, 10:18 PM
  4. is there an override folder for the admin pages too?
    By photoseller in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2010, 07:59 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR