Engine - Version 1.2.0

Version Notes

# 1.2.0
Added the possibility to force a welcome mail to existing subscribers.

# 1.1.0
First release of the E-ngine Magento plugin with support for:

- Signup using using box
- Signup using while ordering
- Signup through account
- Setup E-ngine marketing pixel
- Send transactional mail through E-ngine
- Added language packs
- Newsletter subscriber sync is now optional

Download this release

Release Info

Developer M. van de Vis
Extension Engine
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

app/code/community/Engine/Engine/Block/Extrafields.php CHANGED
@@ -67,7 +67,7 @@ class Engine_Engine_Block_Extrafields extends Mage_Adminhtml_Block_System_Config
67
 
68
  $rendered = '<select name="'.$inputName.'">';
69
  foreach ($this->_magentoFields as $att => $name) {
70
- $rendered .= '<option value="'.$att.'">'.$name.'</option>';
71
  }
72
  $rendered .= '</select>';
73
 
67
 
68
  $rendered = '<select name="'.$inputName.'">';
69
  foreach ($this->_magentoFields as $att => $name) {
70
+ $rendered .= '<option value="' . $att . '">' . $name . '</option>';
71
  }
72
  $rendered .= '</select>';
73
 
app/code/community/Engine/Engine/Helper/Connect.php CHANGED
@@ -103,6 +103,12 @@ class Engine_Engine_Helper_Connect extends Mage_Core_Helper_Abstract
103
  $client = $this->connectToENgine();
104
 
