Webpushnotification_Pushassist - Version 1.0.8

Version Notes

Built a stable version 1.0.8

Download this release

Release Info

Developer PushAssist Team
Extension Webpushnotification_Pushassist
Version 1.0.8
Comparing to
See all releases


Code changes from version 1.0.7 to 1.0.8

Files changed (22) hide show
  1. app/code/community/Webpushnotification/Pushassist/Block/Script.php +12 -17
  2. app/code/community/Webpushnotification/Pushassist/Model/Observer.php +95 -38
  3. app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/SettingsController.php +13 -3
  4. app/code/community/Webpushnotification/Pushassist/etc/adminhtml.xml +0 -23
  5. app/code/community/Webpushnotification/Pushassist/etc/config.xml +30 -11
  6. app/code/community/Webpushnotification/Pushassist/etc/system.xml +0 -49
  7. app/code/community/Webpushnotification/Pushassist/sql/pushassist_setup/mysql4-install-1.0.8.php +169 -0
  8. app/design/adminhtml/default/default/layout/pushassist.xml +5 -5
  9. app/design/adminhtml/default/default/template/pushassist/campaign.phtml +1 -8
  10. app/design/adminhtml/default/default/template/pushassist/create_account.phtml +1 -10
  11. app/design/adminhtml/default/default/template/pushassist/createcampaign.phtml +1 -15
  12. app/design/adminhtml/default/default/template/pushassist/createsegments.phtml +0 -1
  13. app/design/adminhtml/default/default/template/pushassist/dashboard.phtml +0 -1
  14. app/design/adminhtml/default/default/template/pushassist/notification.phtml +0 -1
  15. app/design/adminhtml/default/default/template/pushassist/push_dashboard.phtml +106 -0
  16. app/design/adminhtml/default/default/template/pushassist/segments.phtml +0 -1
  17. app/design/adminhtml/default/default/template/pushassist/sendnotification.phtml +2 -16
  18. app/design/adminhtml/default/default/template/pushassist/settings.phtml +31 -4
  19. app/design/adminhtml/default/default/template/pushassist/subscribers.phtml +1 -5
  20. package.xml +6 -6
  21. readme.txt +31 -0
  22. skin/adminhtml/default/default/pushassist/content_base.css +12 -0
app/code/community/Webpushnotification/Pushassist/Block/Script.php CHANGED
@@ -1,23 +1,18 @@
1
  <?php
2
- class Webpushnotification_Pushassist_Block_Script extends Mage_GoogleAnalytics_Block_Ga{
3
 
4
- protected function _toHtml() {
5
 
6
- $account_response = Mage::helper('pushassist')->get_account_details();
 
7
 
8
- if($account_response['error'] == ''){
9
- $html=parent::_toHtml();
10
- $subdomain_name=$account_response['account_name'];
11
- if($subdomain_name != ''){
12
- $jsPath= 'https://cdn.pushassist.com/account/assets/psa-'.$subdomain_name.'.js';
13
- $html .= '<script src="'.$jsPath.'"></script>';
14
- }else{
15
- $html .='';
16
- }
17
- }else{
18
- $html=parent::_toHtml();
19
- }
20
- return $html;
21
- }
22
 
23
  }
1
  <?php
2
+ class Webpushnotification_Pushassist_Block_Script extends Mage_GoogleAnalytics_Block_Ga {
3
 
4
+ protected function _toHtml() {
5
 
6
+ $html = parent::_toHtml();
7
+ $manual_js=Mage::getStoreConfig('pushassistsection/general/pushassist_js_restrict');
8
 
9
+ if ($jsUrl = Mage::getStoreConfig('pushassistsection/general/jsPath') && $manual_js != 1) {
10
+ $url=Mage::app()->getStore()->getConfig('pushassistsection/general/jsPath');
11
+ $html.='<!-- Push Notifications for this store is powered by PushAssist. Push Notifications for Chrome, Safari, FireFox, Opera. - Plugin version 1.0.8 - https://pushassist.com/ -->';
12
+ $html .= '<script src="'.$url.'" async></script>';
13
+
14
+ }
15
+ return $html;
16
+ }
 
 
 
 
 
 
17
 
18
  }
app/code/community/Webpushnotification/Pushassist/Model/Observer.php CHANGED
@@ -1,45 +1,102 @@
1
  <?php
2
  class Webpushnotification_Pushassist_Model_Observer
