monster061 Posted March 20, 2008 Posted March 20, 2008 Hi, My idea is when a customer logs in my site his first and last name to appear somewhere in the header like Welcome Mike Taylor or whatever and this thing to stay there until the customer doesn't logoff/logout. Does someone know a contribution that can do this or anything. I tried several but nothing worked The creator of www.futomart.com
germ Posted March 20, 2008 Posted March 20, 2008 Some code like this in the header works: <?php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { echo '<tr class="header"><td>'; echo 'Welcome ' . tep_output_string_protected($customer_first_name) . '!'; echo '</td> </tr>'; } ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
monster061 Posted March 20, 2008 Author Posted March 20, 2008 I'll try it out right now, thanks The creator of www.futomart.com
monster061 Posted March 20, 2008 Author Posted March 20, 2008 Yep this works. Now it is funny that when you login on my site the "create account" and "customer login" fields stay in the header. Can I somehow make them Dissapear and in their place add "Welcome Mike Taylor" and "Go to account" ? The creator of www.futomart.com
germ Posted March 20, 2008 Posted March 20, 2008 Post the code from your /includes/header.php file (between CODE tags to preserve formatting) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
monster061 Posted March 20, 2008 Author Posted March 20, 2008 Thats a heavy task for me to accomplish, is there any contribution that can guide me step by step ? The creator of www.futomart.com
germ Posted March 20, 2008 Posted March 20, 2008 No because you have a template. It's not "standard" osC. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.