Details
Send SMS to your clients through default magento email engine and tell them everything they need to know, regarding the order processes.
The module is simple to configure and virtually works with all SMS gateways that uses GET or POST actions to send SMS, such as:
- click-a-tell
- mobyt
- bulksms.com
- mysmsaddress.com
- and a lot more...
* 0.1.1: New features: enable sms to be sent through admin emails (order emails)
* 0.1.0: Introducing the module
To install the module, you just need to extract the files in you website home directory.
You need to subscribe to a SMS gateway accepting HTTP sms sendings. All SMS gateways are virtually compatible with the module, as you can specify required parameters.
You can specify :
- Then submitting method (GET or POST)
- URL of the SMS gateway
- The username
- The password
- Allowed countries
- The attribute used by the customer
The billing address fields are used to get the mobile number. To make the address fields available upon registration, please modify your customer.xml layout file from your template as below:
<reference name="content">
<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
<action method="setShowAddressFields"><columns>1</columns></action>
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before"/>
</block>
</reference>
Don't hesitate to ask your customers to fill the phone field using international phone number like : 336xxxxxxxx
Mobile phone standards must be imported before being able to use the module. You can import CSV files. The needed information are as bellow:
| Country | International code | Mobile code | Regex mask |
| FR | +33 | 6 | /(06|00336|\+336|336)(\d{8})/i |
| FR | +33 | 7 | /(07|00337|\+337|337)(\d{8})/i |
FR = the iso code for France
+33 = the international code for France
6 = the mobile code number
Click here to download a sample of csv file
/(06|00336|\+336|336)(\d{8})/i = regular expression that is required to check the validity of the phone number
06|00336|\+336|336 : all common phone number writing. For our case, it would be 06 or 00336 or +336 or 336
\d{8} : this means that there will be 8 numbers after the mobile code
Please find International mobile number standers here : http://en.wikipedia.org/wiki/List_of_mobile_phone_codes_by_country
All dashes or dots are automatically removed. If a phone number is not correct, the extension will not try to send the SMS.
To add SMS message, you will have add <sms> tags in your email template. It could be as below :
Email text...
Email text...
<sms>Sms message</sms>
You can also use variables as you normally use them within email templates.
If you have any issues with regular expressions in csv file, our team will be glad to help you making a correct one.
Here are example of SMS gateways configuration :
* click-a-tell configuration
url: http://api.clickatell.com/http/sendmsg
parameters: user={{user}}&password={{pass}}&api_id=YOUR_API_ID&to={{phone_number}}&text={{text_message}}
format tel: international without + sign
* mobyt
url: http://multilevel.mobyt.fr/sms/send.php
parameters: user={{user}}&pass={{pass}}&rcpt={{phone_number}}&data={{text_message}}&sender={{sender}}&qty=ll
format tel: international with + sign
* bulksms.com
url: http://bulksms.vsms.net:5567/eapi/submission/send_sms/2/2.0
parameters: username={{user}}&password={{pass}}&message={{text_message}}&msisdn={{phone_number}}
format tel: international without + sign
* mysmsaddress.com
url: http://66.179.181.59:80/smsc/general/sendsms.jsp
parameters: userid={{user}}&password={{pass}}&submit_name={{sender}}&send_to={{phone_number}}&message_type=0&message_text={{text_message}}
