Zen Cart Logo

Need a little help

Locked

Views: 1,060

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Mar 2007, 7:02 PM
#1
ashmark avatar

ashmark

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Need a little help

First off let me say Thank you for all the great information you have on this site! From the Knowledge Base to these forums, I have found almost everything I needed to know. I really appreciate it! I have learned a lot in this last week as I get our new shop set up.

I would like to know how to put links in the option category bar at the top of the page. I don't want it to link to the categories but to other pages on our site.

Link to the site: http://www.seasidescraps.com/shop/

26 Mar 2007, 7:46 PM
#2
afo avatar

afo

Totally Zenned

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

Re: Need a little help

Nice site!

If you're talking about adding links above the logo, it's pretty simple.

In includes/templates/YOUR_TEMPLATE/common/tpl_header.php, add the line in red (this will put the link BEFORE your HOME LOGIN/REGISTER links)

<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><a href="http://www.youdomain.com/whatever.html">Whatever</a></li>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>

To add them at the end, I think it would go this way:

<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>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
    <li><a href="http://www.youdomain.com/whatever.html">Whatever</a></li>
</ul>
26 Mar 2007, 7:52 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need a little help

I would like to know how to put links in the option category bar at the top of the page. I don't want it to link to the categories but to other pages on our site.
You would have to hard code these additional links to your other pages in a copy of the includes/templates/template_default/templates/tpl_modules_categories_tabs.php

Are these html pages??

If so why not create ezpages and paste your code into them for these and keep this manageable from a common interface?

26 Mar 2007, 7:53 PM
#4
afo avatar

afo

Totally Zenned

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

Re: Need a little help

kobra:

You would have to hard code these additional links to your other pages in a copy of the includes/templates/template_default/templates/tpl_modules_categories_tabs.php

Are these html pages??

If so why not create ezpages and paste your code into them for these and keep this manageable from a common interface?

Ah, never thought about it that way...

27 Mar 2007, 4:13 AM
#5
ashmark avatar

ashmark

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Re: Need a little help

Thank you for the replies! Will have to read up on EZPages and give it a try.