Version Notes
# 1.3.0
Added support for third-party plugins adding information to the order total.
# 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.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.3.0
app/design/frontend/base/default/template/engine/ecommerce_pixel.phtml
CHANGED
@@ -19,13 +19,13 @@ if ($this->isEcommerce()) {
|
|
19 |
$shipping = $_order->getShippingInclTax () * 100;
|
20 |
}
|
21 |
|
22 |
-
//$grandTotal = $_order->getGrandTotal() * 100;
|
23 |
$grandTotal = 0;
|
24 |
|
25 |
echo '<script type="text/javascript">' . PHP_EOL;
|
26 |
echo 'function ENgine_tracker_initialized()' . PHP_EOL;
|
27 |
echo '{' . PHP_EOL;
|
28 |
echo ' ENgine_tracker._setLeadData("' . $clientID . '", "sale", "' . $orderID . '");' . PHP_EOL;
|
|
|
29 |
if ($shipping > 0 && $addShipping) {
|
30 |
$name = $_order->getShippingDescription();
|
31 |
$category = 'Shipping costs';
|
@@ -46,6 +46,25 @@ if ($this->isEcommerce()) {
|
|
46 |
$grandTotal += $price * $nr;
|
47 |
echo ' ENgine_tracker._addRow("' . $name . '", "' . $category . '", "' . $price . '", "' . $nr . '");' . PHP_EOL;
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
echo ' ENgine_tracker._process();' . PHP_EOL;
|
50 |
echo '}' . PHP_EOL;
|
51 |
echo '</script>' . PHP_EOL;
|
19 |
$shipping = $_order->getShippingInclTax () * 100;
|
20 |
}
|
21 |
|
|
|
22 |
$grandTotal = 0;
|
23 |
|
24 |
echo '<script type="text/javascript">' . PHP_EOL;
|
25 |
echo 'function ENgine_tracker_initialized()' . PHP_EOL;
|
26 |
echo '{' . PHP_EOL;
|
27 |
echo ' ENgine_tracker._setLeadData("' . $clientID . '", "sale", "' . $orderID . '");' . PHP_EOL;
|
28 |
+
|
29 |
if ($shipping > 0 && $addShipping) {
|
30 |
$name = $_order->getShippingDescription();
|
31 |
$category = 'Shipping costs';
|
46 |
$grandTotal += $price * $nr;
|
47 |
echo ' ENgine_tracker._addRow("' . $name . '", "' . $category . '", "' . $price . '", "' . $nr . '");' . PHP_EOL;
|
48 |
}
|
49 |
+
|
50 |
+
// Check for other items in the total, which we haven't processed yet
|
51 |
+
// Possibly some additions by plugins
|
52 |
+
$ignoreTotalItems = array(
|
53 |
+
'subtotal',
|
54 |
+
'tax',
|
55 |
+
'grand_total',
|
56 |
+
'shipping'
|
57 |
+
);
|
58 |
+
$quote = Mage::getModel('sales/quote')->load($_order->getQuoteId());
|
59 |
+
foreach ($quote->getTotals() as $_code => $_total){
|
60 |
+
if (array_search($_code, $ignoreTotalItems) === false) {
|
61 |
+
$nr = 1;
|
62 |
+
$price = ($_total->getValue() * 100);
|
63 |
+
$grandTotal += $price * $nr;
|
64 |
+
echo ' ENgine_tracker._addRow("' . addslashes($_total->getTitle()) . '", "' . $_code . '", "' . $price . '", "' . $nr . '");' . PHP_EOL;
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
echo ' ENgine_tracker._process();' . PHP_EOL;
|
69 |
echo '}' . PHP_EOL;
|
70 |
echo '</script>' . PHP_EOL;
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Engine</name>
|
4 |
-
<version>1.
|
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
|
14 |
- insert marketing pixel after an order has been placed
|
15 |
- automatically send all transational mail through E-ngine</description>
|
16 |
-
<notes># 1.
|
|
|
|
|
|
|
17 |
Added the possibility to force a welcome mail to existing subscribers.
|
18 |

|
19 |
# 1.1.0
|
@@ -28,9 +31,9 @@ First release of the E-ngine Magento plugin with support for:
|
|
28 |
- Newsletter subscriber sync is now optional
|
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>
|
32 |
-
<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="
|
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>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Engine</name>
|
4 |
+
<version>1.3.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
|
14 |
- insert marketing pixel after an order has been placed
|
15 |
- automatically send all transational mail through E-ngine</description>
|
16 |
+
<notes># 1.3.0
|
17 |
+
Added support for third-party plugins adding information to the order total.
|
18 |
+

|
19 |
+
# 1.2.0
|
20 |
Added the possibility to force a welcome mail to existing subscribers.
|
21 |

|
22 |
# 1.1.0
|
31 |
- Newsletter subscriber sync is now optional
|
32 |
</notes>
|
33 |
<authors><author><name>M. van de Vis</name><user>enginenl</user><email>m.vandevis@e-ngine.nl</email></author></authors>
|
34 |
+
<date>2015-10-06</date>
|
35 |
+
<time>12:43:37</time>
|
36 |
+
<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="a145347ad4739a6baa2a99012a9875bd"/><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>
|
37 |
<compatible/>
|
38 |
<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>
|
39 |
</package>
|