Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / help! How do I put code above entire cart layout?

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

Locked

Views: 856

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
8 Nov 2008, 11:37 PM
#1
orfeus123 avatar

orfeus123

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

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

9 Nov 2008, 1:03 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

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

:smile:

9 Nov 2008, 2:11 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,777
Plugin Contributions:
11

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.

9 Nov 2008, 9:17 AM
#4
orfeus123 avatar

orfeus123

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

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 :frusty:

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

9 Nov 2008, 9:23 AM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

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

Make sure you have correct path to file..
i.e.
is menu.php in your
/includes/templates/nameofyourtemplate/common/
folder?

9 Nov 2008, 7:30 PM
#6
orfeus123 avatar

orfeus123

New Zenner

Join Date:
Nov 2008
Posts:
11
Plugin Contributions:
0

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

9 Nov 2008, 8:10 PM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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