Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / add zen to existing site

add zen to existing site

Locked

Views: 957

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
10 Mar 2008, 11:11 AM
#1
johns avatar

johns

New Zenner

Join Date:
Jan 2008
Location:
London
Posts:
2
Plugin Contributions:
0

add zen to existing site

I have an existing site with no cart. The design is by template and css now I have zen uploaded and working.

I now need to attach it to my normal site so the links on the normal site go to the zen shop, this I can do but what do I need to change in Zen so the home links take the visitor back the home page of my full site.

can anyone assist

cheers

johns

10 Mar 2008, 3:44 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: add zen to existing site

Here's one way (I'm sure there are others). This will add a link back to your main site in the header.

Look for the following in includes/templates/YOUR_TEMPLATE/common/tpl_header.php.

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

Make the changes in red (adjust wording to your liking).

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><a href="http://mysite.com">My Site Home</a></li>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>

Just rememer that if someone is in the Zen Cart portion of your site and goes back to your "main" site, anything in the shopping cart will probably be lost due to the loss of the session.