3
  {
4
- public function handle_adminSystemConfigChangedSection() {
5
-
6
- $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
7
- $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
8
-
9
- $account_response = Mage::helper('pushassist')->get_account_details();
10
-
11
- if($account_response['error'] == '' && $account_response) {
12
-
13
- $planType=$account_response['planType'];
14
- $subscribers_limit=$account_response['subscribers_limit'];
15
- $subscribers_remain=$account_response['subscribers_remain'];
16
- $jspath=$account_response['jsPath'];
17
-
18
- if( $planType != '' ){
19
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/planType',$planType ,'default',0);
20
- }
21
- if($subscribers_limit != ''){
22
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_limit',$subscribers_limit ,'default',0);
23
- }
24
- if($subscribers_remain != ''){
25
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_remain',$subscribers_remain ,'default',0);
26
- }
27
- if($jspath !=''){
28
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/jsPath',$jspath ,'default',0);
29
- }
30
- } else if($account_response['error'] != ''){
31
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/apikey','' ,'default',0);
32
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/secretkey','' ,'default',0);
33
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/planType','' ,'default',0);
34
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_limit','' ,'default',0);
35
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_remain','' ,'default',0);
36
- Mage::getModel('core/config')->saveConfig('pushassistsection/general/jsPath','' ,'default',0);
37
- $message=$account_response['error'];
38
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__($message));
39
- $returnUrl = Mage::helper("adminhtml")->getUrl("adminhtml/system_config/edit/section/pushassistsection");
40
- Mage::app()->getResponse()->setRedirect($returnUrl);
41
-
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
 
 
 
 
 
 
 
 
 
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
  }
1
  <?php
2
  class Webpushnotification_Pushassist_Model_Observer
3
  {
4
+
5
+ public function addNewproduct($observer) {
6
+
7
+ $product = $observer->getEvent()->getProduct();
8
+ $enable_notification=$product->getEnablePushNotification();
9
+
10
+ // Custom Title
11
+ $product_custom_title=$product->getPushCustomTitle();
12
+ if($product_custom_title != ''){
13
+ $product_notification_title=$product->getPushCustomTitle();
14
+ }else{
15
+ $product_notification_title=$product->getName();
16
+ }
17
+
18
+ // Custom Message
19
+ $product_custom_message=$product->getPushCustomMessage();
20
+ $prod_short_message=$product->getShortDescription();
21
+ $global_setting_message=Mage::app()->getStore()->getConfig('pushassistsection/general/pushassist_setting_post_message');
22
+
23
+ if($product_custom_message != ''){
24
+ $pushassist_setting_post_message=$product->getPushCustomMessage();
25
+ }elseif($prod_short_message != ''){
26
+ $pushassist_setting_post_message=$product->getShortDescription();
27
+ }elseif($global_setting_message != '' ){
28
+ $pushassist_setting_post_message=Mage::app()->getStore()->getConfig('pushassistsection/general/pushassist_setting_post_message');
29
+ }
30
+
31
+ //Custom URL
32
+ $product_custom_url=$product->getPushCustomUrl();
33
+ if($product_custom_url != ''){
34
+ $product_notification_url=$product->getPushCustomUrl();
35
+ }else{
36
+ // $product_notification_url=Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB, true ).$product->getUrlPath();
37
+ $suffix = Mage::getStoreConfig('catalog/seo/product_url_suffix');
38
+ $product_notification_url = Mage::getUrl().$product->getUrlKey().$suffix;
39
+ }
40
+
41
+ //Product Image
42
+ $_product = Mage::getModel('catalog/product')->load($product->getId());
43
+ $productMediaConfig = Mage::getModel('catalog/product_media_config');
44
+ $baseImageUrl = $productMediaConfig->getMediaUrl($_product->getImage());
45
+ $smallImageUrl = $productMediaConfig->getMediaUrl($_product->getSmallImage());
46
+ $thumbnailUrl = $productMediaConfig->getMediaUrl($_product->getThumbnail());
47
+ $image_full_path='';
48
+
49
+ if($baseImageUrl !='' && $_product->getImage() != 'no_selection'){
50
+ $image_full_path=$baseImageUrl;
51
+ }elseif($smallImageUrl !='' && $_product->getSmallImage() != 'no_selection'){
52
+ $image_full_path=$smallImageUrl;
53
+ }elseif($thumbnailUrl !='' && $_product->getThumbnail() != 'no_selection'){
54
+ $image_full_path=$thumbnailUrl;
55
  }
56
+
57
+ $response_array = array("notification" => array(
58
+ "title" => $product_notification_title,
59
+ "message" => $pushassist_setting_post_message,
60
+ "redirect_url" => $product_notification_url,
61
+ "image" => $image_full_path)
62
+ );
63
+
64
+ $product_utm=$product->getCheckUtm();
65
 
66
+ if(isset($product_utm)) {
67
+
68
+ if($product_utm==1) {
69
+
70
+ $product_utm_source=$product->getCheckUtmSource();
71
+ if(isset($product_utm_source) && $product_utm_source !='') {
72
+ $product_utm_source=$product->getCheckUtmSource();
73
+ }else{
74
+ $product_utm_source='pushassist';
75
+ }
76
+
77
+ $product_utm_medium=$product->getCheckUtmMedium();
78
+ if(isset($product_utm_medium) && $product_utm_medium !='') {
79
+ $product_utm_medium=$product->getCheckUtmMedium();
80
+ }else{
81
+ $product_utm_medium='pushassist_notification';
82
+ }
83
+
84
+ $product_utm_campaign=$product->getCheckUtmCampaign();
85
+ if(isset($product_utm_campaign) && $product_utm_campaign !='') {
86
+ $product_utm_campaign=$product->getCheckUtmCampaign();
87
+ }else{
88
+ $product_utm_campaign='pushassist';
89
+ }
90
+
91
+ $response_array['utm_params'] =array("utm_source" => $product_utm_source, // optional
92
+ "utm_medium" => $product_utm_medium,
93
+ "utm_campaign" => $product_utm_campaign);
94
+ }
95
+ }
96
+
97
+ if($enable_notification==1 &&$product->getStatus()==1 && $product->getVisibility()==4 ){
98
+
99
+ $result_array = Mage::helper('pushassist')->send_notification($response_array);
100
+ }
101
  }
102
  }
app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/SettingsController.php CHANGED
@@ -22,12 +22,10 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_SettingsController ext
22
  $random_digit=rand(0000,9999);
23
  $ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
24
  $new_file_name = time() . '.' . $ext;
25
- //$new_file_name=$random_digit.$_FILES['fileupload']['name'];
26
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS.'site'.DS;
27
  $uploader->save($path, $new_file_name);
28
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
29
- //$full_image_path=$baseurl.'media/pushassist/site/'.$new_file_name;
30
- $full_image_path=base64_encode(file_get_contents($path.$new_file_name));
31
 
32
 
33
  }else{
@@ -123,4 +121,16 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_SettingsController ext
123
  }
124
  }
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
126
  }
22
  $random_digit=rand(0000,9999);
23
  $ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
24
  $new_file_name = time() . '.' . $ext;
 
25
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS.'site'.DS;
26
  $uploader->save($path, $new_file_name);
27
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
28
+ $full_image_path=base64_encode(file_get_contents($path.$new_file_name));
 
29
 
30
 
31
  }else{
121
  }
122
  }
123
  }
124
+ public function autosendproductAction(){
125
+
126
+ $post = $this->getRequest()->getPost();
127
+ if(isset($post['pushassist_js_restrict'])){
128
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/pushassist_js_restrict',$post['pushassist_js_restrict'] ,'default',0);
129
+ }else{
130
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/pushassist_js_restrict','' ,'default',0);
131
+ }
132
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/pushassist_setting_post_message',$post['pushassist_setting_post_message'] ,'default',0);
133
+ $this->_redirect('*/pushassist_settings/index');
134
+ }
135
+
136
  }
app/code/community/Webpushnotification/Pushassist/etc/adminhtml.xml DELETED
@@ -1,23 +0,0 @@
1
- <!--<?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <pushassistsection translate="title" module="pushassist">
12
- <title>Setting Section</title>
13
- <sort_order>0</sort_order>
14
- </pushassistsection>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Webpushnotification/Pushassist/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Webpushnotification_Pushassist>
5
- <version>1.0.7</version>
6
  </Webpushnotification_Pushassist>
7
  </modules>
8
  <global>
@@ -14,9 +14,21 @@
14
  <models>
15
  <pushassist>
16
  <class>Webpushnotification_Pushassist_Model</class>
 
17
  </pushassist>
18
 
19
  </models>
 
 
 
 
 
 
 
 
 
 
 
20
  <blocks>
21
  <pushassist>
22
  <class>Webpushnotification_Pushassist_Block</class>
@@ -102,12 +114,6 @@
102
  <sort_order>8</sort_order>
103
  <action>adminhtml/pushassist_campaign</action>
104
  </campaign>
105
-
106
- <!-- <createcampaign module="pushassist">
107
- <title>Create Campaign</title>
108
- <sort_order>8</sort_order>
109
- <action>adminhtml/pushassist_createcampaign</action>
110
- </createcampaign>-->
111
  </children>
112
  </pushassist>
113
  </menu>
@@ -149,10 +155,6 @@
149
  <campaign translate="title">
150
  <title>Campaign</title>
151
  </campaign>
152
-
153
- <!--<createcampaign translate="title">
154
- <title>Create Campaign</title>
155
- </createcampaign>-->
156
  </children>
157
  </pushassist>
158
  </children>
@@ -175,5 +177,22 @@
175
  </Webpushnotification_Pushassist>
176
  </modules>
177
  </translate>
 
 
 
 
 
 
 
 
 
 
178
  </adminhtml>
 
 
 
 
 
 
 
179
  </config>
2
  <config>
3
  <modules>
4
  <Webpushnotification_Pushassist>
5
+ <version>1.0.8</version>
6
  </Webpushnotification_Pushassist>
7
  </modules>
8
  <global>
14
  <models>
15
  <pushassist>
16
  <class>Webpushnotification_Pushassist_Model</class>
17
+
18
  </pushassist>
19
 
20
  </models>
21
+ <resources>
22
+ <pushassist_setup>
23
+ <setup>
24
+ <module>Webpushnotification_Pushassist</module>
25
+ <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class>
26
+ </setup>
27
+ <connection>
28
+ <use>core_setup</use>
29
+ </connection>
30
+ </pushassist_setup>
31
+ </resources>
32
  <blocks>
