Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Greeting customer by name


ybtronic

Recommended Posts

Hi everyone,

 

I was wondering if anyone know how to get the customer name from the database and display it.

 

Example I have a pop up window that greet the customer by name.

 

I am looking at the index.php and It is calling tep_customer_greeting but I couldn't find that function anywhere.

 

Can someone please give me some advise I'll Appreciated..

 

Thanks

Vi Huynh

Link to comment
Share on other sites

Try

 

/includes/functions/general.php

 

(Emphasis on try)

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

<?php
 if ( tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id') ) {
echo tep_output_string_protected($customer_first_name);
 }
?>

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...