Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    57
    Plugin Contributions
    0

    Default User Logged In - Header Links do not work

    When I have a user logged into my site, all of the header links
    (
    # Log Out
    # My Account
    # Shopping Cart
    # Checkout
    )

    just go to the root website URL.

    In the .PHP file in tpl_header.php they are:
    PHP Code:
    <?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') {
            
    ?>
    Any Thoughts?
    What's an ASP.NET Developer doing here...?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: User Logged In - Header Links do not work

    Where can we see this site??

  3. #3
    Join Date
    Jun 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: User Logged In - Header Links do not work

    littlewdiapers.com
    What's an ASP.NET Developer doing here...?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: User Logged In - Header Links do not work

    Did you edit your tpl_header.php file???

    Straight from your view source & notice the paired set of quotes that have nothing in them but the link outside of them
    Code:
    <div id="navMenu">
    	<div class="breadCrumb">
    		<ul>
    			<li>
    				<a href="http://littlewdiapers.com/">				Home				</a>
    			</li>
    						<li>
    				<a href=""
    					http://littlewdiapers.com/index.php?main_page=login">Log In				</a>
    
    			</li>
    			
    					</ul>

  5. #5
    Join Date
    Jun 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: User Logged In - Header Links do not work

    Hmm can't believe I missed that. I've fixed it in the header file. Seems my editor added the extra value quotes when it only saw one.
    What's an ASP.NET Developer doing here...?

  6. #6
    Join Date
    Jun 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: User Logged In - Header Links do not work

    Thanks as well.
    What's an ASP.NET Developer doing here...?

 

 

Similar Threads

  1. My Shipping estimator does not work for guests / users not logged in
    By bgroup99 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 10 Nov 2011, 07:27 PM
  2. Persistent header links across CMS' for seamless logged in users?
    By swamyg1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2011, 10:09 AM
  3. my tax not shown unless a user is logged in
    By ellbourn in forum General Questions
    Replies: 4
    Last Post: 18 Jan 2010, 06:42 AM
  4. Shipping Estimator does not work for me when not logged in
    By speedraceratl in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Aug 2009, 06:14 PM
  5. How do I show quantity discounts when user not logged in?
    By carystevens in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Jul 2009, 04:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg