Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2008
    Posts
    11
    Plugin Contributions
    0

    Default help! How do I put code above entire cart layout?

    Hey All,

    I'm trying to put the menu from the rest of my site (it's not a shopping cart site all the way through) on top of shopping cart template, so it's the first thing you see at the top.

    I've been searching for the page to edit and i can't seem to find it. I tried the index.php, header.php, define_main_page.php, etc. and haven't figured out how to do it. All I'm trying to do is stick a php includes line in there.

    How do I go about doing this?

    Thanks in advance

    Mitch

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: help! How do I put code above entire cart layout?

    try adding your code in
    /includes/templates/nameofyourtemplate/common/tpl_header.php


  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,705
    Plugin Contributions
    12

    Default Re: help! How do I put code above entire cart layout?

    Do understand that, if a customer has something in there cart and not logged in, the session will die when they leave to go to "home".

    Might be a bit frustrating for the customer.

    How about just adding a link to "Main Website" up next to Home and Login? At least they might realize they're leaving.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Nov 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: help! How do I put code above entire cart layout?

    thanks guys,

    but for some reason it's still not working. I tried placing the code below in as many different places as it made sense (within the tpl_header.php file), and nothing came of it.

    I'm not a php expert in any sense, so what might seem obvious probably isn't for me

    the code I'm using is:

    <?php include 'menu.php'; ?>

    The file is in the root directory, so it should be calling it just fine.

    Where do I need to put it?

    Thanks again

    Mitch

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: help! How do I put code above entire cart layout?

    Code:
    <?php include 'menu.php'; ?>
    Make sure you have correct path to file..
    i.e.
    is menu.php in your
    /includes/templates/nameofyourtemplate/common/
    folder?

  6. #6
    Join Date
    Nov 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: help! How do I put code above entire cart layout?

    Yeah, everything is in the right directory. In fact, I've tested putting the file in different directories and still doesn't work.

    I've now put the <?php include 'menu.php'; ?> snippet everywhere I possibly can (outside of other <?php ?> tags), and still nothing shows up.

    Should I be trying to put the include call within some of the other php tags on the page? If so, where should I put it?

    Should I be using a different command besides "include" ?

    I am not a php expert at all. I'm only able to get by through trial and error... but for some reason this one ain't working. Is there another header file that I should be editing?

    Anything you can give me would be greatly appreciated.

    Thanks again

    Mitch

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: help! How do I put code above entire cart layout?

    http://www.tizag.com/phpT/include.php
    Suggest you visit above..
    Is there another header file that I should be editing?
    File name given to edit is correct..

 

 

Similar Threads

  1. How do I put "Featured Products" above my product listings?
    By candylotus in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Nov 2010, 10:56 PM
  2. How to put my logo above the top of my template?
    By corditreasures in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 May 2010, 03:59 PM
  3. How to put specials above category in mainpage center?
    By aurelius99 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Apr 2008, 01:36 PM
  4. How to put coupon code befor shipping?
    By 2scrappychixdesigns in forum Basic Configuration
    Replies: 3
    Last Post: 11 Dec 2006, 01:53 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