33
  <pushassist>
34
  <class>Webpushnotification_Pushassist_Block</class>
114
  <sort_order>8</sort_order>
115
  <action>adminhtml/pushassist_campaign</action>
116
  </campaign>
 
 
 
 
 
 
117
  </children>
118
  </pushassist>
119
  </menu>
155
  <campaign translate="title">
156
  <title>Campaign</title>
157
  </campaign>
 
 
 
 
158
  </children>
159
  </pushassist>
160
  </children>
177
  </Webpushnotification_Pushassist>
178
  </modules>
179
  </translate>
180
+ <events>
181
+ <catalog_product_save_after>
182
+ <observers>
183
+ <pushnotification_new_product>
184
+ <class>Webpushnotification_Pushassist_Model_Observer</class>
185
+ <method>addNewproduct</method>
186
+ </pushnotification_new_product>
187
+ </observers>
188
+ </catalog_product_save_after>
189
+ </events>
190
  </adminhtml>
191
+ <default>
192
+ <pushassistsection>
193
+ <general>
194
+ <pushassist_setting_post_message>We are pleased to annouce the launch of our brand new product. Check it out!</pushassist_setting_post_message>
195
+ </general>
196
+ </pushassistsection>
197
+ </default>
198
  </config>
app/code/community/Webpushnotification/Pushassist/etc/system.xml DELETED
@@ -1,49 +0,0 @@
1
- <!--<?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <pushassisttab translate="label" module="pushassist">
5
- <label>PushAssist</label>
6
- <sort_order>250</sort_order>
7
- </pushassisttab>
8
- </tabs>
9
- <sections>
10
- <pushassistsection translate="label" module="pushassist">
11
- <label>Settings</label>
12
- <tab>pushassisttab</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>0</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
- <groups>
19
- <general translate="label">
20
- <label>General</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>0</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>1</show_in_website>
25
- <show_in_store>1</show_in_store>
26
- <fields>
27
- <apikey translate="label">
28
- <label>API Key</label>
29
- <frontend_type>text</frontend_type>
30
- <sort_order>0</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- </apikey>
35
- <secretkey translate="label">
36
- <label>Secret Key</label>
37
- <frontend_type>text</frontend_type>
38
- <sort_order>1</sort_order>
39
- <show_in_default>1</show_in_default>
40
- <show_in_website>1</show_in_website>
41
- <show_in_store>1</show_in_store>
42
-
43
- </secretkey>
44
- </fields>
45
- </general>
46
- </groups>
47
- </pushassistsection>
48
- </sections>
49
- </config>-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Webpushnotification/Pushassist/sql/pushassist_setup/mysql4-install-1.0.8.php ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
4
+ $installer->startSetup();
5
+
6
+ $setup->addAttribute('catalog_product', 'push_custom_title', array(
7
+ 'group' => 'PushAssist Notification',
8
+ 'input' => 'text',
9
+ 'type' => 'text',
10
+ 'label' => 'Notification Title',
11
+ 'default' => '',
12
+ 'frontend' => '',
13
+ 'backend' => '',
14
+ 'visible' => true,
15
+ 'required' => false,
16
+ 'user_defined' => true,
17
+ 'searchable' => 1,
18
+ 'filterable' => 0,
19
+ 'comparable' => 1,
20
+ 'visible_on_front' => 1,
21
+ 'visible_in_advanced_search' => 0,
22
+ 'is_html_allowed_on_front' => 0,
23
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
24
+ ));
25
+ $setup->addAttribute('catalog_product', 'push_custom_message', array(
26
+ 'group' => 'PushAssist Notification',
27
+ 'input' => 'text',
28
+ 'type' => 'text',
29
+ 'label' => 'Notification Message',
30
+ 'default' => '',
31
+ 'frontend' => '',
32
+ 'backend' => '',
33
+ 'note' => 'Default product message.',
34
+ 'visible' => true,
35
+ 'required' => false,
36
+ 'user_defined' => true,
37
+ 'searchable' => 1,
38
+ 'filterable' => 0,
39
+ 'comparable' => 1,
40
+ 'visible_on_front' => 1,
41
+ 'visible_in_advanced_search' => 0,
42
+ 'is_html_allowed_on_front' => 0,
43
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
44
+ ));
45
+ $setup->addAttribute('catalog_product', 'push_custom_url', array(
46
+ 'group' => 'PushAssist Notification',
47
+ 'input' => 'text',
48
+ 'type' => 'text',
49
+ 'label' => 'Custom URL',
50
+ 'default' => '',
51
+ 'frontend' => '',
52
+ 'backend' => '',
53
+ 'note' => 'Product landing URL.',
54
+ 'visible' => true,
55
+ 'required' => false,
56
+ 'user_defined' => true,
57
+ 'searchable' => 1,
58
+ 'filterable' => 0,
59
+ 'comparable' => 1,
60
+ 'visible_on_front' => 1,
61
+ 'visible_in_advanced_search' => 0,
62
+ 'is_html_allowed_on_front' => 0,
63
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
64
+ ));
65
+ $setup->addAttribute('catalog_product', 'check_utm', array(
66
+ 'group' => 'PushAssist Notification',
67
+ 'type' => 'int',
68
+ 'backend' => '',
69
+ 'frontend' => '',
70
+ 'label' => 'UTM',
71
+ 'input' => 'boolean',
72
+ 'class' => '',
73
+ 'source' => '',
74
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
75
+ 'visible' => true,
76
+ 'required' => false,
77
+ 'user_defined' => true,
78
+ 'default' => '0',
79
+ 'searchable' => false,
80
+ 'filterable' => false,
81
+ 'comparable' => false,
82
+ 'visible_on_front' => false,
83
+ 'unique' => false,
84
+ 'is_configurable' => false
85
+ ));
86
+ $setup->addAttribute('catalog_product', 'push_utm_source', array(
87
+ 'group' => 'PushAssist Notification',
88
+ 'input' => 'text',
89
+ 'type' => 'text',
90
+ 'label' => 'UTM Source',
91
+ 'default' => 'pushassist',
92
+ 'frontend' => '',
93
+ 'backend' => '',
94
+ 'visible' => true,
95
+ 'required' => false,
96
+ 'user_defined' => true,
97
+ 'searchable' => 1,
98
+ 'filterable' => 0,
99
+ 'comparable' => 1,
100
+ 'visible_on_front' => 1,
101
+ 'visible_in_advanced_search' => 0,
102
+ 'is_html_allowed_on_front' => 0,
103
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
104
+ ));
105
+ $setup->addAttribute('catalog_product', 'push_utm_medium', array(
106
+ 'group' => 'PushAssist Notification',
107
+ 'input' => 'text',
108
+ 'type' => 'text',
109
+ 'label' => 'UTM Medium',
110
+ 'default' => 'pushassist_notification',
111
+ 'frontend' => '',
112
+ 'backend' => '',
113
+ 'visible' => true,
114
+ 'required' => false,
115
+ 'user_defined' => true,
116
+ 'searchable' => 1,
117
+ 'filterable' => 0,
118
+ 'comparable' => 1,
119
+ 'visible_on_front' => 1,
120
+ 'visible_in_advanced_search' => 0,
121
+ 'is_html_allowed_on_front' => 0,
122
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
123
+ ));
124
+ $setup->addAttribute('catalog_product', 'push_utm_campaign', array(
125
+ 'group' => 'PushAssist Notification',
126
+ 'input' => 'text',
127
+ 'type' => 'text',
128
+ 'label' => 'UTM Campaign',
129
+ 'default' => 'pushassist',
130
+ 'frontend' => '',
131
+ 'backend' => '',
132
+ 'visible' => true,
133
+ 'required' => false,
134
+ 'user_defined' => true,
135
+ 'searchable' => 1,
136
+ 'filterable' => 0,
137
+ 'comparable' => 1,
138
+ 'visible_on_front' => 1,
139
+ 'visible_in_advanced_search' => 0,
140
+ 'is_html_allowed_on_front' => 0,
141
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
142
+ ));
143
+
144
+ $setup->addAttribute('catalog_product', 'enable_push_notification', array(
145
+ 'group' => 'General',
146
+ 'type' => 'int',
147
+ 'backend' => '',
148
+ 'frontend' => '',
149
+ 'label' => 'Send Notification',
150
+ 'input' => 'boolean',
151
+ 'class' => '',
152
+ 'source' => '',
153
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
154
+ 'visible' => true,
155
+ 'required' => false,
156
+ 'user_defined' => true,
157
+ 'default' => '0',
158
+ 'searchable' => false,
159
+ 'filterable' => false,
160
+ 'comparable' => false,
161
+ 'visible_on_front' => false,
162
+ 'unique' => false,
163
+ 'is_configurable' => false
164
+ ));
165
+
166
+ $installer->endSetup();
167
+
168
+
169
+
app/design/adminhtml/default/default/layout/pushassist.xml CHANGED
@@ -76,12 +76,12 @@
76
  <block type="pushassist/adminhtml_settings" name="settings" template="pushassist/settings.phtml"/>
