Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Default How can I include a php file in the header section?

    Using Ver 1.3.8a


    ok, I've spent a couple of hours installing and customizing the zen cart on a client's website. In fact today is the first time I ever used it.


    Anyway I am trying to use the same header and menu on the store as the rest of the website I'm working on is.

    www.omegaattire.com is the site I'm working on
    www.omegaattire.com/catolog is the link to the zen store. Yes catolog is spelled wrong, I was in a hurry.


    I need to use include "menuonly.php" below where the header logo is.


    Where would I add that line of code?


    Thanks!

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: How can I include a php file in the header section?

    I would add this in "includes/templates/YOUR_TEMPLATE/common/tpl_header.php" And take some more time to change it and check the spelling.

  3. #3
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: How can I include a php file in the header section?

    Thank you tino.schlegel, you are a genius!



    Now has anyone got suggestions to get rid of the gap between the header logo and the menu?









    Zen Cart is like connect the dots, it's a little complicated.

  4. #4
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Idea or Suggestion Re: How can I include a php file in the header section?

    Nevermind on the gap issue, I'm stupid. It was obvious I needed to add a layer and set the top position. I put the layer at the end of the tpl_header.php and voila!

 

 

Similar Threads

  1. Can't include catalog functions in seperate PHP file.
    By fawad123 in forum General Questions
    Replies: 38
    Last Post: 6 Dec 2017, 07:59 PM
  2. Can the Product Description field contain an include text file.
    By ian_cowdery in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 22 Jan 2010, 01:43 AM
  3. Can the header include an HTML table?
    By bluealice in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 25 Nov 2009, 08:41 AM
  4. I cant get the php include statement to work in the tpl_header file.
    By buxton1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Oct 2009, 12:16 AM
  5. How to include define_page_2.php content in header for easy editing
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 May 2009, 07:56 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR