messagebird-magento - Version 1.0.1

Version Notes

- Text updates

Download this release

Release Info

Developer MessageBird
Extension messagebird-magento
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (38) hide show
  1. README.md +0 -29
  2. app/code/community/MessageBird/SmsConnector/etc/config.xml +1 -1
  3. app/design/adminhtml/default/default/template/messagebird_smsconnector/system/config/form/field/orderstatuses.phtml +0 -10
  4. lib/MessageBird/._Client.php +0 -0
  5. lib/MessageBird/._Common +0 -0
  6. lib/MessageBird/._Exceptions +0 -0
  7. lib/MessageBird/._Objects +0 -0
  8. lib/MessageBird/._Resources +0 -0
  9. lib/MessageBird/._ca-bundle.crt +0 -0
  10. lib/MessageBird/Client.php +17 -0
  11. lib/MessageBird/Common/._Authentication.php +0 -0
  12. lib/MessageBird/Common/._HttpClient.php +0 -0
  13. lib/MessageBird/Common/._ResponseError.php +0 -0
  14. lib/MessageBird/Exceptions/._AuthenticateException.php +0 -0
  15. lib/MessageBird/Exceptions/._BalanceException.php +0 -0
  16. lib/MessageBird/Exceptions/._HttpException.php +0 -0
  17. lib/MessageBird/Exceptions/._MessageBirdException.php +0 -0
  18. lib/MessageBird/Exceptions/._RequestException.php +0 -0
  19. lib/MessageBird/Exceptions/._ServerException.php +0 -0
  20. lib/MessageBird/Objects/._Balance.php +0 -0
  21. lib/MessageBird/Objects/._Base.php +0 -0
  22. lib/MessageBird/Objects/._BaseList.php +0 -0
  23. lib/MessageBird/Objects/._Hlr.php +0 -0
  24. lib/MessageBird/Objects/._Lookup.php +0 -0
  25. lib/MessageBird/Objects/._Message.php +0 -0
  26. lib/MessageBird/Objects/._Recipient.php +0 -0
  27. lib/MessageBird/Objects/._Verify.php +0 -0
  28. lib/MessageBird/Objects/._VoiceMessage.php +0 -0
  29. lib/MessageBird/Resources/._Balance.php +0 -0
  30. lib/MessageBird/Resources/._Base.php +0 -0
  31. lib/MessageBird/Resources/._Hlr.php +0 -0
  32. lib/MessageBird/Resources/._Lookup.php +0 -0
  33. lib/MessageBird/Resources/._LookupHlr.php +0 -0
  34. lib/MessageBird/Resources/._Messages.php +0 -0
  35. lib/MessageBird/Resources/._Verify.php +0 -0
  36. lib/MessageBird/Resources/._VoiceMessage.php +0 -0
  37. lib/MessageBird/autoload.php +0 -0
  38. package.xml +9 -9
