Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    45
    Plugin Contributions
    0

    Default Display Customer Name Question

    A new zenner trying to customize it to make a little customer friendly.
    What would I place instead of HEADER_TITLE_LOGOFF to show something like "Welcome James"??

    Below code is part of my tpl_header:

    <?php if ($_SESSION['customer_id']) { ?>
    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><p style="text-align: left; margin-top: -5px; margin-bottom: -5px"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php

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

    Default Re: Display Customer Name Question

    If your install is rendering the phraase "HEADER_TITLE_LOGOFF" you have corrupt files or a mis-edit

    Post a url to this
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Display Customer Name Question

    Quote Originally Posted by kobra View Post
    If your install is rendering the phraase "HEADER_TITLE_LOGOFF" you have corrupt files or a mis-edit

    Post a url to this
    Thanks for posting Kobra.
    My [initial] posting probably is somewhat misleading.
    It works fine with HEADER_TITLE_LOGOFF, which shows "Log Out".

    What I wanted it to display instead is "Welcome James!!", using some kind of variable pulled from the session, or even from the DB if it would not take too much of a resource.

    As I'm not much of a programmer or dba, am seeking for some help on php code...

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

    Default Re: Display Customer Name Question

    I believe this is a default function...

    Is this not working for you?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Display Customer Name Question

    Quote Originally Posted by kobra View Post
    I believe this is a default function...

    Is this not working for you?
    Thanks kobra,

    I should've been more specific.
    By default it does displays personalized welcome message fine, utilizing /includes/languages/english/index.php.

    But I wanted it on Header and that's why the code I initially included above was tpl_header.php file from my template.

    I was able to implement alternate header mod that looks somewhat like walmart.com's header and was not able to find the 'code' for php, sql, or the right varible to call customer's name.

    Pasting the code from index.php to tpl_header had no luck...


    I was just shy to post my site, but here it is..toolusa dot com:
    www.toolusa.com.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Display Customer Name Question

    Another asked about this....Juust the code does not work but as far as I have gotten with this is you also need the div to contain it and this is .greeting

    All in the tpl_header.php
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Display customer name after login
    By suraj in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Feb 2010, 12:57 PM
  2. Display Customer Name on Home Page
    By MTProTool.com in forum General Questions
    Replies: 4
    Last Post: 5 Jun 2009, 02:27 PM
  3. Display Group name to Customer in Menu
    By avf in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 3 May 2009, 07:20 AM
  4. Replies: 7
    Last Post: 24 Nov 2008, 04:25 AM
  5. Display customer full name....
    By mpadilla2 in forum Addon Sideboxes
    Replies: 0
    Last Post: 2 Jul 2006, 10:26 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