77
  </reference>
78
  </adminhtml_pushassist_settings_index>
79
- <!--<adminhtml_pushassist_createcampaign_index>
80
  <reference name="head">
81
  <action method="addItem"><type>skin_css</type><name>pushassist/content_base.css</name><params/></action>
82
  </reference>
83
- <reference name="content">
84
- <block type="pushassist/adminhtml_createcampaign" name="createcampaign" template="pushassist/createcampaign.phtml"/>
85
- </reference>
86
- </adminhtml_pushassist_createcampaign_index>-->
87
  </layout>
76
  <block type="pushassist/adminhtml_settings" name="settings" template="pushassist/settings.phtml"/>
77
  </reference>
78
  </adminhtml_pushassist_settings_index>
79
+ <adminhtml_dashboard_index>
80
  <reference name="head">
81
  <action method="addItem"><type>skin_css</type><name>pushassist/content_base.css</name><params/></action>
82
  </reference>
83
+ <reference name="content">
84
+ <block type="core/template" name="" template="pushassist/push_dashboard.phtml"/>
85
+ </reference>
86
+ </adminhtml_dashboard_index>
87
  </layout>
app/design/adminhtml/default/default/template/pushassist/campaign.phtml CHANGED
@@ -135,12 +135,7 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
135
  <input type="text" class="form-control" name="utm_campaign" id="utm_campaign" value="pushassist" placeholder="Enter UTM Campaign" maxlength="500" required="required" />
136
  <span class="pull-right"><?php echo $this->__('Limit 500 Characters')?></span>
137
  </div>
138
- <!-- <input type="hidden" id="campaign_id" name="campaign_id" value="" />
139
- <input type="hidden" id="status" name="status" value="" />
140
- <input type="hidden" id="notification_logo" name="notification_logo" />
141
- <input type="hidden" id="cmp_status" name="cmp_status" value="0" />
142
- <input type="hidden" id="date" name="date" value="" />
143
- <input type="hidden" id="is_draft" name="is_draft" value="1" /> -->
144
  </div>
145
  <div class="form-group">
146
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Segment')?></label>
@@ -330,6 +325,4 @@ jQuery(document).ready(function() {
330
  <?php
331
  }else{
332
  Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/pushassist_createaccount/index/"));
333
- //Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/system_config/edit/section/pushassistsection"));
334
-
335
  } ?>
135
  <input type="text" class="form-control" name="utm_campaign" id="utm_campaign" value="pushassist" placeholder="Enter UTM Campaign" maxlength="500" required="required" />
136
  <span class="pull-right"><?php echo $this->__('Limit 500 Characters')?></span>
137
  </div>
138
+
 
 
 
 
 
139
  </div>
140
  <div class="form-group">
141
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Segment')?></label>
325
  <?php
326
  }else{
327
  Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/pushassist_createaccount/index/"));
 
 
328
  } ?>
app/design/adminhtml/default/default/template/pushassist/create_account.phtml CHANGED
@@ -10,16 +10,7 @@ $allsites='https://'.$account_response['account_name'].'.pushassist.com/allsites
10
  <div id="Psidebar" >
11
  <ul>
12
  <li><a href="<?php echo $this->getUrl('*/pushassist_createaccount'); ?>"><?php echo $this->__('Create an Account');?></a></li>
13
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_dashboard'); ?>">Dashboard</a></li>
14
- <li><a href="<?php //echo $this->getUrl('*/pushassist_notificationmain'); ?>">Notifications</a></li>
15
- <li><a href="<?php //echo $this->getUrl('*/pushassist_notificationsend'); ?>">Send Notification</a></li>
16
- <li><a href="<?php //echo $this->getUrl('*/pushassist_segments'); ?>">Segments</a></li>
17
- <li><a href="<?php //echo $this->getUrl('*/pushassist_createsegments'); ?>">Create Segments</a></li>
18
- <li><a href="<?php //echo $this->getUrl('*/pushassist_subscribers'); ?>">Subscribers</a></li>
19
- <li><a href="<?php //echo $this->getUrl('*/pushassist_settings'); ?>">Settings</a></li>
20
- <li><a href="<?php //echo $this->getUrl('*/pushassist_campaign'); ?>">Campaigns</a></li>
21
- -->
22
- </ul>
23
  </div>
24
  <!-- Content Start -->
25
 
10
  <div id="Psidebar" >
11
  <ul>
12
  <li><a href="<?php echo $this->getUrl('*/pushassist_createaccount'); ?>"><?php echo $this->__('Create an Account');?></a></li>
13
+ </ul>
 
 
 
 
 
 
 
 
 
14
  </div>
15
  <!-- Content Start -->
16
 
