New Zenner
- Join Date:
- Jan 2008
- Posts:
- 8
- Plugin Contributions:
- 0
Modifying tpl_header.php with new link to pass cust_id to new page
<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>
PUT LINE HERE FOR MY MOVIES
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php
echo HEADER_TITLE_MY_ACCOUNT; ?></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 } } ?>
I want to add a link that says "My Movies" next to the Log Out link.
The "My Movies" page is a custom page i made in php/mysql.
Ive noted above where the link should go, but i do not know all this Zen Cart stuff that good. When they click the link, for "My Movies", it needs to pass the customer_id of the user currently logged in to the php page I created.
Can someone help me with the line of code to do this, i usually do it with a form and button to pass a variable to another php page, never done it using just a text link. (and im a novice php programmer anyways)
thanks!!