Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Notify Me If Customer Changes Their Contact Details?


Guest

Recommended Posts

Posted

Hi,

 

Does anyone know, if there is a contribution or way I can be notified in any by if a customer changes their personal details?

 

I have looked everywhere but can't seem to find anything.

 

Thanks

 

Sam

Posted

In address_book_process.php under the line:

	  $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_UPDATED, 'success');

 

You could add something like this (very basic):

$email_message = 'Address change:' . "\n\n";
$email_message .= 'Customer ID:' . $customer_id . "\n";
$email_message .= 'Customer:' . $customers_firstname . ' ' . $lastname . "\n";

 tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Address change', $email_message, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Posted

Thankyou for your reply, this helps a great deal.

 

Is there any way I can add a link to the email, say: ../admin/customers.php?page=1&cID=3&action=edit

 

So when I receive the email notification, I can click on the link and view the change? for example for customer with ID 1 above?

 

Thanks again for your help.

 

Sam

 

 

 

 

In address_book_process.php under the line:

	  $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_UPDATED, 'success');

 

You could add something like this (very basic):

$email_message = 'Address change:' . "\n\n";
$email_message .= 'Customer ID:' . $customer_id . "\n";
$email_message .= 'Customer:' . $customers_firstname . ' ' . $lastname . "\n";

 tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Address change', $email_message, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Posted
$email_message = 'Address change:' . "\n\n";
$email_message .= 'Customer ID:' . $customer_id . "\n";
$email_message .= 'Customer:' . $customers_firstname . ' ' . $lastname . "\n";
$email_message .= 'Link: <a href="http://www.mydomain.com/catalog/admin/customers.php?selected_box=customers&cID='.$customer_id.'&action=edit">View customer changes</a>' . "\n\n";
$email_message .= 'Or copy paste following link in your browsers address bar if HTML mail is disabled: http://www.mydomain.com/catalog/admin/customers.php?selected_box=customers&cID='.$customer_id.'&action=edit' . "\n\n";

Archived

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

×
×
  • Create New...