Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Does this exist ?


monster061

Recommended Posts

Posted

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

Posted

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 >

Posted

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

Posted

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 >

Posted

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

Posted

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 >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...