Constant_Contact - Version 1.3

Version Notes

You must have an account with constant contact.
to use this extension

Download this release

Release Info

Developer Magento Core Team
Extension Constant_Contact
Version 1.3
Comparing to
See all releases


Code changes from version 1.2 to 1.3

app/code/local/Rahil/ConstantContact/Model/List.php CHANGED
@@ -30,6 +30,8 @@ class Rahil_Constantcontact_Model_List extends Mage_Core_Model_Abstract {
30
  foreach($data as $d){
31
  $array[] = array('label'=>$d['label'][0],'value'=>$d['value'][0]);
32
  }
 
 
33
 
34
  return $array;
35
 
30
  foreach($data as $d){
31
  $array[] = array('label'=>$d['label'][0],'value'=>$d['value'][0]);
32
  }
33
+
34
+
35
 
36
  return $array;
37
 
app/code/local/Rahil/ConstantContact/controllers/SubscriberController.php CHANGED
@@ -1,4 +1,29 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  require("Mage/Newsletter/controllers/SubscriberController.php");
3
 
4
  class Rahil_Constantcontact_SubscriberController extends Mage_Core_Controller_Front_Action
@@ -41,6 +66,7 @@ class Rahil_Constantcontact_SubscriberController extends Mage_Core_Controller_Fr
41
  $status = Mage::getModel('newsletter/subscriber')->subscribe($email);
42
 
43
  $config = Mage::getStoreConfig('constantcontact');
 
44
  if($email!='' && $config['settings']['constant_status']==1){
45
  $path = Mage::getBaseDir().'/app/code/local/Rahil/ConstantContact/api';
46
  require_once($path."/ctctWrapper.php");
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Newsletter
23
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
  require("Mage/Newsletter/controllers/SubscriberController.php");
28
 
29
  class Rahil_Constantcontact_SubscriberController extends Mage_Core_Controller_Front_Action
66
  $status = Mage::getModel('newsletter/subscriber')->subscribe($email);
67
 
68
  $config = Mage::getStoreConfig('constantcontact');
69
+
70
  if($email!='' && $config['settings']['constant_status']==1){
71
  $path = Mage::getBaseDir().'/app/code/local/Rahil/ConstantContact/api';
72
  require_once($path."/ctctWrapper.php");
app/code/local/Rahil/ConstantContact/etc/config.xml CHANGED
@@ -5,6 +5,17 @@
5
  <version>1.0.3</version>
6
  </Rahil_Constantcontact>
7
  </modules>
 
 
 
 
 
 
 
 
 
 
 
8
  <frontend>
9
  <routers>
10
  <newsletter>
5
  <version>1.0.3</version>
6
  </Rahil_Constantcontact>
7
  </modules>
8
+ <!-- <frontend>
9
+ <routers>
10
+ <constantcontact>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Rahil_Constantcontact</module>
14
+ <frontName>constantcontact</frontName>
15
+ </args>
16
+ </constantcontact>
17
+ </routers>
18
+ </frontend>-->
19
  <frontend>
20
  <routers>
21
  <newsletter>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Constant_Contact</name>
4
- <version>1.2</version>
5
  <stability>stable</stability>
6
  <license>GNU</license>
7
  <channel>community</channel>
@@ -11,9 +11,9 @@
11
  <notes>You must have an account with constant contact.
12
  to use this extension</notes>
13
  <authors><author><name>Rahil</name><user>auto-converted</user><email>prgtest2009@gmail.com</email></author></authors>
14
- <date>2011-01-21</date>
15
- <time>09:38:13</time>
16
- <contents><target name="mageetc"><dir name="modules"><file name="Rahil_Constantcontact.xml" hash="417b137c47c52cadca0013371f95bc1a"/></dir></target><target name="magelocal"><dir name="Rahil"><dir name="ConstantContact"><dir name="api"><file name="ctctWrapper.php" hash="23853c580c26772b82842400255424a0"/></dir><dir name="controllers"><file name="SubscriberController.php" hash="af0ca956af74904f61090f6c4a938a87"/></dir><dir name="etc"><file name="config.xml" hash="8c121dce1ba364364cebb4991eae8808"/><file name="system.xml" hash="1b6ccd93b8be94568fd13baea2cd0247"/></dir><dir name="Helper"><file name="Data.php" hash="5b6d7d2fc1234213c7f0d3088c8832aa"/></dir><dir name="Model"><file name="Constantcontact.php" hash="456f4085ec5b261f6c5b5c1bbe6fcc01"/><file name="List.php" hash="27cb17e4a598a5b93623a67d3fc5f577"/></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Constant_Contact</name>
4
+ <version>1.3</version>
5
  <stability>stable</stability>
6
  <license>GNU</license>
7
  <channel>community</channel>
11
  <notes>You must have an account with constant contact.
12
  to use this extension</notes>
13
  <authors><author><name>Rahil</name><user>auto-converted</user><email>prgtest2009@gmail.com</email></author></authors>
14
+ <date>2011-01-24</date>
15
+ <time>05:37:33</time>
16
+ <contents><target name="mageetc"><dir name="modules"><file name="Rahil_Constantcontact.xml" hash="417b137c47c52cadca0013371f95bc1a"/></dir></target><target name="magelocal"><dir name="Rahil"><dir name="ConstantContact"><dir name="api"><file name="ctctWrapper.php" hash="23853c580c26772b82842400255424a0"/></dir><dir name="controllers"><file name="SubscriberController.php" hash="a4b7de7b75b51d8b3badc62c0d33db8b"/></dir><dir name="etc"><file name="config.xml" hash="3ac14ccbba79e30467b18019de2fba25"/><file name="system.xml" hash="1b6ccd93b8be94568fd13baea2cd0247"/></dir><dir name="Helper"><file name="Data.php" hash="5b6d7d2fc1234213c7f0d3088c8832aa"/></dir><dir name="Model"><file name="Constantcontact.php" hash="456f4085ec5b261f6c5b5c1bbe6fcc01"/><file name="List.php" hash="10f68e7f11b55027edf6f5629fa54b53"/></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>