Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer ID number in Welcome Email


only2empires

Recommended Posts

Posted

Ok, I've sat here now for 2 hours searching to see if anyone has ever tried to do this, but with no luck.

 

Is there a way (and where) to add a code to show the Customers ID number in the Welcome email they receive when they create a new account?

 

All help is appreciated!!! Thanks!

Posted

I am using MS1 and tried this:

in /includes/languages/english/create_account_process.php

 

Find:

 

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>' . "\n\n");

 

and replace with:

 

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>' . "\" .

'You Customer ID is:' . '$customer_id' . \n\n");

 

It showed extra characters. Maybe someone can work with it!

 

Hope this is some help.

Ray

Posted

Thanks.....got it partially to work.

 

If I copy what you have directly, I get this:

 

We welcome you to XXXXXX.

 

Your Customer ID is:$customer_id

 

 

If i use this:

 

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>' . "\n\n" . 'Your Customer ID is: <b>' . $customer_id . '</b>' . "\n\n");

 

 

I get this with no Customer ID shown:

 

We welcome you to XXXXXXXXX

 

Your Customer ID is:

 

 

So, I'm not sure what it needs to make it actually work. I'm using the MS2. If anyone else can pitch in....by all means!!! Got this far...just need to go a little bit further!

 

Thanks!

Posted

Code:

 

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>' . "\n .

 

'You Customer ID is: . $customer_id' . \n\n");

 

 

 

Result:

 

We welcome you to Surf Computing

.

'You Customer ID is: . 176' .

Extra characters, but it's doing it!

Archived

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

×
×
  • Create New...