app/design/adminhtml/default/default/template/pushassist/createcampaign.phtml CHANGED
@@ -12,7 +12,6 @@ if($check_api_key!='' && $check_secret_key != '' && $account_response['error'] =
12
  <!-- Content Start -->
13
  <div id="Psidebar" >
14
  <ul>
15
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
@@ -59,16 +58,7 @@ if($check_api_key!='' && $check_secret_key != '' && $account_response['error'] =
59
  <input type="url" required="required" class="form-control" id="url" name="url" placeholder="Enter a URL to push your subscribers to (yoursite.com)" maxlength="250" />
60
  </div>
61
  </div>
62
- <!--<div class="form-group">
63
- <label class="col-sm-3 control-label form-label">Campaign Date</label>
64
-
65
- <div class="col-sm-9 input-group date" form_datetime id="form_datetime" data-date="" data-date-format="dd MM yyyy , HH:ii" data-link-field="date">
66
- <input size="16" type="text" value="" pattern="\d{1,2}/\d{1,2}/\d{4}" class="datepicker">
67
- <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
68
- <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
69
- </div>
70
- <input type="hidden" id="date" name="date" value="" />
71
- </div>-->
72
  <div class="form-group margin-b-0">
73
  <label for="focusedinput" class="col-sm-3 control-label form-label">Notification Logo</label>
74
  <div class="col-sm-9">
@@ -130,10 +120,6 @@ if($check_api_key!='' && $check_secret_key != '' && $account_response['error'] =
130
  <div class="col-sm-offset-3 col-sm-1 col-xs-3">
131
  <button type="submit" class="btn btn-default">Send</button>
132
  </div>
133
-
134
- <!--<div class="col-sm-2 margin-l-30 col-xs-7">
135
- <input type="submit" class="btn btn-default s_draft" value="Save Draft">
136
- </div>-->
137
  </div>
138
  <!--</form>-->
139
  </div>
12
  <!-- Content Start -->
13
  <div id="Psidebar" >
14
  <ul>
 
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
58
  <input type="url" required="required" class="form-control" id="url" name="url" placeholder="Enter a URL to push your subscribers to (yoursite.com)" maxlength="250" />
59
  </div>
60
  </div>
61
+
 
 
 
 
 
 
 
 
 
62
  <div class="form-group margin-b-0">
63
  <label for="focusedinput" class="col-sm-3 control-label form-label">Notification Logo</label>
64
  <div class="col-sm-9">
120
  <div class="col-sm-offset-3 col-sm-1 col-xs-3">
121
  <button type="submit" class="btn btn-default">Send</button>
122
  </div>
 
 
 
 
123
  </div>
124
  <!--</form>-->
125
  </div>
app/design/adminhtml/default/default/template/pushassist/createsegments.phtml CHANGED
@@ -12,7 +12,6 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
12
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
13
  <div id="Psidebar" >
14
  <ul>
15
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
12
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
13
  <div id="Psidebar" >
14
  <ul>
 
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
app/design/adminhtml/default/default/template/pushassist/dashboard.phtml CHANGED
@@ -19,7 +19,6 @@ Your Account Details have already been emailed to you. Also check under SPAM if
19
  <!-- Content Start -->
20
  <div id="Psidebar" >
21
  <ul>
22
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
23
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
24
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
25
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
19
  <!-- Content Start -->
20
  <div id="Psidebar" >
21
  <ul>
 
22
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
23
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
24
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
app/design/adminhtml/default/default/template/pushassist/notification.phtml CHANGED
@@ -13,7 +13,6 @@ if($check_api_key!='' && $check_secret_key != '') {
13
  ?>
14
  <div id="Psidebar" >
15
  <ul>
16
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
19
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
13
  ?>
14
  <div id="Psidebar" >
15
  <ul>
 
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
app/design/adminhtml/default/default/template/pushassist/push_dashboard.phtml ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
3
+ $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
4
+ $dashboard_response = Mage::helper('pushassist')->get_dashboard();
5
+ $account_response = Mage::helper('pushassist')->get_account_details();
6
+ if(isset($account_response['account_name'])){
7
+ $account_url='https://'.$account_response['account_name'].'.pushassist.com/dashboard/';
8
+ }
9
+ $get_subscribers = Mage::helper('pushassist')->get_subscribers();
10
+
11
+ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['error'] )) && $account_response) {
12
+
13
+ ?>
14
+ <div id="pushassist" class="maindashboard dashboard clearfix" style="padding-top:30px;margin-top:15px;border:1px solid #ccc;">
15
+
16
+ <!-- Start Page Header -->
17
+ <div class="page-header">
18
+ <h1 class="title"><?php echo $this->__('Dashboard');?></h1>
19
+ <div class="sub_count"><span><?php echo $account_response['subscribers_remain'];?> <?php echo $this->__('subscribers left');?></span>
20
+ <a href="<?php echo $account_url;?>" target="_blank"><?php echo $this->__('Upgrade to Premium');?></a>
21
+ </div>
22
+ </div>
23
+ <!-- End Page Header -->
24
+
25
+ <!-- Container Start -->
26
+ <div class=maindashboard clearfix">
27
+ <!-- Top Stats Start -->
28
+ <div class="col-md-12">
29
+ <ul class="topstats clearfix">
30
+ <li class="col-xs-6 col-lg-2">
31
+ <span class="title"><i class="fa fa-send"></i> <?php echo $this->__('Total Delivered');?> </span>
32
+ <h3><?php echo $dashboard_response['total_delivered']; ?></h3>
33
+ <span class="diff">
34
+ <?php if ($dashboard_response['delivered_change'] == 'negative') { ?>
35
+ <b class="color-down"><i class="fa fa-caret-down"></i> <?php echo $dashboard_response['delivered_percentage']; ?>
36
+ <?php }
37
+ if ($dashboard_response['delivered_change'] == 'positive') { ?>
38
+ <b class="color-up"><i class="fa fa-caret-up"></i> <?php echo $dashboard_response['delivered_percentage']; ?>
39
+ <?php } ?>%
40
+
41
+
42
+ </b> <?php echo $this->__('from last week');?></span>
43
+ </li>
44
+
45
+ <li class="col-xs-6 col-lg-2">
46
+ <span class="title"><i class="fa fa-check-square-o"></i> <?php echo $this->__('Total Clicks');?> </span>
47
+ <h3 class="color-up"><?php echo $dashboard_response['total_clicks']; ?></h3>
48
+ <span class="diff">
49
+ <?php if ($dashboard_response['clicks_change'] == 'negative') { ?>
50
+ <b class="color-down"><i class="fa fa-caret-down"></i> <?php echo $dashboard_response['clicks_percentage']; ?>
51
+ <?php } if ($dashboard_response['clicks_change'] == 'positive') { ?>
52
+ <b class="color-up"><i class="fa fa-caret-up"></i> <?php echo $dashboard_response['clicks_percentage']; ?>
53
+ <?php } ?>%
54
+
55
+ </b> <?php echo $this->__('from last week');?></span>
56
+ </li>
57
+
58
+ <li class="col-xs-6 col-lg-2">
59
+ <span class="title"><i class="fa fa-users"></i> <?php echo $this->__('Total Subscribers');?> </span>
60
+ <h3><?php echo $dashboard_response['total_subscribers']; ?></h3>
61
+ <span class="diff">
62
+ <?php if ($dashboard_response['subscribers_change'] == 'negative') { ?>
63
+ <b class="color-down"><i class="fa fa-caret-down"></i> <?php echo $dashboard_response['subscribers_percentage']; ?>
64
+ <?php } if ($dashboard_response['subscribers_change'] == 'positive') { ?>
65
+ <b class="color-up"><i class="fa fa-caret-up"></i> <?php echo $dashboard_response['subscribers_percentage']; ?>
66
+ <?php } ?>%
67
+
68
+ </b> <?php echo $this->__('from last week');?></span>
69
+ </li>
70
+
71
+
72
+
73
+ <li class="col-xs-6 col-lg-2">
74
+ <span class="title"><i class="fa fa-cogs"></i> <?php echo $this->__('Campaigns');?> </span>
75
+ <h3 class="color-up"><?php echo $dashboard_response['campaign_count']; ?></h3>
76
+ <span class="diff"><b class="color-down"></b> <?php echo $this->__('active this week');?></span>
77
+ </li>
78
+
79
+ <li class="col-xs-6 col-lg-2">
80
+ <span class="title"><i class="fa fa-send"></i> <?php echo $this->__('Segments');?> </span>
81
+ <h3 class="color-up"><?php echo $dashboard_response['segment_count']; ?></h3>
82
+ <span class="diff"><b class="color-down"></b> <?php echo $this->__('created');?> </span>
83
+ </li>
84
+
85
+ <li class="col-xs-6 col-lg-2">
86
+ <span class="title"><i class="fa fa-sitemap"></i> <?php echo $this->__('Sites');?> </span>
87
+ <h3 class="color-up"><?php echo $dashboard_response['sites_count']; ?></h3>
88
+ <span class="diff"><b class="color-down"></b><?php echo $this->__('registered');?></span>
89
+ </li>
90
+ </ul>
91
+ </div>
92
+ <!-- Top Stats End -->
93
+ <?php
94
+
95
+ ?>
96
+
97
+
98
+
99
+ </div>
100
+ <!-- Container End -->
101
+ </div>
102
+ <!-- Content End -->
103
+ <?php }else{
104
+
105
+ Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/pushassist_createaccount/index/"));
106
+ }?>
app/design/adminhtml/default/default/template/pushassist/segments.phtml CHANGED
@@ -12,7 +12,6 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
12
  ?>
13
  <div id="Psidebar" >
14
  <ul>
15
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
12
  ?>
13
  <div id="Psidebar" >
14
  <ul>
 
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
app/design/adminhtml/default/default/template/pushassist/sendnotification.phtml CHANGED
@@ -12,7 +12,6 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
12
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
13
  <div id="Psidebar" >
14
  <ul>
15
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
@@ -63,16 +62,7 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
63
  </div>
64
 
65
  </div>
66
- <!--<div class="form-group">
67
- <label class="col-sm-3 control-label form-label">Campaign Date</label>
68
-
69
- <div class="col-sm-9 input-group date" form_datetime id="form_datetime" data-date="" data-date-format="dd MM yyyy , HH:ii" data-link-field="date">
70
- <input size="16" type="text" value="" pattern="\d{1,2}/\d{1,2}/\d{4}" class="datepicker">
71
- <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
72
- <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
73
- </div>
74
- <input type="hidden" id="date" name="date" value="" />
75
- </div>-->
76
  <div class="form-group margin-b-0">
77
  <label for="focusedinput" class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Logo')?></label>
78
  <div class="col-sm-9">
@@ -139,11 +129,7 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
139
  <div class="col-sm-offset-3 col-sm-1 col-xs-3">
140
  <button type="submit" class="btn btn-default"><?php echo $this->__('Send')?></button>
141
  </div>
142
-
143
- <!--<div class="col-sm-2 margin-l-30 col-xs-7">
144
- <input type="submit" class="btn btn-default s_draft" value="Save Draft">
145
- </div>-->
146
- </div>
147
  <!--</form>-->
148
  </div>
149
  </div>
12
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
13
  <div id="Psidebar" >
14
  <ul>
 
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
62
  </div>
63
 
64
  </div>
65
+
 
 
 
 
 
 
 
 
 
66
  <div class="form-group margin-b-0">
67
  <label for="focusedinput" class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Logo')?></label>
68
  <div class="col-sm-9">
129
  <div class="col-sm-offset-3 col-sm-1 col-xs-3">
130
  <button type="submit" class="btn btn-default"><?php echo $this->__('Send')?></button>
131
  </div>
132
+ </div>
 
 
 
 
133
  <!--</form>-->
134
  </div>
135
  </div>
app/design/adminhtml/default/default/template/pushassist/settings.phtml CHANGED
@@ -1,6 +1,10 @@
1
  <?php
2
  $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
3
  $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
 
 
 
 
4
  $account_response = Mage::helper('pushassist')->get_account_details();
5
  if(isset($account_response['account_name'])){
6
  $account_url='https://'.$account_response['account_name'].'.pushassist.com/allsites/';
@@ -10,7 +14,6 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
10
  ?>
11
  <div id="Psidebar" >
12
  <ul>
13
- <!-- <li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
14
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
@@ -247,6 +250,7 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
247
  </div>
248
 
249
  <div class="form-group">
 
250
  <div class="col-sm-2"></div>
251
  <div class="col-sm-8">
252
  <button type="submit" class="btn btn-default" value="Save Settings" name="psa-advance-settings"><?php echo $this->__('Save Settings')?></button>
@@ -254,7 +258,32 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
254
  </div>
255
 
256
  </form>
257
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  </div>
259
  </div>
260
  </div>
@@ -311,8 +340,6 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
311
  </div>
312
  <script language="javascript">
313
  jQuery.noConflict();
314
-
315
-
316
  jQuery("#template").on("change", function () {
317
 
318
  if(jQuery(this).val() == 8){
1
  <?php
2
  $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
3
  $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
4
+
5
+ $pushassist_js_restrict=Mage::app()->getStore()->getConfig('pushassistsection/general/pushassist_js_restrict');
6
+ $pushassist_setting_post_message=Mage::app()->getStore()->getConfig('pushassistsection/general/pushassist_setting_post_message');
7
+
8
  $account_response = Mage::helper('pushassist')->get_account_details();
9
  if(isset($account_response['account_name'])){
10
  $account_url='https://'.$account_response['account_name'].'.pushassist.com/allsites/';
14
  ?>
15
  <div id="Psidebar" >
16
  <ul>
 
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
18
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
19
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
250
  </div>
251
 
252
  <div class="form-group">
253
+
254
  <div class="col-sm-2"></div>
255
  <div class="col-sm-8">
256
  <button type="submit" class="btn btn-default" value="Save Settings" name="psa-advance-settings"><?php echo $this->__('Save Settings')?></button>
258
  </div>
259
 
260
  </form>
261
+ <hr>
262
+ <form class="form-horizontal" autocomplete="off" id="pushassist_auto_send_form" name="pushassist_auto_send_form" enctype="multipart/form-data" action="<?php echo $this->getUrl('*/*/autosendproduct'); ?>" method="post">
263
+ <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
264
+ <div class="form-group" style="margin-top:10px">
265
+ <div class="col-sm-2"></div>
266
+ <div class="col-sm-10">
267
+ <input type="checkbox" value="1" <?php echo ($pushassist_js_restrict==1 ? 'checked' : '');?> name="pushassist_js_restrict" id="pushassist_js_restrict">
268
+ <label class="form-label checkbox_title margin-l-10 margin-t-5"><?php echo $this->__('Stop Automatic Script Inclusion. In That Case You Have to Manually Install our Script.')?></label>
269
+ </div>
270
+ </div>
271
+
272
+ <div class="form-group">
273
+ <div class="col-sm-2"></div>
274
+ <div class="col-sm-10">
275
+ <label><?php echo $this->__('Notification Message When a Product is Added')?></label>
276
+ <input type="text" value="<?php echo $pushassist_setting_post_message;?>" name="pushassist_setting_post_message" placeholder="Notification Message When a Product is Published" maxlength="138" id="pushassist_setting_post_message" class="form-control margin-t-10 clearfix" required="">
277
+ </div>
278
+ </div>
279
+
280
+ <div class="form-group">
281
+ <div class="col-sm-2"></div>
282
+ <div class="col-sm-8">
283
+ <button type="submit" class="btn btn-default" value="Save Settings" name="psa-gcm-settings"><?php echo $this->__('Save Settings')?></button>
284
+ </div>
285
+ </div>
286
+ </form>
287
  </div>
288
  </div>
289
  </div>
340
  </div>
341
  <script language="javascript">
342
  jQuery.noConflict();
 
 
343
  jQuery("#template").on("change", function () {
344
 
345
  if(jQuery(this).val() == 8){
app/design/adminhtml/default/default/template/pushassist/subscribers.phtml CHANGED
@@ -11,7 +11,6 @@ if( count($get_subscribers) > 0){
11
  ?>
12
  <div id="Psidebar" >
13
  <ul>
14
- <!--<li><a href="<?php //echo $this->getUrl('*/pushassist_createaccount'); ?>">Create an Account</a></li>-->
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
17
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
@@ -37,10 +36,7 @@ if( count($get_subscribers) > 0){
37
  <!-- Project Stats Start -->
38
  <div class="col-md-12 col-lg-12">
39
  <div class="panel panel-widget">
40
- <!-- <div class="panel-title">
41
- Total <span class="label label-info"><?php //echo count($get_subscribers);?></span> Subscribers
42
-
43
- </div>-->
44
  <div class="panel-search">
45
  <form>
46
  <input type="text" class="form-control" placeholder="Search...">
11
  ?>
12
  <div id="Psidebar" >
13
  <ul>
 
14
  <li><a href="<?php echo $this->getUrl('*/pushassist_dashboard'); ?>"><?php echo $this->__('Dashboard')?></a></li>
15
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationmain'); ?>"><?php echo $this->__('Notifications')?></a></li>
16
  <li><a href="<?php echo $this->getUrl('*/pushassist_notificationsend'); ?>"><?php echo $this->__('Send Notification')?></a></li>
36
  <!-- Project Stats Start -->
37
  <div class="col-md-12 col-lg-12">
38
  <div class="panel panel-widget">
39
+
 
 
 
40
  <div class="panel-search">
41
  <form>
42
  <input type="text" class="form-control" placeholder="Search...">
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webpushnotification_Pushassist</name>
4
- <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
10
  <description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
11
- <notes>Built a stable version 1.0.7</notes>
12
  <authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
13
- <date>2016-10-28</date>
14
- <time>11:32:09</time>
15
- <contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="a1eb5ef8c0e57c1da342e4663f735d39"/></dir><dir name="Helper"><file name="Data.php" hash="cb10328b6d7059f5173de2ee373a447e"/></dir><dir name="Model"><file name="Observer.php" hash="f61d007b9e615c422972b6287deff16c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pushassist"><file name="CampaignController.php" hash="d948db17d7620d0f84fcaa6e455c5b2f"/><file name="CampaignlistController.php" hash="693d94b5c087f2f1339ea192df4c10ab"/><file name="CreateaccountController.php" hash="800903fddaf89755ee99714fb0f7eaa3"/><file name="CreatecampaignController.php" hash="50f14a68cc26ba3fcbc55207f9612aa6"/><file name="CreatesegmentsController.php" hash="b2e45413a9bdb163d35a84896f8a2173"/><file name="DashboardController.php" hash="cbd8c12f1d2ca2072944bb80b1cd2d88"/><file name="NotificationmainController.php" hash="319b0b896ce243f64ccb7aa12f130ef0"/><file name="NotificationsendController.php" hash="b94a751c6ee61ce27b80d6aa06d0d95b"/><file name="SegmentsController.php" hash="8d366c16f7e8817413e0492a919ce61d"/><file name="SettingsController.php" hash="341b8144b2038a25fbefcf5411055e87"/><file name="SubscribersController.php" hash="7c941c29948e69b6aabd90b44e4a63fa"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7db3b82adfefb22f01c2c73877c2a883"/><file name="config.xml" hash="4046f48fb081d5116f03b29fa2884f17"/><file name="system.xml" hash="ae307161f98924ac45adc981db84c75e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pushassist.xml" hash="db81fe5191c00f4fe08f50dd0004673a"/></dir><dir name="template"><dir name="pushassist"><file name="campaign.phtml" hash="35b1fe1e892823c6772261b453117fa1"/><file name="create_account.phtml" hash="5944544b8919f4e083a8c66c1952c1a9"/><file name="createcampaign.phtml" hash="bb9e7c5fd204edfca29221a8de1a7eac"/><file name="createsegments.phtml" hash="3453f8244da0929e0a64123a775ce2ca"/><file name="dashboard.phtml" hash="6d4132988cd2c1f826d4dbab2ddd24b9"/><file name="notification.phtml" hash="db8c2ec25f032d542c14c139018d47aa"/><file name="segments.phtml" hash="2e29052154bd79c4b3e26e6f33121099"/><file name="sendnotification.phtml" hash="77648f82f09ead8db242caa28018d61c"/><file name="settings.phtml" hash="ab0f73b1c3e41fcf82ea2161eb8b2d41"/><file name="subscribers.phtml" hash="dfe5e762b09c7cdb72ca55c9a0585ed4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webpushnotification_Pushassist.xml" hash="d32b8e99774c18aa5aab352cfdd06e96"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pushassist"><file name="bootstrap-datetimepicker.min.css" hash="fa0a2cb4d62d4a578174324afdec0be6"/><file name="bootstrap-select.css" hash="71fcb49a14eaea2be04acb5fc54ebbe1"/><file name="bootstrap.min.css" hash="eedf9ee80c2faa4e1b9ab9017cdfcb88"/><file name="campaign.png" hash="fb1f5604466870a9f35dcd62eb6c562f"/><file name="content_base.css" hash="e1f623505b9aecc04b0ab23b3fa3b0dc"/><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/></dir><dir name="imgUpload"><file name="jquery.fileupload.css" hash="2ee732f8354790746644b312b7b2df1b"/><file name="jquery.fileupload.js" hash="25360c56ade52c72edf654045580c1ce"/><file name="jquery.ui.widget.js" hash="0b44270691b4abf4e38e1a45928a3dc6"/></dir><file name="notification_setting.png" hash="8bf9fbc3ef19ab67e1da8f3849d53a9f"/><file name="pushassist_opt_in_box_setting.png" hash="79feadfc5795b25fc2cb3092272c3e95"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pushassist"><file name="bootstrap-datetimepicker.js" hash="3476fc7070ebef66f2c3a6c1c7f3a408"/><file name="bootstrap-select.js" hash="1b4396af90dda85e5e06782133aaa443"/><file name="bootstrap.min.js" hash="8c237312864d2e4c4f03544cd4f9b195"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="plugins.js" hash="d671d70560ecac1b27b328f643f76fc2"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Webpushnotification_Pushassist.csv" hash="4cee55524c735f91e1313afd6e09c0a2"/></dir><dir name="fr_FR"><file name="Webpushnotification_Pushassist.csv" hash="f333463a98bdb3daa77102db1de6a2b8"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webpushnotification_Pushassist</name>
4
+ <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
10
  <description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
11
+ <notes>Built a stable version 1.0.8</notes>
12
  <authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
13
+ <date>2016-12-02</date>
14
+ <time>13:40:03</time>
15
+ <contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="e2dab9416d5b5f3c4c0b61d0874f8291"/></dir><dir name="Helper"><file name="Data.php" hash="cb10328b6d7059f5173de2ee373a447e"/></dir><dir name="Model"><file name="Observer.php" hash="e9364016a56eac61d77dd8cb403439c6"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pushassist"><file name="CampaignController.php" hash="d948db17d7620d0f84fcaa6e455c5b2f"/><file name="CampaignlistController.php" hash="693d94b5c087f2f1339ea192df4c10ab"/><file name="CreateaccountController.php" hash="800903fddaf89755ee99714fb0f7eaa3"/><file name="CreatecampaignController.php" hash="50f14a68cc26ba3fcbc55207f9612aa6"/><file name="CreatesegmentsController.php" hash="b2e45413a9bdb163d35a84896f8a2173"/><file name="DashboardController.php" hash="cbd8c12f1d2ca2072944bb80b1cd2d88"/><file name="NotificationmainController.php" hash="319b0b896ce243f64ccb7aa12f130ef0"/><file name="NotificationsendController.php" hash="b94a751c6ee61ce27b80d6aa06d0d95b"/><file name="SegmentsController.php" hash="8d366c16f7e8817413e0492a919ce61d"/><file name="SettingsController.php" hash="6c6ef26a2fdcfd9f41f8b896d9219c52"/><file name="SubscribersController.php" hash="7c941c29948e69b6aabd90b44e4a63fa"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="200357e7cc170e3ad7a9ba9d2dbd2d6b"/></dir><dir name="sql"><dir name="pushassist_setup"><file name="mysql4-install-1.0.8.php" hash="3f690b91defd911af9a1fb2ec1ed335f"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pushassist.xml" hash="a8bbbe4afa099e9d01525d00574ebef4"/></dir><dir name="template"><dir name="pushassist"><file name="campaign.phtml" hash="473cd90965e5bb32b0e566a3e5f1151e"/><file name="create_account.phtml" hash="95498831445926a90848067d62663b97"/><file name="createcampaign.phtml" hash="a21a1801a1ece9d2481555e86f453cfd"/><file name="createsegments.phtml" hash="ff0c51cd59c9d89d69211fb578f7e4fc"/><file name="dashboard.phtml" hash="2e4338460b713840b94ba852fa71f2ed"/><file name="notification.phtml" hash="ba00816877630bd2a9d92e0752373b20"/><file name="push_dashboard.phtml" hash="120b39b228a9c08764dd5f9390211266"/><file name="segments.phtml" hash="cdc6ebeb064d774bec1ca24706b2eb59"/><file name="sendnotification.phtml" hash="92b786291beb96588d593141ce3ca173"/><file name="settings.phtml" hash="e7e1e5dc96e49ec4788f9f35d06dacbf"/><file name="subscribers.phtml" hash="edfa485993e06fdafbfc04f2d09ec21b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webpushnotification_Pushassist.xml" hash="d32b8e99774c18aa5aab352cfdd06e96"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pushassist"><file name="bootstrap-datetimepicker.min.css" hash="fa0a2cb4d62d4a578174324afdec0be6"/><file name="bootstrap-select.css" hash="71fcb49a14eaea2be04acb5fc54ebbe1"/><file name="bootstrap.min.css" hash="eedf9ee80c2faa4e1b9ab9017cdfcb88"/><file name="campaign.png" hash="fb1f5604466870a9f35dcd62eb6c562f"/><file name="content_base.css" hash="f5892c76d035d78e2e5aba2038778bf4"/><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/></dir><dir name="imgUpload"><file name="jquery.fileupload.css" hash="2ee732f8354790746644b312b7b2df1b"/><file name="jquery.fileupload.js" hash="25360c56ade52c72edf654045580c1ce"/><file name="jquery.ui.widget.js" hash="0b44270691b4abf4e38e1a45928a3dc6"/></dir><file name="notification_setting.png" hash="8bf9fbc3ef19ab67e1da8f3849d53a9f"/><file name="pushassist_opt_in_box_setting.png" hash="79feadfc5795b25fc2cb3092272c3e95"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pushassist"><file name="bootstrap-datetimepicker.js" hash="3476fc7070ebef66f2c3a6c1c7f3a408"/><file name="bootstrap-select.js" hash="1b4396af90dda85e5e06782133aaa443"/><file name="bootstrap.min.js" hash="8c237312864d2e4c4f03544cd4f9b195"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="plugins.js" hash="d671d70560ecac1b27b328f643f76fc2"/></dir></dir><dir name="."><file name="readme.txt" hash="36c5618b878707a215b81ff19ec4fc7c"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Webpushnotification_Pushassist.csv" hash="4cee55524c735f91e1313afd6e09c0a2"/></dir><dir name="fr_FR"><file name="Webpushnotification_Pushassist.csv" hash="f333463a98bdb3daa77102db1de6a2b8"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
readme.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ To install the Extension please follow the instructions given below:
2
+
3
+ 1. Copy app, js & skin directory into the Magento root folder
4
+ 2. Clear cache from "var/cache" folder.
5
+
6
+ To Uninstall the Extension please follow the instructions given below:
7
+
8
+ 1. Delete Below Folders & files from magento root directory
9
+
10
+ app/code/community/Webpushnotification
11
+ app/etc/modules/Webpushnotification_Pushassist.xml
12
+ js/pushassist
13
+ skin/adminhtml/default/default/pushassist
14
+
15
+ 2. Execute this sql query directly on your database
16
+
17
+ /*
18
+ Please have a backup of your DB before executing the following commands.
19
+ Execute this sql query directly on your database to completely remove all Pushassist references.
20
+ If you use table name prefixes please change the table names accordingly
21
+ */
22
+
23
+ DELETE FROM `core_resource` WHERE code ='magikfees_setup';
24
+ DELETE FROM `core_config_data` WHERE path ='pushassistsection/general/apikey'
25
+ OR path ='pushassistsection/general/secretkey'
26
+ OR path ='pushassistsection/general/subscribers_remain'
27
+ OR path ='pushassistsection/general/planType'
28
+ OR path ='pushassistsection/general/subscribers_limit'
29
+ OR path ='pushassistsection/general/jsPath'
30
+ OR path ='pushassistsection/general/pushassist_setting_post_message'
31
+ OR path ='pushassistsection/general/pushassist_js_restrict';
skin/adminhtml/default/default/pushassist/content_base.css CHANGED
@@ -346,6 +346,18 @@ background: #ffffff none repeat scroll 0 0;
346
  }
347
  #pushassist .float-r { float:right;}
348
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  @media (min-width: 768px) {
350
  #pushassist .col-sm-1, #pushassist .col-sm-2, #pushassist .col-sm-3, #pushassist .col-sm-4, #pushassist .col-sm-5, #pushassist .col-sm-6, #pushassist .col-sm-7, #pushassist .col-sm-8, #pushassist .col-sm-9, #pushassist .col-sm-10, #pushassist .col-sm-11, #pushassist .col-sm-12 {
351
  float: left;
346
  }
347
  #pushassist .float-r { float:right;}
348
 
349
+ #pushassist .maindashboard {
350
+ background: #f4f4f4 none repeat scroll 0 0;
351
+ border-left: 1px solid rgba(0, 0, 0, 0.05);
352
+ padding-left: 30px;
353
+ padding-right: 30px;
354
+ float: left;
355
+ width: 100%;
356
+ }
357
+ #pushassist .maindashboard-widget {
358
+ margin-left: -5px;
359
+ margin-right: -5px;
360
+ padding: 0;}
361
  @media (min-width: 768px) {
362
  #pushassist .col-sm-1, #pushassist .col-sm-2, #pushassist .col-sm-3, #pushassist .col-sm-4, #pushassist .col-sm-5, #pushassist .col-sm-6, #pushassist .col-sm-7, #pushassist .col-sm-8, #pushassist .col-sm-9, #pushassist .col-sm-10, #pushassist .col-sm-11, #pushassist .col-sm-12 {
363
  float: left;