105
  if ($client !== false) {
 
 
 
 
 
 
106
  Mage::log("E-ngine: Subscribing new email address: $email");
107
  try {
108
  $data['email'] = $email;
103
  $client = $this->connectToENgine();
104
 
105
  if ($client !== false) {
106
+ // Should we force a welcome mail?
107
+ $forceWelcome = Mage::getStoreConfig('engine/actions/engine_forcewelcome');
108
+ if ($forceWelcome) {
109
+ $data['_force_welcome_mail'] = '1';
110
+ }
111
+
112
  Mage::log("E-ngine: Subscribing new email address: $email");
113
  try {
114
  $data['email'] = $email;
app/code/community/Engine/Engine/Model/Subscriber.php CHANGED
@@ -40,7 +40,7 @@ class Engine_Engine_Model_Subscriber extends Mage_Newsletter_Model_Subscriber
40
  $data['campaign'] = 'subscribe_form';
41
  $data['source'] = 'website';
42
 
43
- $helper->subscribeENgine($email, array(), $actionID);
44
  }
45
 
46
  return parent::subscribe($email);
40
  $data['campaign'] = 'subscribe_form';
41
  $data['source'] = 'website';
42
 
43
+ $helper->subscribeENgine($email, $data, $actionID);
44
  }
45
 
46
  return parent::subscribe($email);
app/code/community/Engine/Engine/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
 
25
  <modules>
26
  <Engine_Engine>
27
- <version>1.1.0</version>
28
  </Engine_Engine>
29
  </modules>
30
 
@@ -212,6 +212,9 @@
212
  <engine_include_shipping>1</engine_include_shipping>
213
  <engine_include_tax>1</engine_include_tax>
214
  </ecommerce>
 
 
 
215
  </engine>
216
  </default>
217
 
24
 
25
  <modules>
26
  <Engine_Engine>
27
+ <version>1.2.0</version>
28
  </Engine_Engine>
29
  </modules>
30
 
212
  <engine_include_shipping>1</engine_include_shipping>
213
  <engine_include_tax>1</engine_include_tax>
214
  </ecommerce>
215
+ <actions>
216
+ <engine_forcewelcome>0</engine_forcewelcome>
217
+ </actions>
218
  </engine>
219
  </default>
220
 
app/code/community/Engine/Engine/etc/system.xml CHANGED
@@ -100,20 +100,20 @@
100
  <show_in_store>1</show_in_store>
101
  <comment>Should Magento synchronize the subscribers to E-ngine? This will automatically subscribe/unsubscribe users in E-ngine if a user subscribers to your store its newsletter through a signup box or their account.</comment>
102
  </engine_syncsubscribers>
103
- <engine_extrafields translate="label,comment">
104
- <label>Extra fields</label>
105
- <frontend_model>engine_engine_block_extrafields</frontend_model>
106
- <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
107
- <sort_order>8</sort_order>
108
  <show_in_default>1</show_in_default>
109
  <show_in_website>1</show_in_website>
110
  <show_in_store>1</show_in_store>
111
- <comment>These extra fields will be added to the subscriber data while syncing to E-ngine.</comment>
112
- </engine_extrafields>
113
  <engine_actionid_signup translate="label,comment">
114
  <label>Action ID - Signup form</label>
115
  <frontend_type>text</frontend_type>
116
- <sort_order>0</sort_order>
117
  <show_in_default>1</show_in_default>
118
  <show_in_website>1</show_in_website>
119
  <show_in_store>1</show_in_store>
@@ -125,7 +125,7 @@
125
  <engine_actionid_order translate="label,comment">
126
  <label>Action ID - Order</label>
127
  <frontend_type>text</frontend_type>
128
- <sort_order>1</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
131
  <show_in_store>1</show_in_store>
@@ -137,7 +137,7 @@
137
  <engine_actionid_account translate="label,comment">
138
  <label>Action ID - Account</label>
139
  <frontend_type>text</frontend_type>
140
- <sort_order>2</sort_order>
141
  <show_in_default>1</show_in_default>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
@@ -146,6 +146,16 @@
146
  <engine_syncsubscribers>1</engine_syncsubscribers>
147
  </depends>
148
  </engine_actionid_account>
 
 
 
 
 
 
 
 
 
 
149
  </fields>
150
  </actions>
151
  <ecommerce translate="label" module="engine">
100
  <show_in_store>1</show_in_store>
101
  <comment>Should Magento synchronize the subscribers to E-ngine? This will automatically subscribe/unsubscribe users in E-ngine if a user subscribers to your store its newsletter through a signup box or their account.</comment>
102
  </engine_syncsubscribers>
103
+ <engine_forcewelcome translate="label,comment">
104
+ <label>Force sending welcome email</label>
105
+ <frontend_type>select</frontend_type>
106
+ <source_model>adminhtml/system_config_source_yesno</source_model>
107
+ <sort_order>1</sort_order>
108
  <show_in_default>1</show_in_default>
109
  <show_in_website>1</show_in_website>
110
  <show_in_store>1</show_in_store>
111
+ <comment>Should Magento always send a welcome email while signing up? Default only new subscribers will receive a welcome mail.</comment>
112
+ </engine_forcewelcome>
113
  <engine_actionid_signup translate="label,comment">
114
  <label>Action ID - Signup form</label>
115
  <frontend_type>text</frontend_type>
116
+ <sort_order>2</sort_order>
117
  <show_in_default>1</show_in_default>
118
  <show_in_website>1</show_in_website>
119
  <show_in_store>1</show_in_store>
125
  <engine_actionid_order translate="label,comment">
126
  <label>Action ID - Order</label>
127
  <frontend_type>text</frontend_type>
128
+ <sort_order>3</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
131
  <show_in_store>1</show_in_store>
137
  <engine_actionid_account translate="label,comment">
138
  <label>Action ID - Account</label>
139
  <frontend_type>text</frontend_type>
140
+ <sort_order>4</sort_order>
141
  <show_in_default>1</show_in_default>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
146
  <engine_syncsubscribers>1</engine_syncsubscribers>
147
  </depends>
148
  </engine_actionid_account>
149
+ <engine_extrafields translate="label,comment">
150
+ <label>Extra fields</label>
151
+ <frontend_model>engine_engine_block_extrafields</frontend_model>
152
+ <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
153
+ <sort_order>5</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>1</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ <comment>These extra fields will be added to the subscriber data while syncing to E-ngine.</comment>
158
+ </engine_extrafields>
159
  </fields>
160
  </actions>
161
  <ecommerce translate="label" module="engine">
app/locale/nl_NL/Engine_Engine.csv CHANGED
@@ -49,4 +49,6 @@
49
  "This test address will receive the transactional mails sent by E-ngine","Dit e-mailadres zal een kopie van alle transactionele e-mail ontvangen via E-ngine."
50
  "E-ngine Config Section","E-ngine Configuratie Sectie"
51
  "Synchronize subscribers","Abonnees synchroniseren"
52
- "Should Magento synchronize the subscribers to E-ngine? This will automatically subscribe/unsubscribe users in E-ngine if a user subscribers to your store its newsletter through a signup box or their account.","Dient Magento de abonnees naar E-ngine te synchroniseren? Dit zal abonnees automatisch aan/afmelden in E-ngine wanneer ze zich aanmelden via een box of via hun account."
 
 
49
  "This test address will receive the transactional mails sent by E-ngine","Dit e-mailadres zal een kopie van alle transactionele e-mail ontvangen via E-ngine."
50
  "E-ngine Config Section","E-ngine Configuratie Sectie"
51
  "Synchronize subscribers","Abonnees synchroniseren"
52
+ "Should Magento synchronize the subscribers to E-ngine? This will automatically subscribe/unsubscribe users in E-ngine if a user subscribers to your store its newsletter through a signup box or their account.","Dient Magento de abonnees naar E-ngine te synchroniseren? Dit zal abonnees automatisch aan/afmelden in E-ngine wanneer ze zich aanmelden via een box of via hun account."
53
+ "Force sending welcome email","Verstuur altijd een welkomstmail"
54
+ "Should Magento always send a welcome email while signing up? Default only new subscribers will receive a welcome mail.","Dienen abonnees altijd een welkomstmail te ontvangen, ook als ze al lid zijn van de nieuwsbrief? Standaard ontvangen alleen nieuwe adressen de welkomstmail."
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Engine</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -13,7 +13,10 @@
13
  - adds checkbox to order process to have clients subscribe to the newsletter&#xD;
14
  - insert marketing pixel after an order has been placed&#xD;
15
  - automatically send all transational mail through E-ngine</description>
16
- <notes># 1.1.0&#xD;
 
 
 
17
  First release of the E-ngine Magento plugin with support for:&#xD;
18
  &#xD;
19
  - Signup using using box&#xD;
@@ -25,9 +28,9 @@ First release of the E-ngine Magento plugin with support for:&#xD;
25
  - Newsletter subscriber sync is now optional&#xD;
26
  </notes>
27
  <authors><author><name>M. van de Vis</name><user>enginenl</user><email>m.vandevis@e-ngine.nl</email></author></authors>
28
- <date>2014-10-02</date>
29
- <time>07:30:13</time>
30
- <contents><target name="magecommunity"><dir name="Engine"><dir name="Engine"><dir name="Block"><file name="Ecommerce.php" hash="88ea3d0710e17a9045f17c61f84ce9c4"/><file name="Extrafields.php" hash="befa463ac7060d97b99c54baaee42c61"/><file name="Newsletter.php" hash="26d76a49cd5d0bf3838d46ebedd94f92"/></dir><dir name="Helper"><file name="Connect.php" hash="aa0e398907c56af8d0976427f567c95a"/><file name="Data.php" hash="075e5242e0b5ff0d678fccbf18548742"/></dir><dir name="Model"><dir name="Checkout"><dir name="Type"><file name="Onepage.php" hash="19c9e3f325e6c91b4db5ba56764304c2"/></dir></dir><dir name="Core"><dir name="Email"><file name="Template.php" hash="9873c4f6a9f3c1e915f41b0bfb6344ea"/></dir></dir><file name="Cron.php" hash="d554f144f816b05b8b3d4190dc5237f7"/><file name="Observer.php" hash="a6026edb5c9008b90ae4c51001b6fe9f"/><file name="Subscriber.php" hash="6eaee6af43c8f29736cf7cbe14178cc4"/></dir><dir name="controllers"><dir name="Admin"><dir name="Newsletter"><file name="SubscriberController.php" hash="a6a536209e38612815f979d456166f02"/></dir><dir name="System"><dir name="Email"><file name="TemplateController.php" hash="2ddc7f92c2d934ea25bdd0ab78e617cb"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="62d552b7eb0a876f74c7969101bdfc7e"/><file name="system.xml" hash="96ad5731b376f2db2d85da633d1d0a02"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="engine"><dir><dir name="field"><file name="extra_field.phtml" hash="a29bce9f955b3512e3b368b29e0f057f"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="engine.xml" hash="43416b891659bc33fac78231f2e622af"/></dir><dir name="template"><dir name="engine"><file name="default-checkout-onepage-billing.phtml" hash="bef746845a6b7f2f2e5c028954556265"/><file name="ecommerce_pixel.phtml" hash="df46aa0cf685c19ccca3113d19c5e11f"/><file name="newsletter.phtml" hash="f3e7164fb569bc0690532ce161ca84c2"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Engine_Engine.xml" hash="850b7e1f8ce6af9e8dd39584e819da0e"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Engine_Engine.csv" hash="0a7c622392cd7b5af66bbec45d32ebb7"/></dir><dir name="nl_NL"><file name="Engine_Engine.csv" hash="1aecf8be32f55b4745463a45e1033497"/></dir></target></contents>
31
  <compatible/>
32
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
33
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Engine</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
13
  - adds checkbox to order process to have clients subscribe to the newsletter&#xD;
14
  - insert marketing pixel after an order has been placed&#xD;
15
  - automatically send all transational mail through E-ngine</description>
16
+ <notes># 1.2.0&#xD;
17
+ Added the possibility to force a welcome mail to existing subscribers.&#xD;
18
+ &#xD;
19
+ # 1.1.0&#xD;
20
  First release of the E-ngine Magento plugin with support for:&#xD;
21
  &#xD;
22
  - Signup using using box&#xD;
28
  - Newsletter subscriber sync is now optional&#xD;
29
  </notes>
30
  <authors><author><name>M. van de Vis</name><user>enginenl</user><email>m.vandevis@e-ngine.nl</email></author></authors>
31
+ <date>2014-11-14</date>
32
+ <time>10:19:38</time>
33
+ <contents><target name="magecommunity"><dir name="Engine"><dir name="Engine"><dir name="Block"><file name="Ecommerce.php" hash="88ea3d0710e17a9045f17c61f84ce9c4"/><file name="Extrafields.php" hash="c01c8b9748bdfc6aa7896b2e54ac378e"/><file name="Newsletter.php" hash="26d76a49cd5d0bf3838d46ebedd94f92"/></dir><dir name="Helper"><file name="Connect.php" hash="d12b9e970de63e577aa019f33d95d75d"/><file name="Data.php" hash="075e5242e0b5ff0d678fccbf18548742"/></dir><dir name="Model"><dir name="Checkout"><dir name="Type"><file name="Onepage.php" hash="19c9e3f325e6c91b4db5ba56764304c2"/></dir></dir><dir name="Core"><dir name="Email"><file name="Template.php" hash="9873c4f6a9f3c1e915f41b0bfb6344ea"/></dir></dir><file name="Cron.php" hash="d554f144f816b05b8b3d4190dc5237f7"/><file name="Observer.php" hash="a6026edb5c9008b90ae4c51001b6fe9f"/><file name="Subscriber.php" hash="1416cb75f98c5dcbd51cf32067f6ce5a"/></dir><dir name="controllers"><dir name="Admin"><dir name="Newsletter"><file name="SubscriberController.php" hash="a6a536209e38612815f979d456166f02"/></dir><dir name="System"><dir name="Email"><file name="TemplateController.php" hash="2ddc7f92c2d934ea25bdd0ab78e617cb"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="6dd04f2515e367c7be1297b1e5444b1b"/><file name="system.xml" hash="690ad8691503f0c0ca403f7be4f79270"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="engine"><dir><dir name="field"><file name="extra_field.phtml" hash="a29bce9f955b3512e3b368b29e0f057f"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="engine.xml" hash="43416b891659bc33fac78231f2e622af"/></dir><dir name="template"><dir name="engine"><file name="default-checkout-onepage-billing.phtml" hash="bef746845a6b7f2f2e5c028954556265"/><file name="ecommerce_pixel.phtml" hash="df46aa0cf685c19ccca3113d19c5e11f"/><file name="newsletter.phtml" hash="f3e7164fb569bc0690532ce161ca84c2"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Engine_Engine.xml" hash="850b7e1f8ce6af9e8dd39584e819da0e"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Engine_Engine.csv" hash="0a7c622392cd7b5af66bbec45d32ebb7"/></dir><dir name="nl_NL"><file name="Engine_Engine.csv" hash="d79537a741d891e2b97a15d8d02d8d04"/></dir></target></contents>
34
  <compatible/>
35
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name></name><channel>connect.magentocommerce.com/core</channel><min></min><max></max></package></required></dependencies>
36
  </package>