README.md DELETED
@@ -1,29 +0,0 @@
1
- # MessageBird Magento Plugin
2
-
3
- The purpose of this extension is to allow Magento Shop owners to keep their users informed about their orders using the power of MessageBird's SMS platform.
4
-
5
- Currently this extension is **under development** and only two events are supported.
6
-
7
- 1. Send an SMS message when a new order is placed to either Customer, Seller or to both
8
- 2. Send an SMS to the customer when the status of the order has changed.
9
-
10
- These events can be enabled/disabled and configured in the configuration section of the Magento Shop. General information such as Access Key to the API, Originator and Seller’s numbers can be configured in this section.
11
-
12
-
13
- ## How to install ##
14
-
15
- ####Make sure that you have a backup of your Magento files and database before doing anything.####
16
-
17
- 1. Using any FTP client (for a remote server) to move the files to the appropriate destination within your Magento project.
18
- 2. Go to Magento's Admin page and make sure you refresh the Configuration cache where modules configuration are stored ( **System >> Cache Management** ).
19
- 3. Go to **System >> Configuration >> Advanced** and make sure that the MessagedBird_SmsConnector module is visible and enabled.
20
- 4. Log out and log in again (if you skip this step, the Module’s configuration may not work correctly).
21
-
22
-
23
- ## Configure ##
24
-
25
- 1. Go to **System >> Configuration >> MessageBird SMS Configuration**
26
- 2. Click on 'MessageBird Account Configuration' to expand the view and fill in the required information. If you do not have an API Access Key, go to your MessageBird account and [create one](https://www.messagebird.com/app/en/settings/developers/access). Make sure to add your country code in your Seller's phone number (e.g +31694...).
27
- 3. There is a section for each event. To enable them click on the name to expand and set the 'Enabled' field to 'Yes'.
28
- 4. We provide some default messages that will be sent out to your customers. You can customize them to your liking. At the moment there 4 variables that can be used (:firstname:, :lastname:, :orderid: and :orderstatus:). The real values will be placed into the messages upon creation.
29
- 5. Click on Save Config
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/MessageBird/SmsConnector/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <MessageBird_SmsConnector>
5
- <version>1.0.0</version>
6
  </MessageBird_SmsConnector>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <MessageBird_SmsConnector>
5
+ <version>1.0.1</version>
6
  </MessageBird_SmsConnector>
7
  </modules>
8
 
app/design/adminhtml/default/default/template/messagebird_smsconnector/system/config/form/field/orderstatuses.phtml DELETED
@@ -1,10 +0,0 @@
1
- <input type="hidden" name="<?php echo $this->getNamePrefix() ?>" value="" />
2
- <ul class="checkboxes">
3
- <?php foreach ($this->getValues() as $name => $label): ?>
4
- <li>
5
- <input type="checkbox" value="<?php echo $name?>" name="<?php echo $this->getNamePrefix() ?>[]" id="<?php echo $this->getHtmlId() . '_' . $name ?>"<?php echo ($this->getIsChecked($name) ? ' checked="checked"' : '') ?>/><label for="<?php echo $this->getHtmlId() . '_' . $name ?>">
6
- <?php echo $label ?>
7
- </label>
8
- </li>
9
- <?php endforeach;?>
10
- </ul>
 
 
 
 
 
 
 
 
 
 
lib/MessageBird/._Client.php DELETED
Binary file
lib/MessageBird/._Common DELETED
Binary file
lib/MessageBird/._Exceptions DELETED
Binary file
lib/MessageBird/._Objects DELETED
Binary file
lib/MessageBird/._Resources DELETED
Binary file
lib/MessageBird/._ca-bundle.crt DELETED
Binary file
lib/MessageBird/Client.php CHANGED
@@ -2,6 +2,23 @@
2
 
3
  namespace MessageBird;
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  /**
6
  * Class Client
7
  *
2
 
3
  namespace MessageBird;
4
 
5
+ /**
6
+ * Thomas Kerkhof @ Notive, 25-Feb-2015:
7
+ * Autoloader for unregistered functions within this namespace.
8
+ * Include once is executed twice for windows and unix system compatibility
9
+ */
10
+ spl_autoload_register(
11
+ function ($class_name)
12
+ {
13
+ // error_log('loading in '.__NAMESPACE__.': '.$class_name);
14
+ $file = $class_name . '.php';
15
+ $file = preg_replace('/'.__NAMESPACE__.'\\\\/', '', $file);
16
+ include_once $file;
17
+ $file = preg_replace('/\\\\/', '/', $file);
18
+ include_once $file;
19
+ }
20
+ );
21
+
22
  /**
23
  * Class Client
24
  *
lib/MessageBird/Common/._Authentication.php DELETED
Binary file
lib/MessageBird/Common/._HttpClient.php DELETED
Binary file
lib/MessageBird/Common/._ResponseError.php DELETED
Binary file
lib/MessageBird/Exceptions/._AuthenticateException.php DELETED
Binary file
lib/MessageBird/Exceptions/._BalanceException.php DELETED
Binary file
lib/MessageBird/Exceptions/._HttpException.php DELETED
Binary file
lib/MessageBird/Exceptions/._MessageBirdException.php DELETED
Binary file
lib/MessageBird/Exceptions/._RequestException.php DELETED
Binary file
lib/MessageBird/Exceptions/._ServerException.php DELETED
Binary file
lib/MessageBird/Objects/._Balance.php DELETED
Binary file
lib/MessageBird/Objects/._Base.php DELETED
Binary file
lib/MessageBird/Objects/._BaseList.php DELETED
Binary file
lib/MessageBird/Objects/._Hlr.php DELETED
Binary file
lib/MessageBird/Objects/._Lookup.php DELETED
Binary file
lib/MessageBird/Objects/._Message.php DELETED
Binary file
lib/MessageBird/Objects/._Recipient.php DELETED
Binary file
lib/MessageBird/Objects/._Verify.php DELETED
Binary file
lib/MessageBird/Objects/._VoiceMessage.php DELETED
Binary file
lib/MessageBird/Resources/._Balance.php DELETED
Binary file
lib/MessageBird/Resources/._Base.php DELETED
Binary file
lib/MessageBird/Resources/._Hlr.php DELETED
Binary file
lib/MessageBird/Resources/._Lookup.php DELETED
Binary file
lib/MessageBird/Resources/._LookupHlr.php DELETED
Binary file
lib/MessageBird/Resources/._Messages.php DELETED
Binary file
lib/MessageBird/Resources/._Verify.php DELETED
Binary file
lib/MessageBird/Resources/._VoiceMessage.php DELETED
Binary file
lib/MessageBird/autoload.php CHANGED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
- <name>messagebird-magento</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>BSD-2</license>
7
  <channel>community</channel>
@@ -16,9 +16,9 @@
16
  &lt;ul&gt;&#xD;
17
  &lt;li&gt;Send custom SMS messages on order placement to customer, seller or both.&lt;/li&gt;&#xD;
18
  &lt;li&gt;Send automatic SMS messages on status changes. For example: letting your customers know when their order is shipped.&lt;/li&gt;&#xD;
19
- &lt;li&gt;Use variables to personalise and customize SMS messages. For example: &#x201C;Hi :firstname:! Thank you for your order #:orderid:. We'll start with it right away!&#x201D;&lt;/li&gt;&#xD;
20
- &lt;li&gt;In many countries you can use your own sender ID like &#x201C;PizzaPalace&#x201D; or &#x201C;ShirtDirect&#x201D;.&lt;/li&gt;&#xD;
21
- &lt;li&gt;You can schedule your SMS messages so customers don&#x2019;t receive messages at unusual times.&lt;/li&gt;&#xD;
22
  &lt;li&gt;Get live statistics on who received the messages and when, from our MessageBird dashboard.&lt;/li&gt;&#xD;
23
  &lt;/ul&gt;&#xD;
24
  &#xD;
@@ -28,15 +28,15 @@
28
  &#xD;
29
  &lt;h3&gt;Support&lt;/h3&gt;&#xD;
30
  &#xD;
31
- &lt;p&gt;Question or ideas how we can improve? Let us know at &lt;a href="mailto:support@messagebird.com"&gt;support@messagebird.com&lt;/a&gt;. We&#x2019;re here to help!&lt;/p&gt;&#xD;
32
  &#xD;
33
  &lt;p&gt;Learn more about MessageBird and our services at &lt;a href="https://www.messagebird.com"&gt;www.messagebird.com&lt;/a&gt;.&#xD;
34
  More information on our API can be found at &lt;a href="https://www.messagebird.com/developers"&gt;www.messagebird.com/developers&lt;/a&gt;.&lt;/p&gt;</description>
35
  <notes>- Text updates</notes>
36
  <authors><author><name>MessageBird</name><user>messagebird</user><email>support@messagebird.com</email></author></authors>
37
- <date>2016-01-20</date>
38
- <time>12:35:59</time>
39
- <contents><target name="magecommunity"><dir name="MessageBird"><dir><dir name="SmsConnector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Orderstatuses.php" hash="393fa11bbad7cf809fe3519b0e323e17"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="394c37b0e0e792e79de6af08e12b6521"/></dir><dir name="Model"><file name="Observer.php" hash="e229b92b03d82703731c1018d7a4ad23"/><file name="Orderstatuses.php" hash="8d1d1c589254131d36feb20fd75ead53"/><file name="Sendmessageto.php" hash="68dd6b2d8d424b9f5f2f1301182f350a"/></dir><dir name="etc"><file name="config.xml" hash="51a25f440c4b7cd21d9100b4ce9d7c5f"/><file name="system.xml" hash="6233fe976434d18de6406821d15889dc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="messagebird_smsconnector"><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="orderstatuses.phtml" hash="80fc982ae1ffbfdeddda360f5ab6e6b8"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="MessageBird"><file name="Client.php" hash="91864cf197bea29f3ae06864b5c574af"/><dir><dir name="Common"><file name="Authentication.php" hash="17cad0ba9897e4c438997369d101226a"/><file name="HttpClient.php" hash="a432db503282ebdc722f2c04e1c164a5"/><file name="ResponseError.php" hash="cdc3b13edf3addd8d12f450d3dafb190"/></dir><dir name="Exceptions"><file name="AuthenticateException.php" hash="f4e08e9e26beb378d52e5e2dd88a4f68"/><file name="BalanceException.php" hash="23ca8d61bfc1aa5728ab59196ccf0f4d"/><file name="HttpException.php" hash="be5e9a8de66541a5d5000d6ee6c02e9a"/><file name="MessageBirdException.php" hash="f185609044f0fda6af53934fb2083383"/><file name="RequestException.php" hash="a819061cb1ff7861782a802e32e949af"/><file name="ServerException.php" hash="b7ba55cb2e725e8b3a8088e5c34cd657"/></dir><dir name="Objects"><file name="Balance.php" hash="0c48120095b983191cf47dfaa2543310"/><file name="Base.php" hash="20a6fb98a5d45c617bcd08f19155038e"/><file name="BaseList.php" hash="02ff5961f171c0579237eae2d80dd52e"/><file name="Hlr.php" hash="ed11316c8423d669d0764e23ffe1b018"/><file name="Message.php" hash="f3c80b7513db4721906997ef5d7745b2"/><file name="Otp.php" hash="fc5cd24e02ed7b62c3e0c3a7b49e9011"/><file name="Recipient.php" hash="5b44bd001a599d884f0d0c65a758d46e"/><file name="VoiceMessage.php" hash="1c649e5e70140b697c016f657f4d035e"/></dir><dir name="Resources"><file name="Balance.php" hash="d751876e225ea5bb8e939b3e49858a5c"/><file name="Base.php" hash="80207e5b83b2fed188b5dd37c7fd5a54"/><file name="Hlr.php" hash="a286111658d3559e01944230fdcb7adb"/><file name="Messages.php" hash="900df9b9f92e8db966e358cf9cc46c67"/><file name="Otp.php" hash="1400fc5a16718a6fbd02fba74d8ee140"/><file name="VoiceMessage.php" hash="774bc57543bb0b8cdd6ee48bf4fcf96e"/></dir></dir><file name="autoload.php" hash="972f263f2ef6637310ef5aca977c8687"/></dir></target><target name="mageetc"><dir name="modules"><file name="MessageBird_SmsConnector.xml" hash="511cb2af6ffb295b83d802563f5828b6"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>7.0.2</max></php></required></dependencies>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
+ <name>Messagebird</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>BSD-2</license>
7
  <channel>community</channel>
16
  &lt;ul&gt;&#xD;
17
  &lt;li&gt;Send custom SMS messages on order placement to customer, seller or both.&lt;/li&gt;&#xD;
18
  &lt;li&gt;Send automatic SMS messages on status changes. For example: letting your customers know when their order is shipped.&lt;/li&gt;&#xD;
19
+ &lt;li&gt;Use variables to personalise and customize SMS messages. For example: &amp;#x201C;Hi :firstname:! Thank you for your order #:orderid:. We'll start with it right away!&amp;#x201D;&lt;/li&gt;&#xD;
20
+ &lt;li&gt;In many countries you can use your own sender ID like &amp;#x201C;PizzaPalace&amp;#x201D; or &amp;#x201C;ShirtDirect&amp;#x201D;.&lt;/li&gt;&#xD;
21
+ &lt;li&gt;You can schedule your SMS messages so customers don&amp;#x2019;t receive messages at unusual times.&lt;/li&gt;&#xD;
22
  &lt;li&gt;Get live statistics on who received the messages and when, from our MessageBird dashboard.&lt;/li&gt;&#xD;
23
  &lt;/ul&gt;&#xD;
24
  &#xD;
28
  &#xD;
29
  &lt;h3&gt;Support&lt;/h3&gt;&#xD;
30
  &#xD;
31
+ &lt;p&gt;Question or ideas how we can improve? Let us know at &lt;a href="mailto:support@messagebird.com"&gt;support@messagebird.com&lt;/a&gt;. We&amp;#x2019;re here to help!&lt;/p&gt;&#xD;
32
  &#xD;
33
  &lt;p&gt;Learn more about MessageBird and our services at &lt;a href="https://www.messagebird.com"&gt;www.messagebird.com&lt;/a&gt;.&#xD;
34
  More information on our API can be found at &lt;a href="https://www.messagebird.com/developers"&gt;www.messagebird.com/developers&lt;/a&gt;.&lt;/p&gt;</description>
35
  <notes>- Text updates</notes>
36
  <authors><author><name>MessageBird</name><user>messagebird</user><email>support@messagebird.com</email></author></authors>
37
+ <date>2016-03-02</date>
38
+ <time>12:06:30</time>
39
+ <contents><target name="magecommunity"><dir name="MessageBird"><dir name="SmsConnector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Orderstatuses.php" hash="393fa11bbad7cf809fe3519b0e323e17"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="394c37b0e0e792e79de6af08e12b6521"/></dir><dir name="Model"><file name="Observer.php" hash="e229b92b03d82703731c1018d7a4ad23"/><file name="Orderstatuses.php" hash="8d1d1c589254131d36feb20fd75ead53"/><file name="Sendmessageto.php" hash="68dd6b2d8d424b9f5f2f1301182f350a"/></dir><dir name="etc"><file name="config.xml" hash="40d287937cacc7d389217de26be1c7c6"/><file name="system.xml" hash="c29831d2e046dcbf5973c8bf169c8c57"/></dir></dir></dir></target><target name="magelib"><dir name="MessageBird"><file name="Client.php" hash="7a2616b283e60b20901bf8177548fcb1"/><dir name="Common"><file name="Authentication.php" hash="17cad0ba9897e4c438997369d101226a"/><file name="HttpClient.php" hash="10127c3a0ba708cede93e59bbd3f6400"/><file name="ResponseError.php" hash="cdc3b13edf3addd8d12f450d3dafb190"/></dir><dir name="Exceptions"><file name="AuthenticateException.php" hash="f4e08e9e26beb378d52e5e2dd88a4f68"/><file name="BalanceException.php" hash="23ca8d61bfc1aa5728ab59196ccf0f4d"/><file name="HttpException.php" hash="be5e9a8de66541a5d5000d6ee6c02e9a"/><file name="MessageBirdException.php" hash="f185609044f0fda6af53934fb2083383"/><file name="RequestException.php" hash="a819061cb1ff7861782a802e32e949af"/><file name="ServerException.php" hash="b7ba55cb2e725e8b3a8088e5c34cd657"/></dir><dir name="Objects"><file name="Balance.php" hash="0c48120095b983191cf47dfaa2543310"/><file name="Base.php" hash="20a6fb98a5d45c617bcd08f19155038e"/><file name="BaseList.php" hash="02ff5961f171c0579237eae2d80dd52e"/><file name="Hlr.php" hash="ed11316c8423d669d0764e23ffe1b018"/><file name="Lookup.php" hash="0f79535429e7b7d601302767821a6bea"/><file name="Message.php" hash="0040709bcab09899e80e0a281eb37ebf"/><file name="Recipient.php" hash="5b44bd001a599d884f0d0c65a758d46e"/><file name="Verify.php" hash="c22c8b364195273cb4c8a0590e15aecf"/><file name="VoiceMessage.php" hash="90ce019d1c51a727237b02a7e9a99380"/></dir><dir name="Resources"><file name="Balance.php" hash="d751876e225ea5bb8e939b3e49858a5c"/><file name="Base.php" hash="98c7529792783ea9c350eb805e109331"/><file name="Hlr.php" hash="a286111658d3559e01944230fdcb7adb"/><file name="Lookup.php" hash="ce937a05729753405e6431c8f8e3236f"/><file name="LookupHlr.php" hash="5f8c8e1d8d15935528d2918360fd7d3f"/><file name="Messages.php" hash="900df9b9f92e8db966e358cf9cc46c67"/><file name="Verify.php" hash="ba8c0ec615c6e448121832db40b44923"/><file name="VoiceMessage.php" hash="774bc57543bb0b8cdd6ee48bf4fcf96e"/></dir><file name="autoload.php" hash="972f263f2ef6637310ef5aca977c8687"/><file name="ca-bundle.crt" hash="3c58c3f2435598a942dc37cdb02a3ec3"/></dir></target><target name="mageetc"><dir name="modules"><file name="MessageBird_SmsConnector.xml" hash="511cb2af6ffb295b83d802563f5828b6"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.2.0</min><max>7.0.2</max></php></required></dependencies>
42
  </package>