fry Posted July 9, 2005 Posted July 9, 2005 Hi Would someone be kind enough to tell me how to add another navigation link for the following site, before 'My Account' whether you are logged in or not http://www.townhousegallery.co.uk/shop/ Many Thanks in advance :D
fry Posted July 9, 2005 Author Posted July 9, 2005 I think I've sorted it by putting, <b>News & Events</b> | BEFORE <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> in header.php, but I'm not sure whether this will appear when a user is logged in and I can't test at the moment because it doesn't have an SSL cert.... ...so if someone could tell me if it will work when logged in I would be very grateful Thanks
garrone Posted July 9, 2005 Posted July 9, 2005 I think I've sorted it by putting, <b>News & Events</b> | BEFORE <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> in header.php, but I'm not sure whether this will appear when a user is logged in and I can't test at the moment because it doesn't have an SSL cert.... ...so if someone could tell me if it will work when logged in I would be very grateful Thanks <{POST_SNAPBACK}> You have to add this code: <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_YOURFILENALE, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_WHATYOUWANT; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_WHATYOUWANT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_WHATYOUWANT; ?></a> | Giovanni Putignano
fry Posted July 9, 2005 Author Posted July 9, 2005 Thanks, would this be put AFTER the lines above?? :D
garrone Posted July 9, 2005 Posted July 9, 2005 You have to put it where you wanto to appear the link to News and Events. Giovanni Putignano
Recommended Posts
Archived
This topic is now archived and is closed to further replies.