Version Notes
This is a SMS Service extension.
Download this release
Release Info
Developer | Screen-Magic Mobile Media Inc |
Extension | Onehop_SMSService |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/community/Onehop/SMSService/Block/Adminhtml/Addtemplate.php +11 -3
- app/code/community/Onehop/SMSService/Block/Adminhtml/Edittemplate.php +9 -1
- app/code/community/Onehop/SMSService/Block/Adminhtml/Send.php +4 -3
- app/code/community/Onehop/SMSService/Block/Adminhtml/Smsautomation.php +3 -2
- app/code/community/Onehop/SMSService/Model/System/Config/Source/SmsLabels.php +1 -1
- app/code/community/Onehop/SMSService/controllers/AdminhtmlController.php +5 -5
- app/code/community/Onehop/SMSService/etc/config.xml +1 -1
- app/code/community/Onehop/SMSService/sql/smsservice_setup/{mysql4-install-1.0.1.php → mysql4-install-1.0.2.php} +0 -0
- app/design/adminhtml/default/default/layout/smsservice.xml +1 -1
- package.xml +4 -4
app/code/community/Onehop/SMSService/Block/Adminhtml/Addtemplate.php
CHANGED
@@ -32,12 +32,20 @@ class Onehop_SMSService_Block_Adminhtml_Addtemplate extends Mage_Adminhtml_Block
|
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
-
|
36 |
parent::__construct();
|
37 |
-
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
$this->_addButton('addtemplate', array(
|
42 |
'label' => Mage::helper('smsservice')->__('Save Template'),
|
43 |
'onclick' => 'editForm.submit();',
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
+
|
36 |
parent::__construct();
|
37 |
+
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
+
$this->_removeButton('back');
|
41 |
+
|
42 |
+
$url = $this->getUrl('smsservice/adminhtml/template');
|
43 |
+
$this->_addButton('backtemplate', array(
|
44 |
+
'label' => Mage::helper('smsservice')->__('Back'),
|
45 |
+
'onclick' => "window.location='".$url."'",
|
46 |
+
'class' => 'back'
|
47 |
+
), 1);
|
48 |
+
|
49 |
$this->_addButton('addtemplate', array(
|
50 |
'label' => Mage::helper('smsservice')->__('Save Template'),
|
51 |
'onclick' => 'editForm.submit();',
|
app/code/community/Onehop/SMSService/Block/Adminhtml/Edittemplate.php
CHANGED
@@ -37,7 +37,15 @@ class Onehop_SMSService_Block_Adminhtml_Edittemplate extends Mage_Adminhtml_Bloc
|
|
37 |
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
$this->_addButton('edittemplate', array(
|
42 |
'label' => Mage::helper('smsservice')->__('Update Template'),
|
43 |
'onclick' => 'editForm.submit();',
|
37 |
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
+
$this->_removeButton('back');
|
41 |
+
|
42 |
+
$url = $this->getUrl('smsservice/adminhtml/template');
|
43 |
+
$this->_addButton('backtemplate', array(
|
44 |
+
'label' => Mage::helper('smsservice')->__('Back'),
|
45 |
+
'onclick' => "window.location='".$url."'",
|
46 |
+
'class' => 'back'
|
47 |
+
), 1);
|
48 |
+
|
49 |
$this->_addButton('edittemplate', array(
|
50 |
'label' => Mage::helper('smsservice')->__('Update Template'),
|
51 |
'onclick' => 'editForm.submit();',
|
app/code/community/Onehop/SMSService/Block/Adminhtml/Send.php
CHANGED
@@ -32,12 +32,13 @@ class Onehop_SMSService_Block_Adminhtml_Send extends Mage_Adminhtml_Block_Widget
|
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
-
|
36 |
parent::__construct();
|
37 |
-
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
-
|
|
|
41 |
$this->_addButton('save', array(
|
42 |
'label' => Mage::helper('smsservice')->__('Send SMS'),
|
43 |
'onclick' => 'editForm.submit();',
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
+
|
36 |
parent::__construct();
|
37 |
+
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
+
$this->_removeButton('back');
|
41 |
+
|
42 |
$this->_addButton('save', array(
|
43 |
'label' => Mage::helper('smsservice')->__('Send SMS'),
|
44 |
'onclick' => 'editForm.submit();',
|
app/code/community/Onehop/SMSService/Block/Adminhtml/Smsautomation.php
CHANGED
@@ -32,11 +32,12 @@ class Onehop_SMSService_Block_Adminhtml_Smsautomation extends Mage_Adminhtml_Blo
|
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
-
|
36 |
parent::__construct();
|
37 |
-
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
|
|
40 |
}
|
41 |
|
42 |
/**
|
32 |
$this->_objectId = 'page_id';
|
33 |
$this->_blockGroup = 'smsservice';
|
34 |
$this->_controller = 'adminhtml';
|
35 |
+
|
36 |
parent::__construct();
|
37 |
+
|
38 |
$this->_removeButton('reset');
|
39 |
$this->_removeButton('save');
|
40 |
+
$this->_removeButton('back');
|
41 |
}
|
42 |
|
43 |
/**
|
app/code/community/Onehop/SMSService/Model/System/Config/Source/SmsLabels.php
CHANGED
@@ -61,7 +61,7 @@ class Onehop_SMSService_Model_System_Config_Source_SmsLabels
|
|
61 |
|
62 |
$labelArr = array();
|
63 |
$labelInfo = array();
|
64 |
-
if ($output->labelsList) {
|
65 |
foreach ($output->labelsList as $labelVal) {
|
66 |
$options[] = array(
|
67 |
'value' => $labelVal,
|
61 |
|
62 |
$labelArr = array();
|
63 |
$labelInfo = array();
|
64 |
+
if ($output && isset($output) && isset($output->labelsList) && $output->labelsList) {
|
65 |
foreach ($output->labelsList as $labelVal) {
|
66 |
$options[] = array(
|
67 |
'value' => $labelVal,
|
app/code/community/Onehop/SMSService/controllers/AdminhtmlController.php
CHANGED
@@ -231,7 +231,7 @@ class Onehop_SMSService_AdminhtmlController extends Mage_Adminhtml_Controller_Ac
|
|
231 |
{
|
232 |
$orderfeature = (isset($orderdata['orderactivateFeature'])) ? $orderdata['orderactivateFeature'] : '0';
|
233 |
$ordertemp = $orderdata['ordersmstemplate'];
|
234 |
-
$orderlabel = $orderdata['ordersmslabel'];
|
235 |
$ordersenderid = $orderdata['ordersenderid'];
|
236 |
if (! $ordertemp) {
|
237 |
$errormessage = 'Please select template for order confirmation.';
|
@@ -272,7 +272,7 @@ class Onehop_SMSService_AdminhtmlController extends Mage_Adminhtml_Controller_Ac
|
|
272 |
{
|
273 |
$shipfeature = (isset($shipmentdata['shipactivateFeature'])) ? $shipmentdata['shipactivateFeature'] : '0';
|
274 |
$shiptemp = $shipmentdata['shipsmstemplate'];
|
275 |
-
$shiplabel = $shipmentdata['shipsmslabel'];
|
276 |
$shipsenderid = $shipmentdata['shipsenderid'];
|
277 |
if (! $shiptemp) {
|
278 |
$errormessage = 'Please select template for shipment confirmation.';
|
@@ -313,7 +313,7 @@ class Onehop_SMSService_AdminhtmlController extends Mage_Adminhtml_Controller_Ac
|
|
313 |
{
|
314 |
$ondeliveryfeature = (isset($deliverydata['deliveryactivateFeature'])) ? $deliverydata['deliveryactivateFeature'] : '0';
|
315 |
$ondeliverytemp = $deliverydata['deliverysmstemplate'];
|
316 |
-
$ondeliverylabel = $deliverydata['deliverysmslabel'];
|
317 |
$ondeliverysenderid = $deliverydata['deliverysenderid'];
|
318 |
if (! $ondeliverytemp) {
|
319 |
$errormessage = 'Please select template for On Delivery Followups.';
|
@@ -354,7 +354,7 @@ class Onehop_SMSService_AdminhtmlController extends Mage_Adminhtml_Controller_Ac
|
|
354 |
{
|
355 |
$outstockfeature = (isset($outstockdata['outactivateFeature'])) ? $outstockdata['outactivateFeature'] : '0';
|
356 |
$outstocktemp = $outstockdata['outsmstemplate'];
|
357 |
-
$outstocklabel = $outstockdata['outsmslabel'];
|
358 |
$outstocksenderid = $outstockdata['outsenderid'];
|
359 |
$outstockadminmobile = $this->_getService()->getAdminMobile();
|
360 |
if (! $outstocktemp) {
|
@@ -400,7 +400,7 @@ class Onehop_SMSService_AdminhtmlController extends Mage_Adminhtml_Controller_Ac
|
|
400 |
{
|
401 |
$closeorderfeature = (isset($ordeclosekdata['closeactivateFeature'])) ? $ordeclosekdata['closeactivateFeature'] : '0';
|
402 |
$closeordertemp = $ordeclosekdata['closesmstemplate'];
|
403 |
-
$closeorderlabel = $ordeclosekdata['closesmslabel'];
|
404 |
$closeordersenderid = $ordeclosekdata['closesenderid'];
|
405 |
if (! $closeordertemp) {
|
406 |
$errormessage = 'Please select template for order close.';
|
231 |
{
|
232 |
$orderfeature = (isset($orderdata['orderactivateFeature'])) ? $orderdata['orderactivateFeature'] : '0';
|
233 |
$ordertemp = $orderdata['ordersmstemplate'];
|
234 |
+
$orderlabel = (isset($orderdata['ordersmslabel'])) ? $orderdata['ordersmslabel'] : '';
|
235 |
$ordersenderid = $orderdata['ordersenderid'];
|
236 |
if (! $ordertemp) {
|
237 |
$errormessage = 'Please select template for order confirmation.';
|
272 |
{
|
273 |
$shipfeature = (isset($shipmentdata['shipactivateFeature'])) ? $shipmentdata['shipactivateFeature'] : '0';
|
274 |
$shiptemp = $shipmentdata['shipsmstemplate'];
|
275 |
+
$shiplabel = (isset($shipmentdata['shipsmslabel'])) ? $shipmentdata['shipsmslabel'] : '';
|
276 |
$shipsenderid = $shipmentdata['shipsenderid'];
|
277 |
if (! $shiptemp) {
|
278 |
$errormessage = 'Please select template for shipment confirmation.';
|
313 |
{
|
314 |
$ondeliveryfeature = (isset($deliverydata['deliveryactivateFeature'])) ? $deliverydata['deliveryactivateFeature'] : '0';
|
315 |
$ondeliverytemp = $deliverydata['deliverysmstemplate'];
|
316 |
+
$ondeliverylabel = (isset($deliverydata['deliverysmslabel'])) ? $deliverydata['deliverysmslabel'] : '';
|
317 |
$ondeliverysenderid = $deliverydata['deliverysenderid'];
|
318 |
if (! $ondeliverytemp) {
|
319 |
$errormessage = 'Please select template for On Delivery Followups.';
|
354 |
{
|
355 |
$outstockfeature = (isset($outstockdata['outactivateFeature'])) ? $outstockdata['outactivateFeature'] : '0';
|
356 |
$outstocktemp = $outstockdata['outsmstemplate'];
|
357 |
+
$outstocklabel = (isset($outstockdata['outsmslabel'])) ? $outstockdata['outsmslabel'] : '';
|
358 |
$outstocksenderid = $outstockdata['outsenderid'];
|
359 |
$outstockadminmobile = $this->_getService()->getAdminMobile();
|
360 |
if (! $outstocktemp) {
|
400 |
{
|
401 |
$closeorderfeature = (isset($ordeclosekdata['closeactivateFeature'])) ? $ordeclosekdata['closeactivateFeature'] : '0';
|
402 |
$closeordertemp = $ordeclosekdata['closesmstemplate'];
|
403 |
+
$closeorderlabel = (isset($ordeclosekdata['closesmslabel'])) ? $ordeclosekdata['closesmslabel'] : '';
|
404 |
$closeordersenderid = $ordeclosekdata['closesenderid'];
|
405 |
if (! $closeordertemp) {
|
406 |
$errormessage = 'Please select template for order close.';
|
app/code/community/Onehop/SMSService/etc/config.xml
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
<config>
|
19 |
<modules>
|
20 |
<Onehop_SMSService>
|
21 |
-
<version>1.0.
|
22 |
</Onehop_SMSService>
|
23 |
</modules>
|
24 |
<admin>
|
18 |
<config>
|
19 |
<modules>
|
20 |
<Onehop_SMSService>
|
21 |
+
<version>1.0.2</version>
|
22 |
</Onehop_SMSService>
|
23 |
</modules>
|
24 |
<admin>
|
app/code/community/Onehop/SMSService/sql/smsservice_setup/{mysql4-install-1.0.1.php → mysql4-install-1.0.2.php}
RENAMED
File without changes
|
app/design/adminhtml/default/default/layout/smsservice.xml
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
16 |
*/
|
17 |
-->
|
18 |
-
<layout version="1.0.
|
19 |
<!--
|
20 |
Default layout, loads most of the pages
|
21 |
-->
|
15 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
16 |
*/
|
17 |
-->
|
18 |
+
<layout version="1.0.2">
|
19 |
<!--
|
20 |
Default layout, loads most of the pages
|
21 |
-->
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Onehop_SMSService</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://onehop.co/">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Easily Send SMSes on Magento. Search, Compare and Buy the best SMS products. Switch providers with one click using Labels.</description>
|
11 |
<notes>This is a SMS Service extension.</notes>
|
12 |
<authors><author><name>Screen-Magic Mobile Media Inc</name><user>Onehop</user><email>info@onehop.com</email></author></authors>
|
13 |
-
<date>2016-09-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Onehop"><dir name="SMSService"><dir name="Block"><dir name="Adminhtml"><dir name="Addtemplate"><file name="Form.php" hash="b74f227a3a927755c5777a8a15d5e0a7"/></dir><file name="Addtemplate.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Onehop_SMSService</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://onehop.co/">GPL</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Easily Send SMSes on Magento. Search, Compare and Buy the best SMS products. Switch providers with one click using Labels.</description>
|
11 |
<notes>This is a SMS Service extension.</notes>
|
12 |
<authors><author><name>Screen-Magic Mobile Media Inc</name><user>Onehop</user><email>info@onehop.com</email></author></authors>
|
13 |
+
<date>2016-09-19</date>
|
14 |
+
<time>07:26:26</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Onehop"><dir name="SMSService"><dir name="Block"><dir name="Adminhtml"><dir name="Addtemplate"><file name="Form.php" hash="b74f227a3a927755c5777a8a15d5e0a7"/></dir><file name="Addtemplate.php" hash="23b13c020e0347a9d03af6eaab93658e"/><dir name="Data"><dir name="Form"><dir name="Element"><file name="Ondelivery.php" hash="a1163d2e90d0c02160ec1ca02b7fea8a"/><file name="Orderclose.php" hash="108f8638044f172da8e52660fab5202e"/><file name="Orderconfirm.php" hash="63bc840eed679b47d7ce4201ce2da471"/><file name="Shipmentconfirm.php" hash="097f2b8239df52a07d5b739ffe3b5960"/></dir></dir></dir><dir name="Edittemplate"><file name="Form.php" hash="97ec28d30d7cba1f7e2ad738adb0259c"/></dir><file name="Edittemplate.php" hash="1196c74bf820a910aa457986d3c67540"/><dir name="Send"><file name="Form.php" hash="d893efd5906a866498bfefc4d6e84190"/></dir><file name="Send.php" hash="2f29ab4d2b98adbd12530feff679668b"/><dir name="Smsautomation"><file name="Form.php" hash="2c5d72cb0bdbb4f0b3b738e1d41d2bee"/></dir><file name="Smsautomation.php" hash="388e8c8e96500ae20d018afc9e705de1"/><file name="Template.php" hash="23bd87770d94ab859b6503f47ff3aacc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a4046829b26c233c0f18037edc321ecf"/><dir name="Mysql4"><file name="Install.php" hash="31812cd78d59fca52be6d1e31098ddd7"/></dir></dir><dir name="Model"><file name="Config.php" hash="9f9fb33864289107613c1c059524b1d6"/><file name="Configvalidation.php" hash="4a627184f8a351ed74830aba052b2035"/><file name="Observer.php" hash="c12287166e892e1c3beee59898de127e"/><dir name="Resource"><file name="Setup.php" hash="ccdfe8cdd9a6c0ad20c395f261d34e41"/></dir><file name="Service.php" hash="59bb86b692c9504bf3d781aa724899b0"/><file name="Sms.php" hash="93887ca4d4e0b4881638ca58248bd6b6"/><file name="Smsautomation.php" hash="8c48df08b3bbb8104d7e1a8629577830"/><file name="Smsservice.php" hash="87a524bdf99e35ebbaf1bc75e20eaad8"/><file name="Smstemplates.php" hash="0afa5bcce40995e0f28958fca0d13d6f"/><dir name="System"><dir name="Config"><dir name="Source"><file name="SmsLabels.php" hash="a6e180448704e5a8299e99d160796fed"/><file name="SmsTemplates.php" hash="34b50931cdc0e9a2c80aeba8aee9c40a"/><file name="Smsautomation.php" hash="f0a8fac203b444fc3741e915e88a031f"/></dir></dir></dir></dir><dir name="controllers"><file name="AdminhtmlController.php" hash="c333aa67400474c4fb6403bb16fe1fb4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="20cd2dd114abc693561201b92134c3cd"/><file name="config.xml" hash="8363de5a2abc7534c6a6d3844aad5645"/><file name="system.xml" hash="8287bde376ab19ff959e96c7383e573a"/></dir><dir name="sql"><dir name="smsservice_setup"><file name="mysql4-install-1.0.2.php" hash="2826cace8247cf6eca17fef867a2ac33"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Onehop_SMSService.xml" hash="749fcc93b3a4e82412030318b723fa53"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="smsservice.xml" hash="feaadf4ff0159d59d8db1b1b60aae2c9"/></dir><dir name="template"><dir name="onehop"><file name="smsservice_templates.phtml" hash="6502653d50f885d68c49e0dcc43b59d0"/><file name="smsservice_welcome.phtml" hash="d3a9478100f248f1d02268cfc6db824d"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Onehop"><dir name="SMSService"><file name="onehopservice.php" hash="4da8c5967b2429df924030103aaf32c4"/></dir></dir><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Selectonehop.php" hash="c130ebb90e13a90424818944750af973"/><file name="Smsservicetextarea.php" hash="93ec433ff3e7d90b87f20cf94f642a84"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="onehop"><dir name="css"><file name="smsservice.css" hash="8cfb5119815e97d4582fc56ba9549884"/><file name="smsservice_welcome.css" hash="bb1c32bb4e0658370eb8dd9bd5e01b6a"/></dir><dir name="images"><file name="acc_1_1.png" hash="b798368587fcb04734cfa754e33f17fe"/><file name="acc_1_2.png" hash="95619b2b5976537c9f6de7193e9cfe9d"/><file name="acc_1_3.png" hash="3d21af8a2172b5cd9ec5372cc99a21bb"/><file name="acc_1_4.png" hash="dd84544d45263272094348ec89972f82"/><file name="acc_2_1.png" hash="09053795a020483e8d3b5d01b8efb44c"/><file name="acc_2_2.png" hash="c08392541fa2017b2f4f4c5726c36db6"/><file name="acc_2_3.png" hash="e6cbdf6a30c65cfd8762458c08db2572"/><file name="acc_2_4.png" hash="a0b0c57a192e5d0fcb9a9aec134fb552"/><file name="acc_banner.png" hash="c8f5aa29dbbd4e24e5dca726beaaa90f"/><file name="bullet.png" hash="476aeabbd9952716833733243094be0f"/><file name="caret_down.png" hash="440c018e5061847adff200b0b8bc1c15"/><file name="caret_right.png" hash="08ac6857bb6ce0a59c3d4c6bd2ceee6f"/><file name="email_icon.png" hash="4dfbed753e9309d56d82786a6d70327f"/><file name="list_bg.png" hash="49b4b3666812bcfd0199679c5a766429"/><file name="pdf_icon.png" hash="6ae67743f21491ac761ad44e7e4841be"/><file name="phone_icon.png" hash="c616a0bf63bdd4a545d24273eb274eac"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="onehop_smsservice"><file name="onehop.js" hash="929bdce9f9d5c753c89af05342d55188"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|