View Single Post
  #5  
Old 08-25-2009, 04:41 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: How to add SMS notification

Quote:
Originally Posted by robertswww
Hi Learner,


In regards to your question 2, if you would also like the SMS message to go to the customer... I have not tried that yet, but here is an idea:

First add some code to collect the customer's SMS address during checkout (i.e. cell phone number with carrier's sms domain). Assign this to the variable $customer_sms_email;

Next, look in include/func/func.order.php and find the line were the Order Processed Email is sent to the customer:
Code:
func_send_mail($userinfo["email"], "mail/order_cust_processed_subj.tpl", $mail_body_template, $config["Company"]["orders_department"], false);

Then, just add the same SMS code to that section, as shown in my Version 2 in Post #2 above, but modified for $customer_sms_email
Code:
$customer_sms_email = "10digitCellNumber@cingularme.com"; func_send_mail($customer_sms_email, "mail/order_notification_sms_subj.tpl", "mail/order_notification_sms.tpl", $config["Company"]["orders_department"], false);

As I said, I have not tried that version yet, so just do some testing on a test site until you getting working the way you want with some test orders.

Robert

Thanks Robert for your quick response.I want your help to send sms notification that goes to customer's only.Can you help me ?

Thank you.
__________________
4.6.1 Platinum


Reply With Quote