Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default my account button

    i have created my own temple and i have just realised i dont have a button for people to view there account.

    whats the php code i need to create a my account button which will only display if the user is loged in??

    or is there a side box i can use??

  2. #2
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: my account button

    sorted got the code from the default template.

    Code:
                        <a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo HEADER_TITLE_CATALOG; ?></a> |
                    
                        <?php if ($_SESSION['customer_id']) { ?>
                            <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
                        <?php
                              } else {
                                if (STORE_STATUS == '0') {
                        ?>
                            <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
                        <?php } } ?>  
                        
                        <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
                            | <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>
                        <?php } ?>

 

 

Similar Threads

  1. Missing Customer Login/My Account button
    By Pookiehair in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2011, 05:29 PM
  2. Submit button Missing on Create Account
    By bigsmile in forum General Questions
    Replies: 7
    Last Post: 29 Aug 2010, 11:34 AM
  3. Missing Customer Login/My Account button
    By Underdawg135 in forum General Questions
    Replies: 3
    Last Post: 6 Nov 2009, 11:21 PM
  4. 'My Account' button?
    By marbles in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Nov 2008, 12:46 PM
  5. Disappearing SUBMIT button on create account
    By tvadpro in forum Managing Customers and Orders
    Replies: 25
    Last Post: 5 Jun 2008, 12:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR