Version Notes
Version 1.9.x compatibility
Download this release
Release Info
Developer | Conlabz GmbH |
Extension | Conlabz_Useroptin |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.1.0
- app/code/local/Conlabz/Useroptin/Model/Newsletter/Subscriber.php +8 -16
- app/code/local/Conlabz/Useroptin/controllers/AccountController.php +37 -40
- app/code/local/Conlabz/Useroptin/controllers/ManageController.php +25 -44
- app/code/local/Conlabz/Useroptin/etc/config.xml +53 -53
- app/etc/modules/Conlabz_Useroptin.xml +0 -9
- package.xml +15 -11
app/code/local/Conlabz/Useroptin/Model/Newsletter/Subscriber.php
CHANGED
@@ -17,6 +17,8 @@ class Conlabz_Useroptin_Model_Newsletter_Subscriber extends Mage_Newsletter_Mode
|
|
17 |
$customerSession = Mage::getSingleton('customer/session');
|
18 |
|
19 |
if(!$this->getId()) {
|
|
|
|
|
20 |
$this->setSubscriberConfirmCode($this->randomSequence());
|
21 |
}
|
22 |
|
@@ -27,6 +29,11 @@ class Conlabz_Useroptin_Model_Newsletter_Subscriber extends Mage_Newsletter_Mode
|
|
27 |
->loadByEmail($email)
|
28 |
->getId();
|
29 |
$isSubscribeOwnEmail = $customerSession->isLoggedIn() && $ownerId == $customerSession->getId();
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
if (!$this->getId() || $this->getStatus() == self::STATUS_UNSUBSCRIBED
|
32 |
|| $this->getStatus() == self::STATUS_NOT_ACTIVE
|
@@ -35,7 +42,7 @@ class Conlabz_Useroptin_Model_Newsletter_Subscriber extends Mage_Newsletter_Mode
|
|
35 |
// if user subscribes own login email - confirmation is not needed
|
36 |
$isOwnSubscribes = $isSubscribeOwnEmail;
|
37 |
if ($isOwnSubscribes == true){
|
38 |
-
|
39 |
$this->setStatus(self::STATUS_NOT_ACTIVE);
|
40 |
}else{
|
41 |
$this->setStatus(self::STATUS_SUBSCRIBED);
|
@@ -78,20 +85,5 @@ class Conlabz_Useroptin_Model_Newsletter_Subscriber extends Mage_Newsletter_Mode
|
|
78 |
throw new Exception($e->getMessage());
|
79 |
}
|
80 |
}
|
81 |
-
public function loadByCustomer(Mage_Customer_Model_Customer $customer)
|
82 |
-
{
|
83 |
-
$data = $this->getResource()->loadByCustomer($customer);
|
84 |
-
$this->addData($data);
|
85 |
-
if (!empty($data) && $customer->getId() && !$this->getCustomerId()) {
|
86 |
-
$this->setCustomerId($customer->getId());
|
87 |
-
//$this->setSubscriberConfirmCode($this->randomSequence());
|
88 |
-
if ($this->getStatus()==self::STATUS_NOT_ACTIVE) {
|
89 |
-
$this->setStatus($customer->getIsSubscribed() ? self::STATUS_SUBSCRIBED : self::STATUS_UNSUBSCRIBED);
|
90 |
-
}
|
91 |
-
$this->save();
|
92 |
-
}
|
93 |
-
return $this;
|
94 |
-
}
|
95 |
-
|
96 |
|
97 |
}
|
17 |
$customerSession = Mage::getSingleton('customer/session');
|
18 |
|
19 |
if(!$this->getId()) {
|
20 |
+
Mage::log(get_class($this)."---subscribe", null, "newsletter.log", true);
|
21 |
+
Mage::log($this->randomSequence(), null, "newsletter.log", true);
|
22 |
$this->setSubscriberConfirmCode($this->randomSequence());
|
23 |
}
|
24 |
|
29 |
->loadByEmail($email)
|
30 |
->getId();
|
31 |
$isSubscribeOwnEmail = $customerSession->isLoggedIn() && $ownerId == $customerSession->getId();
|
32 |
+
if ($isSubscribeOwnEmail){
|
33 |
+
$isConfirmNeed = (Mage::getStoreConfig(self::XML_PATH_LOGGED_CONFIRM_EMAIL_TEMPLATE) == 1) ? true : false;
|
34 |
+
}
|
35 |
+
$isConfirmNeed = true;
|
36 |
+
$isSubscribeOwnEmail = true;
|
37 |
|
38 |
if (!$this->getId() || $this->getStatus() == self::STATUS_UNSUBSCRIBED
|
39 |
|| $this->getStatus() == self::STATUS_NOT_ACTIVE
|
42 |
// if user subscribes own login email - confirmation is not needed
|
43 |
$isOwnSubscribes = $isSubscribeOwnEmail;
|
44 |
if ($isOwnSubscribes == true){
|
45 |
+
if (Mage::getStoreConfig(self::XML_PATH_LOGGED_CONFIRM_EMAIL_TEMPLATE) == 1){
|
46 |
$this->setStatus(self::STATUS_NOT_ACTIVE);
|
47 |
}else{
|
48 |
$this->setStatus(self::STATUS_SUBSCRIBED);
|
85 |
throw new Exception($e->getMessage());
|
86 |
}
|
87 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
}
|
app/code/local/Conlabz/Useroptin/controllers/AccountController.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
|
|
2 |
include "Mage/Customer/controllers/AccountController.php";
|
3 |
|
4 |
-
class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountController
|
5 |
-
|
6 |
/**
|
7 |
* Create customer account action
|
8 |
*/
|
9 |
-
public function createPostAction()
|
10 |
-
{
|
11 |
$session = $this->_getSession();
|
12 |
if ($session->isLoggedIn()) {
|
13 |
$this->_redirect('*/*/');
|
@@ -24,32 +24,15 @@ class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountControlle
|
|
24 |
/* @var $customerForm Mage_Customer_Model_Form */
|
25 |
$customerForm = Mage::getModel('customer/form');
|
26 |
$customerForm->setFormCode('customer_account_create')
|
27 |
-
|
28 |
|
29 |
$customerData = $customerForm->extractData($this->getRequest());
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
$status = Mage::getModel("newsletter/subscriber")->subscribe($this->getRequest()->getPost('email'));
|
36 |
-
if ($status == Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE) {
|
37 |
-
Mage::getSingleton('customer/session')->addSuccess($this->__('Confirmation request has been sent.'));
|
38 |
-
}
|
39 |
-
else {
|
40 |
-
Mage::getSingleton('customer/session')->addSuccess($this->__('Thank you for your subscription.'));
|
41 |
-
}
|
42 |
-
|
43 |
}
|
44 |
-
|
45 |
-
}else{
|
46 |
-
|
47 |
-
|
48 |
-
if ($this->getRequest()->getParam('is_subscribed', false)) {
|
49 |
-
$customer->setIsSubscribed(1);
|
50 |
-
}
|
51 |
-
|
52 |
-
}
|
53 |
/**
|
54 |
* Initialize customer group id
|
55 |
*/
|
@@ -61,14 +44,14 @@ class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountControlle
|
|
61 |
/* @var $addressForm Mage_Customer_Model_Form */
|
62 |
$addressForm = Mage::getModel('customer/form');
|
63 |
$addressForm->setFormCode('customer_register_address')
|
64 |
-
|
65 |
|
66 |
-
$addressData
|
67 |
-
$addressErrors
|
68 |
if ($addressErrors === true) {
|
69 |
$address->setId(null)
|
70 |
-
|
71 |
-
|
72 |
$addressForm->compactData($addressData);
|
73 |
$customer->addAddress($address);
|
74 |
|
@@ -89,6 +72,8 @@ class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountControlle
|
|
89 |
$customerForm->compactData($customerData);
|
90 |
$customer->setPassword($this->getRequest()->getPost('password'));
|
91 |
$customer->setConfirmation($this->getRequest()->getPost('confirmation'));
|
|
|
|
|
92 |
$customerErrors = $customer->validate();
|
93 |
if (is_array($customerErrors)) {
|
94 |
$errors = array_merge($customerErrors, $errors);
|
@@ -96,26 +81,26 @@ class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountControlle
|
|
96 |
}
|
97 |
|
98 |
$validationResult = count($errors) == 0;
|
99 |
-
|
100 |
if (true === $validationResult) {
|
101 |
$customer->save();
|
102 |
|
103 |
-
Mage::dispatchEvent('customer_register_success',
|
104 |
-
array('account_controller' => $this, 'customer' => $customer)
|
105 |
);
|
106 |
|
|
|
107 |
if ($customer->isConfirmationRequired()) {
|
108 |
$customer->sendNewAccountEmail(
|
109 |
-
|
110 |
-
$session->getBeforeAuthUrl(),
|
111 |
-
Mage::app()->getStore()->getId()
|
112 |
);
|
113 |
$session->addSuccess($this->__('Account confirmation is required. Please, check your email for the confirmation link. To resend the confirmation email please <a href="%s">click here</a>.', Mage::helper('customer')->getEmailConfirmationUrl($customer->getEmail())));
|
114 |
-
$this->
|
|
|
115 |
return;
|
116 |
} else {
|
117 |
$session->setCustomerAsLoggedIn($customer);
|
118 |
$url = $this->_welcomeCustomer($customer);
|
|
|
119 |
$this->_redirectSuccess($url);
|
120 |
return;
|
121 |
}
|
@@ -141,12 +126,24 @@ class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountControlle
|
|
141 |
$session->addError($message);
|
142 |
} catch (Exception $e) {
|
143 |
$session->setCustomerFormData($this->getRequest()->getPost())
|
144 |
-
|
145 |
}
|
146 |
}
|
147 |
|
148 |
$this->_redirectError(Mage::getUrl('*/*/create', array('_secure' => true)));
|
149 |
}
|
150 |
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
}
|
1 |
<?php
|
2 |
+
|
3 |
include "Mage/Customer/controllers/AccountController.php";
|
4 |
|
5 |
+
class Conlabz_Useroptin_AccountController extends Mage_Customer_AccountController {
|
6 |
+
|
7 |
/**
|
8 |
* Create customer account action
|
9 |
*/
|
10 |
+
public function createPostAction() {
|
|
|
11 |
$session = $this->_getSession();
|
12 |
if ($session->isLoggedIn()) {
|
13 |
$this->_redirect('*/*/');
|
24 |
/* @var $customerForm Mage_Customer_Model_Form */
|
25 |
$customerForm = Mage::getModel('customer/form');
|
26 |
$customerForm->setFormCode('customer_account_create')
|
27 |
+
->setEntity($customer);
|
28 |
|
29 |
$customerData = $customerForm->extractData($this->getRequest());
|
30 |
|
31 |
+
if ($this->getRequest()->getParam('is_subscribed', false)) {
|
32 |
+
if (Mage::getStoreConfig("newsletter/subscription/confirm_logged_email_template") != 1) {
|
33 |
+
$customer->setIsSubscribed(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Initialize customer group id
|
38 |
*/
|
44 |
/* @var $addressForm Mage_Customer_Model_Form */
|
45 |
$addressForm = Mage::getModel('customer/form');
|
46 |
$addressForm->setFormCode('customer_register_address')
|
47 |
+
->setEntity($address);
|
48 |
|
49 |
+
$addressData = $addressForm->extractData($this->getRequest(), 'address', false);
|
50 |
+
$addressErrors = $addressForm->validateData($addressData);
|
51 |
if ($addressErrors === true) {
|
52 |
$address->setId(null)
|
53 |
+
->setIsDefaultBilling($this->getRequest()->getParam('default_billing', false))
|
54 |
+
->setIsDefaultShipping($this->getRequest()->getParam('default_shipping', false));
|
55 |
$addressForm->compactData($addressData);
|
56 |
$customer->addAddress($address);
|
57 |
|
72 |
$customerForm->compactData($customerData);
|
73 |
$customer->setPassword($this->getRequest()->getPost('password'));
|
74 |
$customer->setConfirmation($this->getRequest()->getPost('confirmation'));
|
75 |
+
$customer->setPasswordConfirmation($this->getRequest()->getPost('confirmation'));
|
76 |
+
|
77 |
$customerErrors = $customer->validate();
|
78 |
if (is_array($customerErrors)) {
|
79 |
$errors = array_merge($customerErrors, $errors);
|
81 |
}
|
82 |
|
83 |
$validationResult = count($errors) == 0;
|
84 |
+
|
85 |
if (true === $validationResult) {
|
86 |
$customer->save();
|
87 |
|
88 |
+
Mage::dispatchEvent('customer_register_success', array('account_controller' => $this, 'customer' => $customer)
|
|
|
89 |
);
|
90 |
|
91 |
+
|
92 |
if ($customer->isConfirmationRequired()) {
|
93 |
$customer->sendNewAccountEmail(
|
94 |
+
'confirmation', $session->getBeforeAuthUrl(), Mage::app()->getStore()->getId()
|
|
|
|
|
95 |
);
|
96 |
$session->addSuccess($this->__('Account confirmation is required. Please, check your email for the confirmation link. To resend the confirmation email please <a href="%s">click here</a>.', Mage::helper('customer')->getEmailConfirmationUrl($customer->getEmail())));
|
97 |
+
$this->subscribeCustomer();
|
98 |
+
$this->_redirectSuccess(Mage::getUrl('*/*/index', array('_secure' => true)));
|
99 |
return;
|
100 |
} else {
|
101 |
$session->setCustomerAsLoggedIn($customer);
|
102 |
$url = $this->_welcomeCustomer($customer);
|
103 |
+
$this->subscribeCustomer();
|
104 |
$this->_redirectSuccess($url);
|
105 |
return;
|
106 |
}
|
126 |
$session->addError($message);
|
127 |
} catch (Exception $e) {
|
128 |
$session->setCustomerFormData($this->getRequest()->getPost())
|
129 |
+
->addException($e, $this->__('Cannot save the customer.'));
|
130 |
}
|
131 |
}
|
132 |
|
133 |
$this->_redirectError(Mage::getUrl('*/*/create', array('_secure' => true)));
|
134 |
}
|
135 |
|
136 |
+
public function subscribeCustomer(){
|
137 |
+
if ($this->getRequest()->getParam('is_subscribed', false)) {
|
138 |
+
if (Mage::getStoreConfig("newsletter/subscription/confirm_logged_email_template") == 1) {
|
139 |
+
$status = Mage::getModel("newsletter/subscriber")->subscribe($this->getRequest()->getPost('email'));
|
140 |
+
if ($status == Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE) {
|
141 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('Confirmation request has been sent.'));
|
142 |
+
} else {
|
143 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('Thank you for your subscription.'));
|
144 |
+
}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
}
|
149 |
}
|
app/code/local/Conlabz/Useroptin/controllers/ManageController.php
CHANGED
@@ -1,58 +1,39 @@
|
|
1 |
<?php
|
|
|
2 |
include "Mage/Newsletter/controllers/ManageController.php";
|
|
|
3 |
class Conlabz_Useroptin_ManageController extends Mage_Newsletter_ManageController {
|
4 |
-
|
5 |
-
|
6 |
-
{
|
7 |
if (!$this->_validateFormKey()) {
|
8 |
return $this->_redirect('customer/account/');
|
9 |
}
|
10 |
try {
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been removed.'));
|
32 |
-
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
}else{
|
37 |
-
Mage::getSingleton('customer/session')->getCustomer()
|
38 |
-
->setStoreId(Mage::app()->getStore()->getId())
|
39 |
-
->setIsSubscribed((boolean)$this->getRequest()->getParam('is_subscribed', false))
|
40 |
-
->save();
|
41 |
-
if ((boolean)$this->getRequest()->getParam('is_subscribed', false)) {
|
42 |
-
Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been saved.'));
|
43 |
-
} else {
|
44 |
-
Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been removed.'));
|
45 |
-
}
|
46 |
}
|
47 |
-
|
48 |
-
|
49 |
-
catch (Exception $e) {
|
50 |
-
Mage::getSingleton('customer/session')->addError($e->getMessage());
|
51 |
Mage::getSingleton('customer/session')->addError($this->__('An error occurred while saving your subscription.'));
|
52 |
}
|
53 |
$this->_redirect('customer/account/');
|
54 |
}
|
55 |
-
|
56 |
|
57 |
-
|
58 |
}
|
1 |
<?php
|
2 |
+
|
3 |
include "Mage/Newsletter/controllers/ManageController.php";
|
4 |
+
|
5 |
class Conlabz_Useroptin_ManageController extends Mage_Newsletter_ManageController {
|
6 |
+
|
7 |
+
public function saveAction() {
|
|
|
8 |
if (!$this->_validateFormKey()) {
|
9 |
return $this->_redirect('customer/account/');
|
10 |
}
|
11 |
try {
|
12 |
+
|
13 |
+
if (Mage::getStoreConfig("newsletter/subscription/confirm_logged_email_template") == 1 && (boolean) $this->getRequest()->getParam('is_subscribed', false)) {
|
14 |
+
|
15 |
+
$status = Mage::getModel("newsletter/subscriber")->subscribe(Mage::getSingleton('customer/session')->getCustomer()->getEmail());
|
16 |
+
if ($status == Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE) {
|
17 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('Confirmation request has been sent.'));
|
18 |
+
} else {
|
19 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('Thank you for your subscription.'));
|
20 |
+
}
|
21 |
+
} else {
|
22 |
+
Mage::getSingleton('customer/session')->getCustomer()
|
23 |
+
->setStoreId(Mage::app()->getStore()->getId())
|
24 |
+
->setIsSubscribed((boolean) $this->getRequest()->getParam('is_subscribed', false))
|
25 |
+
->save();
|
26 |
+
if ((boolean) $this->getRequest()->getParam('is_subscribed', false)) {
|
27 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been saved.'));
|
28 |
+
} else {
|
29 |
+
Mage::getSingleton('customer/session')->addSuccess($this->__('The subscription has been removed.'));
|
30 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
+
} catch (Exception $e) {
|
33 |
+
Mage::getSingleton('customer/session')->addError($e->getMessage());
|
|
|
|
|
34 |
Mage::getSingleton('customer/session')->addError($this->__('An error occurred while saving your subscription.'));
|
35 |
}
|
36 |
$this->_redirect('customer/account/');
|
37 |
}
|
|
|
38 |
|
|
|
39 |
}
|
app/code/local/Conlabz/Useroptin/etc/config.xml
CHANGED
@@ -2,61 +2,61 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Conlabz_Useroptin>
|
5 |
-
<version>1.
|
6 |
</Conlabz_Useroptin>
|
7 |
</modules>
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
<modules>
|
61 |
<Conlabz_Useroptin>
|
62 |
<files>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Conlabz_Useroptin>
|
5 |
+
<version>1.1.0</version>
|
6 |
</Conlabz_Useroptin>
|
7 |
</modules>
|
8 |
+
<global>
|
9 |
+
<helpers>
|
10 |
+
<useroptin>
|
11 |
+
<class>Conlabz_Useroptin_Helper</class>
|
12 |
+
</useroptin>
|
13 |
+
</helpers>
|
14 |
+
<models>
|
15 |
+
<newsletter>
|
16 |
+
<rewrite>
|
17 |
+
<subscriber>Conlabz_Useroptin_Model_Newsletter_Subscriber</subscriber>
|
18 |
+
</rewrite>
|
19 |
+
</newsletter>
|
20 |
+
<useroptin>
|
21 |
+
<class>Conlabz_Useroptin_Model</class>
|
22 |
+
</useroptin>
|
23 |
+
</models>
|
24 |
+
</global>
|
25 |
+
<frontend>
|
26 |
+
<routers>
|
27 |
+
<useroptin>
|
28 |
+
<use>standard</use>
|
29 |
+
<args>
|
30 |
+
<module>Conlabz_Useroptin</module>
|
31 |
+
<frontName>Useroptin</frontName>
|
32 |
+
</args>
|
33 |
+
</useroptin>
|
34 |
+
<newsletter>
|
35 |
+
<use>standard</use>
|
36 |
+
<args>
|
37 |
+
<modules>
|
38 |
+
<Conlabz_Useroptin before="Mage_Newsletter">Conlabz_Useroptin</Conlabz_Useroptin>
|
39 |
+
</modules>
|
40 |
+
</args>
|
41 |
+
</newsletter>
|
42 |
+
<customer>
|
43 |
+
<args>
|
44 |
+
<modules>
|
45 |
+
<Conlabz_Useroptin before="Mage_Customer">Conlabz_Useroptin</Conlabz_Useroptin>
|
46 |
+
</modules>
|
47 |
+
</args>
|
48 |
+
</customer>
|
49 |
+
</routers>
|
50 |
+
<layout>
|
51 |
+
<updates>
|
52 |
+
<useroptin>
|
53 |
+
<file>useroptin.xml</file>
|
54 |
+
</useroptin>
|
55 |
+
</updates>
|
56 |
+
</layout>
|
57 |
+
</frontend>
|
58 |
+
<adminhtml>
|
59 |
+
<translate>
|
60 |
<modules>
|
61 |
<Conlabz_Useroptin>
|
62 |
<files>
|
app/etc/modules/Conlabz_Useroptin.xml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Conlabz_Useroptin>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>local</codePool>
|
7 |
-
</Conlabz_Useroptin>
|
8 |
-
</modules>
|
9 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,20 +1,24 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Conlabz_Useroptin</name>
|
4 |
-
<version>1.0
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Newsletter
|
10 |
-
<description>
|
11 |

|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<
|
|
|
|
|
|
|
|
|
18 |
<compatible/>
|
19 |
-
<dependencies><required><php><min>5.2.
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Conlabz_Useroptin</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://conlabz.de/agb">Conlabz GmbH</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>The Newsletter Double-Opt-In Extension adds an Opt-In email to newsletter subscriptions by logged-in users.</summary>
|
10 |
+
<description>Newsletter Double-Opt-In for Customers
|
11 |

|
12 |
+
The extension extends the standard Magento workflow of newsletter subscriptions by logged-in users with an opt-in email. The email is send to the customer after he has chosen a newsletter in his customer profile. The email provides a link to verify the subscription. 
|
13 |
+

|
14 |
+
Just enable user newsletter confirmation on 
|
15 |
+
System -> Configuration -> Newsletter -> Logged user need to confirm
|
16 |
+
Mit dieser Extension wird die Newsletter-Registrierung über das Kundenprofil "Meine Newsletter" um eine E-Mail ergänzt, in der der Kunde nochmals ausdrücklich den Bezug des Newsletters bestätigen muss. Erst damit entspricht die Newsletter-Anmeldung deutscher Rechtsprechung.</description>
|
17 |
+
<notes>Version 1.9.x compatibility </notes>
|
18 |
+
<authors><author><name>Conlabz GmbH</name><user>conlabz</user><email>info@conlabz.de</email></author></authors>
|
19 |
+
<date>2015-06-02</date>
|
20 |
+
<time>10:35:10</time>
|
21 |
+
<contents><target name="mageetc"><dir name="."><file name="Conlabz_Useroptin.xml" hash=""/></dir></target><target name="magelocal"><dir name="Conlabz"><dir name="Useroptin"><dir name="Model"><dir name="Newsletter"><file name="Subscriber.php" hash="02548ba51c4c4225f312f9743ca01366"/></dir></dir><dir name="controllers"><file name="AccountController.php" hash="eeb1529f20e4428efcedf95b175c5867"/><file name="ManageController.php" hash="3efe779c2c0e6d44a859c51426e89d1f"/></dir><dir name="etc"><file name="config.xml" hash="6bff7f8dc475ed9365de0073a17e69e4"/><file name="system.xml" hash="c1b2c86ab52c60983cc2418b351b4b97"/></dir></dir></dir></target></contents>
|
22 |
<compatible/>
|
23 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|