Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Username Display help!


Jaskaran

Recommended Posts

Posted

Hello Friends..i need a quick reply

I want to display "Firstname" or "email" of customer in Header.php after login on my site. how i can do it??

All replies would be apperciate..thanks!!

Posted

move the code from the index.php to anywhere you want it.

 

<?php echo tep_customer_greeting(); ?> You will need to give it a style.

 

Modify includes>languages>english.php lines 284 to 286 to what you want to say.

Posted

Thanks for reply Lola!!

But i want to display "name" or "email" of customer which he/she uses for login on my site..

Just Like when you Login on my site..A Quote will disply "Welcome Lola"..

Posted

Well, that's exactly how that code works. Before they Log in My guest code just says "Hello". Then when they log in it says It says "Hello Lola What can I help you find today?" and is linked to advanced search.

Posted

You need to add:

 

             echo '<strong>' . HEADER_LOGIN_TITLE_GREETING . ' '  . $customer_first_name . '</strong>';

 

within a cell in your header First bit shows the greeting and the second the customer's first name

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Archived

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

×
×
  • Create New...