| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Multiple emails for order notification | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Multiple emails for order notification
Based on: http://forum.x-cart.com/showthread.php?t=34487
So I spent some time trying to figure this out and then it turned out to be much simpler than I was making it. This is for Version 4.3.2 The following mod is for SMS text/emails. This can easily be modified to email the full notification to multiple addresses. Instead of using: Code:
Code:
STEP 1: For Processed Orders Open include/func/func.order.php Got to Line: 1294 PHP Code:
Replace code with: PHP Code:
Version 2 (Optional) STEP 1: For Initial Order notification to the Order Department Open include/func/func.order.php Goto Line 1493 PHP Code:
Replace with: PHP Code:
STEP 2 (SMS email subject line): Create New File (in skin1/mail folder): order_notification_sms_subj.tpl File Contents: Code:
STEP 3 (SMS email body line): Create New File (in skin1/mail folder): order_notification_sms.tpl File Contents: Code:
The above message body code shows the Order Number, Customer Name, Customer Phone, Customer State, Each Product SKU (Quantity), and Order Total Amount ($). Comment out those you do not wish displayed, or add other variables you would like to see. Just remember you only have about 150-160 characters per SMS alert message. Please let me know if you find this useful. I haven't tested it in the newest version of X-Cart, but once you find the matching old code, then inserting the new SMS code should be a snap. Tested on X-Cart 4.3.2 I tested this to one of my other email accounts that was different than my test account, before linking it to the SMS email of the phone I wanted to use. Here's a list of SMS address per carrier: HERE IS A LIST OF SOME POPULAR SMS EMAIL ADDRESS FORMATS: Alltel: phonenumber@message.alltel.com AT&T Wireless: (now Cingular): phonenumber@mmode.com Boost Mobile: phonenumber@myboostmobile.com Cingular: phonenumber@cingularme.com Metro PCS: phonenumber@mymetropcs.com Nextel: phonenumber@messaging.nextel.com Ntelos: phonenumber@pcs.ntelos.net Orange: phonenumber@orange.net Sprint (now Sprint Nextel): phonenumber@messaging.sprintpcs.com T-Mobile: phonenumber@tmomail.net US Cellular: 10digit number@email.uscc.net Verizon: phonenumber@vtext.com Virgin Mobile: phonenumber@vmobl.com
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Multiple emails for order notification
I thought about doing this and found your code. I have checked to make sure that I did everything.
I am only running the Processed Orders version (1st one), and although I still get my email notifications, it does not send out the text message. BTW - as a test, I wrote a simple php script with an input form, just to make sure that my carrier works - and it does. This is the code (xxxx = my phone number): mail("xxxxxxxxxx@txt.att.net", "", $message, "From: Carl\r\n");
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#3
|
|||||||
|
|||||||
Re: Multiple emails for order notification
Thanks Carl, I know how it works.
But I didn't add anything to my code other than what I posted above. And as far as working with the carrier, it's a myth that you need a program or connector to send emails to cell phones through their SMS@mobile.com address. There are other reason to have a connector, but it is not required in this instance. Instead of putting the SMS text message email address in the $smsmail field, try using an alternative email address. One of the problems I ran into was that my X-cart configuration did not send out emails for processed notifications. Initial Order Notification was the way mine was configured. Mike
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Multiple emails for order notification
OK - Will look into that and get back to you. In the meantime, I just put my generic text line of code into the function to check to see if it works.
I will report back what I find.
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|