Forums / Templates, Stylesheets, Page Layout / Buttons in main pg header

Buttons in main pg header

Locked

Started by kburner on 5 Sep 2009, 11:49 PM · Views: 3,097

Results 21 to 23 of 23
This thread is locked. New replies are disabled.
12 Sep 2009, 12:27 PM
#21
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Buttons in main pg header

clydejones:

Don't forget to include the <span> </span> tags.

<div id="navMain"> <ul> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGOFF; ?></span></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><span><?php echo HEADER_TITLE_LOGIN; ?></span></a></li> <?php } } ?>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><soan><?php echo HEADER_TITLE_MY_ACCOUNT; ?></span></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS; ?></span></a></li>
<?php }?> </ul> </div> ```

Thank you so much for your help!!:clap::clap::clap::clap:

It sure did make my day! Kim

kburner
Burner Christian Bookstore
https://www.burnerbooks.com

12 Sep 2009, 2:54 PM
#22
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Buttons in main pg header

kburner:

Thank you so much for your help!!:clap::clap::clap::clap:

It sure did make my day! Kim

Glad to help.

I forgot one thing. right now the shopping cart button won't display until there is an item actually in the cart.

If you want to change that you'll need to open tpl_header.php and delete the highlighted portions of the following code.

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span><?php echo HEADER_TITLE_CART_CONTENTS; ?></span></a></li>

<?php }?>

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

2 Oct 2009, 10:31 PM
#23
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Buttons in main pg header

I comment this feedback, so I can have this in my record :clap: