GlyphWebCore_NewsletterTest - Version 1.0.1

Version Notes

1. Fixed 404 error message which occurs when "Send Test Newsletter" menu is clicked.

2. Adding code to check if active Newsletter Queues are present.

Download this release

Release Info

Developer Harish Kumar B P
Extension GlyphWebCore_NewsletterTest
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/GlyphWebCore/NewsletterTest/.DS_Store DELETED
Binary file
app/code/community/GlyphWebCore/NewsletterTest/Helper/Data.php CHANGED
@@ -1,5 +1,12 @@
1
  <?php
2
 
 
 
 
 
 
 
 
3
  class GlyphWebCore_NewsletterTest_Helper_Data extends Mage_Core_Helper_Abstract
4
  {
5
 
1
  <?php
2
 
3
+ /**
4
+ * @creator - Harish Kumar B P from GlyphWebCore Technologies
5
+ * @website - http://www.magedevelopment.com
6
+ * @module - GlyphWebCore NewsletterTest
7
+ *
8
+ **/
9
+
10
  class GlyphWebCore_NewsletterTest_Helper_Data extends Mage_Core_Helper_Abstract
11
  {
12
 
app/code/community/GlyphWebCore/NewsletterTest/controllers/.DS_Store DELETED
Binary file
app/code/community/GlyphWebCore/NewsletterTest/controllers/Adminhtml/.DS_Store DELETED
Binary file
app/code/community/GlyphWebCore/NewsletterTest/controllers/Adminhtml/{SendTestController.php → SendtestController.php} RENAMED
@@ -1,6 +1,13 @@
1
  <?php
2
 
3
- class GlyphWebCore_NewsletterTest_Adminhtml_SendTestController extends Mage_Adminhtml_Controller_Action
 
 
 
 
 
 
 
4
  {
5
 
6
 
1
  <?php
2
 
3
+ /**
4
+ * @creator - Harish Kumar B P from GlyphWebCore Technologies
5
+ * @website - http://www.magedevelopment.com
6
+ * @module - GlyphWebCore NewsletterTest
7
+ *
8
+ **/
9
+
10
+ class GlyphWebCore_NewsletterTest_Adminhtml_SendtestController extends Mage_Adminhtml_Controller_Action
11
  {
12
 
13
 
app/code/community/GlyphWebCore/NewsletterTest/etc/.DS_Store DELETED
Binary file
app/code/community/GlyphWebCore/NewsletterTest/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <GlyphWebCore_NewsletterTest>
5
- <version>0.1.0</version>
6
  </GlyphWebCore_NewsletterTest>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <GlyphWebCore_NewsletterTest>
5
+ <version>1.0.1</version>
6
  </GlyphWebCore_NewsletterTest>
7
  </modules>
8
 
app/design/adminhtml/default/default/template/glyphwebcore/newslettertest/.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/glyphwebcore/newslettertest/sendtest.phtml CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="content-header">
2
  <table cellspacing="0" class="grid-header">
3
  <tr>
@@ -18,8 +29,8 @@ $prefix = Mage::getConfig()->getTablePrefix();
18
 
19
  $sql = "SELECT * FROM ".$prefix."newsletter_queue WHERE queue_status = 0";
20
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
21
- foreach ($connection->fetchAll($sql) as $arr_row) {
22
- //echo "Subject = " . $arr_row['newsletter_subject'] . "<br>";
23
  $myoptions = $myoptions."<option value='".$arr_row['queue_id']."'>".$arr_row['newsletter_subject']."</option>\n";
24
  }
25
 
@@ -27,6 +38,8 @@ foreach ($connection->fetchAll($sql) as $arr_row) {
27
 
28
  <div class="entry-edit">
29
 
 
 
30
  <form id="edit_form" name="edit_form" method="post" action="<?=$this->getUrl('*/*/post')?>">
31
  <input name="form_add" type="hidden" value="getnow" />
32
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
@@ -57,7 +70,13 @@ foreach ($connection->fetchAll($sql) as $arr_row) {
57
  </tr>
58
  </table>
59
  </fieldset>
60
- </form>
 
 
 
 
 
 
61
 
62
  </div>
63
 
1
+ <?php
2
+
3
+ /**
4
+ * @creator - Harish Kumar B P from GlyphWebCore Technologies
5
+ * @website - http://www.magedevelopment.com
6
+ * @module - GlyphWebCore NewsletterTest
7
+ *
8
+ **/
9
+
10
+ ?>
11
+
12
  <div class="content-header">
13
  <table cellspacing="0" class="grid-header">
14
  <tr>
29
 
30
  $sql = "SELECT * FROM ".$prefix."newsletter_queue WHERE queue_status = 0";
31
  $connection = Mage::getSingleton('core/resource')->getConnection('core_read');
32
+ foreach ($connection->fetchAll($sql) as $arr_row)
33
+ {
34
  $myoptions = $myoptions."<option value='".$arr_row['queue_id']."'>".$arr_row['newsletter_subject']."</option>\n";
35
  }
36
 
38
 
39
  <div class="entry-edit">
40
 
41
+ <?php if($myoptions) : ?>
42
+
43
  <form id="edit_form" name="edit_form" method="post" action="<?=$this->getUrl('*/*/post')?>">
44
  <input name="form_add" type="hidden" value="getnow" />
45
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
70
  </tr>
71
  </table>
72
  </fieldset>
73
+ </form>
74
+
75
+ <?php else: ?>
76
+
77
+ <center><font size="3">No Active Newsletter Queues found!</font></center>
78
+
79
+ <?php endif; ?>
80
 
81
  </div>
82
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GlyphWebCore_NewsletterTest</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -12,11 +12,13 @@
12
  Now, you can send a copy of the Newsletter as a test to any email and check how it will look for your customers in their email.&#xD;
13
  &#xD;
14
  NOTE: In the Test Newsletter that you receive, variables will NOT be replaced with Links. For example,"{{var subscriber.getUnsubscriptionLink()}}" will not be replaced with the actual unsubscribe URL.</description>
15
- <notes>Initial Release</notes>
16
- <authors><author><name>Harish Kumar B P</name><user>harish_bp</user><email>harishbp@magedevelopment.com</email></author></authors>
17
- <date>2013-10-25</date>
18
- <time>21:18:43</time>
19
- <contents><target name="magecommunity"><dir name="GlyphWebCore"><dir name="NewsletterTest"><dir name="Helper"><file name="Data.php" hash="d3a1cd9454346e9dd6e10aa136987747"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SendTestController.php" hash="a746bf58f135e852b8cb123230992688"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="ed95c546eedb16b600a0ad7b25710c34"/></dir><dir name="etc"><file name="config.xml" hash="61f78e0cf02bebdb7ada6927c121d1c6"/><file name=".DS_Store" hash="f7cad3e2cf161faad95bd5d82cf6247c"/></dir><file name=".DS_Store" hash="41775c7cba1d509412978bb5f7ad9103"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GlyphWebCore_NewsletterTest.xml" hash="ba5b6f9a14dfeb87f8736792a27d98e8"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="glyphwebcore"><file name="newslettertest.xml" hash="47de848e1847d7c3ab855bcb7cdf4088"/></dir></dir><dir name="template"><dir name="glyphwebcore"><dir name="newslettertest"><file name="sendtest.phtml" hash="e0f35af58b4754d57bbc51d6aa4be2b6"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></dir></dir></dir></target></contents>
 
 
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>5.5.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GlyphWebCore_NewsletterTest</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
12
  Now, you can send a copy of the Newsletter as a test to any email and check how it will look for your customers in their email.&#xD;
13
  &#xD;
14
  NOTE: In the Test Newsletter that you receive, variables will NOT be replaced with Links. For example,"{{var subscriber.getUnsubscriptionLink()}}" will not be replaced with the actual unsubscribe URL.</description>
15
+ <notes>1. Fixed 404 error message which occurs when "Send Test Newsletter" menu is clicked.&#xD;
16
+ &#xD;
17
+ 2. Adding code to check if active Newsletter Queues are present.</notes>
18
+ <authors><author><name>Harish Kumar B P</name><user>magedevelopment</user><email>harishbp@magedevelopment.com</email></author></authors>
19
+ <date>2013-11-02</date>
20
+ <time>11:43:58</time>
21
+ <contents><target name="magecommunity"><dir name="GlyphWebCore"><dir name="NewsletterTest"><dir name="Helper"><file name="Data.php" hash="6b3b2bcdeb4faf7bed8873c7ea1f0d70"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SendtestController.php" hash="d5da550813ce548664c82a32cd5ecfd5"/></dir></dir><dir name="etc"><file name="config.xml" hash="315f62c33fc62274363115668712b391"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GlyphWebCore_NewsletterTest.xml" hash="ba5b6f9a14dfeb87f8736792a27d98e8"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="glyphwebcore"><file name="newslettertest.xml" hash="47de848e1847d7c3ab855bcb7cdf4088"/></dir></dir><dir name="template"><dir name="glyphwebcore"><dir name="newslettertest"><file name="sendtest.phtml" hash="67e70e0a536d49167da801a057bcf14f"/></dir></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.2.0</min><max>5.5.0</max></php></required></dependencies>
24
  </package>