Guest Posted June 6, 2007 Posted June 6, 2007 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
oschellas Posted June 6, 2007 Posted June 6, 2007 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);
Guest Posted June 12, 2007 Posted June 12, 2007 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);
oschellas Posted June 13, 2007 Posted June 13, 2007 $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";
Recommended Posts
Archived
This topic is now archived and is closed to further replies.