edroneCRM - Version 1.0.10

Version Notes

edrone magento module - initial public release

Download this release

Release Info

Developer Michał Blak
Extension edroneCRM
Version 1.0.10
Comparing to
See all releases


Code changes from version 1.0.9 to 1.0.10

app/code/local/Edrone/Base/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Edrone_Base>
5
- <version>1.0.9</version>
6
  </Edrone_Base>
7
  </modules>
8
  <global>
@@ -71,7 +71,7 @@
71
  <app_id>INSERT_APP_ID_HERE</app_id>
72
  <app_secret>INSERT_APP_SECRET_HERE</app_secret>
73
  <external_script_url>//d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js</external_script_url>
74
- <collector_url>https://api.edrone.me/trace.php</collector_url>
75
  </base>
76
  </edrone>
77
  </default>
2
  <config>
3
  <modules>
4
  <Edrone_Base>
5
+ <version>1.0.10</version>
6
  </Edrone_Base>
7
  </modules>
8
  <global>
71
  <app_id>INSERT_APP_ID_HERE</app_id>
72
  <app_secret>INSERT_APP_SECRET_HERE</app_secret>
73
  <external_script_url>//d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js</external_script_url>
74
+ <collector_url>https://api.edrone.me/trace</collector_url>
75
  </base>
76
  </edrone>
77
  </default>
app/design/frontend/base/default/template/edrone/cart_view.phtml CHANGED
@@ -11,27 +11,27 @@ $productData = $this->getProductData();
11
  (function (srcjs) {
12
  window._edrone = window._edrone || {};
13
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
14
- _edrone.version = '1.0.9';
15
  _edrone.platform = 'Magento';
16
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
17
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
18
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
19
  _edrone.email = '<?php echo $customerData['email'] ?>';
20
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
21
- _edrone.first_name = '<?php echo $customerData['first_name'] ?>';
22
- _edrone.last_name = '<?php echo $customerData['last_name'] ?>';
23
  _edrone.product_skus = '<?php echo $productData['sku'] ?>';
24
  _edrone.product_ids = '<?php echo $productData['id'] ?>';
25
- _edrone.product_titles = '<?php echo $productData['title'] ?>';
26
- _edrone.product_images = '<?php echo $productData['image'] ?>';
27
  _edrone.product_category_ids = '<?php echo $productData['product_category_ids'] ?>';
28
- _edrone.product_category_names = '<?php echo $productData['product_category_names'] ?>';
29
  _edrone.order_id = '';
30
  _edrone.order_payment_value = '';
31
  _edrone.currency = '';
32
  _edrone.action_type = 'add_to_cart';
33
  _edrone.country = '<?php echo $customerData['country'] ?>';
34
- _edrone.city = '<?php echo $customerData['city'] ?>';
35
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
36
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
37
 
11
  (function (srcjs) {
12
  window._edrone = window._edrone || {};
13
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
14
+ _edrone.version = '1.0.10';
15
  _edrone.platform = 'Magento';
16
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
17
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
18
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
19
  _edrone.email = '<?php echo $customerData['email'] ?>';
20
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
21
+ _edrone.first_name = '<?php echo urlencode($customerData['first_name']); ?>';
22
+ _edrone.last_name = '<?php echo urlencode($customerData['last_name']); ?>';
23
  _edrone.product_skus = '<?php echo $productData['sku'] ?>';
24
  _edrone.product_ids = '<?php echo $productData['id'] ?>';
25
+ _edrone.product_titles = '<?php echo urlencode($productData['title']); ?>';
26
+ _edrone.product_images = '<?php echo urlencode($productData['image']); ?>';
27
  _edrone.product_category_ids = '<?php echo $productData['product_category_ids'] ?>';
28
+ _edrone.product_category_names = '<?php echo urlencode($productData['product_category_names']); ?>';
29
  _edrone.order_id = '';
30
  _edrone.order_payment_value = '';
31
  _edrone.currency = '';
32
  _edrone.action_type = 'add_to_cart';
33
  _edrone.country = '<?php echo $customerData['country'] ?>';
34
+ _edrone.city = '<?php echo urlencode($customerData['city']); ?>';
35
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
36
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
37
 
app/design/frontend/base/default/template/edrone/default.phtml CHANGED
@@ -9,15 +9,15 @@ $customerData = $this->getCustomerData();
9
  (function (srcjs) {
10
  window._edrone = window._edrone || {};
11
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
12
- _edrone.version = '1.0.9';
13
  _edrone.platform = 'Magento';
14
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
15
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
16
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
17
  _edrone.email = '<?php echo $customerData['email'] ?>';
18
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
19
- _edrone.first_name = '<?php echo $customerData['first_name'] ?>';
20
- _edrone.last_name = '<?php echo $customerData['last_name'] ?>';
21
  _edrone.product_skus = '';
22
  _edrone.product_ids = '';
23
  _edrone.product_titles = '';
@@ -27,7 +27,7 @@ $customerData = $this->getCustomerData();
27
  _edrone.currency = '';
28
  _edrone.action_type = 'other';
29
  _edrone.country = '<?php echo $customerData['country'] ?>';
30
- _edrone.city = '<?php echo $customerData['city'] ?>';
31
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
32
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
33
 
9
  (function (srcjs) {
10
  window._edrone = window._edrone || {};
11
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
12
+ _edrone.version = '1.0.10';
13
  _edrone.platform = 'Magento';
14
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
15
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
16
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
17
  _edrone.email = '<?php echo $customerData['email'] ?>';
18
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
19
+ _edrone.first_name = '<?php echo urlencode($customerData['first_name']); ?>';
20
+ _edrone.last_name = '<?php echo urlencode($customerData['last_name']); ?>';
21
  _edrone.product_skus = '';
22
  _edrone.product_ids = '';
23
  _edrone.product_titles = '';
27
  _edrone.currency = '';
28
  _edrone.action_type = 'other';
29
  _edrone.country = '<?php echo $customerData['country'] ?>';
30
+ _edrone.city = '<?php echo urlencode($customerData['city']); ?>';
31
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
32
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
33
 
app/design/frontend/base/default/template/edrone/product_view.phtml CHANGED
@@ -10,27 +10,28 @@ $productData = $this->getProductData();
10
  (function (srcjs) {
11
  window._edrone = window._edrone || {};
12
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
13
- _edrone.version = '1.0.9';
14
  _edrone.platform = 'Magento';
15
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
16
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
17
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
18
  _edrone.email = '<?php echo $customerData['email'] ?>';
19
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
20
- _edrone.first_name = '<?php echo $customerData['first_name'] ?>';
21
- _edrone.last_name = '<?php echo $customerData['last_name'] ?>';
22
  _edrone.product_skus = '<?php echo $productData['sku'] ?>';
23
  _edrone.product_ids = '<?php echo $productData['id'] ?>';
24
- _edrone.product_titles = '<?php echo $productData['title'] ?>';
25
- _edrone.product_images = '<?php echo $productData['image'] ?>';
 
26
  _edrone.product_category_ids = '<?php echo $productData['product_category_ids'] ?>';
27
- _edrone.product_category_names = '<?php echo $productData['product_category_names'] ?>';
28
  _edrone.order_id = '';
29
  _edrone.order_payment_value = '';
30
  _edrone.currency = '';
31
  _edrone.action_type = 'product_view';
32
  _edrone.country = '<?php echo $customerData['country'] ?>';
33
- _edrone.city = '<?php echo $customerData['city'] ?>';
34
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
35
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
36
 
@@ -40,6 +41,25 @@ $productData = $this->getProductData();
40
  doc.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + srcjs;
41
  var s = document.getElementsByTagName('script')[0];
42
  s.parentNode.insertBefore(doc, s);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  })("<?php echo $helper->getExternalScriptUrl() ?>");
45
  </script>
10
  (function (srcjs) {
11
  window._edrone = window._edrone || {};
12
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
13
+ _edrone.version = '1.0.10';
14
  _edrone.platform = 'Magento';
15
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
16
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
17
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
18
  _edrone.email = '<?php echo $customerData['email'] ?>';
19
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
20
+ _edrone.first_name = '<?php echo urlencode($customerData['first_name']); ?>';
21
+ _edrone.last_name = '<?php echo urlencode($customerData['last_name']); ?>';
22
  _edrone.product_skus = '<?php echo $productData['sku'] ?>';
23
  _edrone.product_ids = '<?php echo $productData['id'] ?>';
24
+ _edrone.product_titles = '<?php echo urlencode($productData['title']); ?>';
25
+ _edrone.product_images = '<?php echo urlencode($productData['image']); ?>';
26
+ _edrone.product_urls = window.location.href;
27
  _edrone.product_category_ids = '<?php echo $productData['product_category_ids'] ?>';
28
+ _edrone.product_category_names = '<?php echo urlencode($productData['product_category_names']); ?>';
29
  _edrone.order_id = '';
30
  _edrone.order_payment_value = '';
31
  _edrone.currency = '';
32
  _edrone.action_type = 'product_view';
33
  _edrone.country = '<?php echo $customerData['country'] ?>';
34
+ _edrone.city = '<?php echo urlencode($customerData['city']); ?>';
35
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
36
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
37
 
41
  doc.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + srcjs;
42
  var s = document.getElementsByTagName('script')[0];
43
  s.parentNode.insertBefore(doc, s);
44
+
45
+ window.isBasketForm = function(find, txt) {
46
+ txt = txt.split("?")[0];
47
+ return txt.substr(txt.length - find.length) == find;
48
+ }
49
+
50
+ (function() {
51
+ var origOpen = XMLHttpRequest.prototype.open;
52
+ XMLHttpRequest.prototype.open = function() {
53
+ this.addEventListener('load', function() {
54
+ if (isBasketForm('ajaxcart/cart/add/', this.responseURL)) {
55
+ _edrone.action_type = "add_to_cart";
56
+ _edrone.init();
57
+ }
58
+ });
59
+ origOpen.apply(this, arguments);
60
+ };
61
+ })();
62
+
63
 
64
  })("<?php echo $helper->getExternalScriptUrl() ?>");
65
  </script>
app/design/frontend/base/default/template/edrone/success_view.phtml CHANGED
@@ -11,21 +11,21 @@ $orderData = $this->getOrderData();
11
  (function (srcjs) {
12
  window._edrone = window._edrone || {};
13
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
14
- _edrone.version = '1.0.9';
15
  _edrone.platform = 'Magento';
16
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
17
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
18
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
19
  _edrone.email = '<?php echo $customerData['email'] ?>';
20
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
21
- _edrone.first_name = '<?php echo $customerData['first_name'] ?>';
22
- _edrone.last_name = '<?php echo $customerData['last_name'] ?>';
23
  _edrone.product_skus = '<?php echo $orderData['sku'] ?>';
24
  _edrone.product_ids = '<?php echo $orderData['id'] ?>';
25
- _edrone.product_titles = '<?php echo $orderData['title'] ?>';
26
- _edrone.product_images = '<?php echo $orderData['image'] ?>';
27
  _edrone.product_category_ids = '<?php echo $orderData['product_category_ids'] ?>';
28
- _edrone.product_category_names = '<?php echo $orderData['product_category_names'] ?>';
29
  _edrone.order_id = '<?php echo $orderData['order_id'] ?>';
30
  _edrone.order_payment_value = '<?php echo $orderData['order_payment_value'] ?>';
31
  _edrone.base_payment_value = '<?php echo $orderData['base_payment_value'] ?>';
@@ -34,7 +34,7 @@ $orderData = $this->getOrderData();
34
  _edrone.coupon = '<?php echo $orderData['coupon'] ?>';
35
  _edrone.action_type = 'order';
36
  _edrone.country = '<?php echo $customerData['country'] ?>';
37
- _edrone.city = '<?php echo $customerData['city'] ?>';
38
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
39
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
40
 
11
  (function (srcjs) {
12
  window._edrone = window._edrone || {};
13
  _edrone.app_id = '<?php echo $helper->getAppId() ?>';
14
+ _edrone.version = '1.0.10';
15
  _edrone.platform = 'Magento';
16
  _edrone.platform_version = '<?php echo Mage::getVersion(); ?>';
17
  _edrone.trace_url = '<?php echo $helper->getCollectorUrl() ?>';
18
  _edrone.is_logged_in = '<?php echo $customerData['is_logged_in'] ?>';
19
  _edrone.email = '<?php echo $customerData['email'] ?>';
20
  _edrone.phone = '<?php echo $customerData['phone'] ?>';
21
+ _edrone.first_name = '<?php echo urlencode($customerData['first_name']); ?>';
22
+ _edrone.last_name = '<?php echo urlencode($customerData['last_name']); ?>';
23
  _edrone.product_skus = '<?php echo $orderData['sku'] ?>';
24
  _edrone.product_ids = '<?php echo $orderData['id'] ?>';
25
+ _edrone.product_titles = '<?php echo urlencode($orderData['title']); ?>';
26
+ _edrone.product_images = '<?php echo urlencode($orderData['image']); ?>';
27
  _edrone.product_category_ids = '<?php echo $orderData['product_category_ids'] ?>';
28
+ _edrone.product_category_names = '<?php echo urlencode($orderData['product_category_names']); ?>';
29
  _edrone.order_id = '<?php echo $orderData['order_id'] ?>';
30
  _edrone.order_payment_value = '<?php echo $orderData['order_payment_value'] ?>';
31
  _edrone.base_payment_value = '<?php echo $orderData['base_payment_value'] ?>';
34
  _edrone.coupon = '<?php echo $orderData['coupon'] ?>';
35
  _edrone.action_type = 'order';
36
  _edrone.country = '<?php echo $customerData['country'] ?>';
37
+ _edrone.city = '<?php echo urlencode($customerData['city']); ?>';
38
  _edrone.subscriber_status = '<?php echo $customerData['subscriber_status'] ?>';
39
  _edrone.utc_time = '<?php echo $helper2->utcNow() ?>';
40
 
package.xml CHANGED
@@ -1,19 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>edroneCRM</name>
4
- <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>edrone - first CRM for e-commerce Maintain clients &amp; increase customer retention with dynamic e-CRM.</summary>
10
- <description>edrone is collecting and analyzing Magento visitors and customers data. The plugin allows processing personal data in the real-time in order to communicate with them through dynamic and personalized e-mail.&#xD;
11
- </description>
12
  <notes>edrone magento module - initial public release</notes>
13
- <authors><author><name>Micha&#x142; Blak</name><user>MAG002993376</user><email>michalblak@gmail.com</email></author></authors>
14
- <date>2016-07-11</date>
15
- <time>08:57:52</time>
16
- <contents><target name="magelocal"><dir name="Edrone"><dir name="Base"><dir name="Block"><file name="Base.php" hash="d0e605725b25d2bf1bc2d27af954ab69"/><file name="Cart.php" hash="7f80fb34c728bea3df6639a7666682b0"/><file name="Order.php" hash="fcd4dc1332c94a4a16a41ff87175fc10"/><file name="Product.php" hash="74a35efb464c16b11ec7e89767829420"/></dir><dir name="Helper"><file name="Config.php" hash="194670e7ef6eb1dc89b8a61a38499264"/><file name="Data.php" hash="a9040014b1b54a1d3cc7ebf401f489c0"/></dir><dir name="Model"><file name="Observer.php" hash="f35c3bf591865d6db22e2477580df76c"/></dir><dir name="controllers"><file name="NewsletterController.php" hash="fa9e82363c785ce94e005a7aad141162"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e715e76c00295dc4e555411455fedfb"/><file name="config.xml" hash="8d0142d615717f36911551bd2d34a1de"/><file name="system.xml" hash="51dc19fd276baa4e2b3fd8e290e67d4b"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="edrone"><file name="cart_view.phtml" hash="5dde790d0b51c39659e8968f7910d94b"/><file name="default.phtml" hash="574b395d633df327b6fe512a87aefc4f"/><file name="product_view.phtml" hash="a29548e55c5e0d423a6676098055ab51"/><file name="success_view.phtml" hash="32b4738c768b47993293d948fe23b1be"/></dir></dir><dir name="layout"><file name="edrone.xml" hash="48e37d1c01507337f8dc33eb9e03af34"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Edrone_Base.xml" hash="29d3699c3a83fa4fea848a6cb7800872"/></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="Edrone.csv" hash="b8aa59d39815f4d92738129cc9fbdf34"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>edroneCRM</name>
4
+ <version>1.0.10</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>edrone - first CRM for e-commerce Maintain clients &amp; increase customer retention with dynamic e-CRM.</summary>
10
+ <description>edrone is collecting and analyzing Magento visitors and customers data. The plugin allows processing personal data in the real-time in order to communicate with them through dynamic and personalized e-mail.</description>
 
11
  <notes>edrone magento module - initial public release</notes>
12
+ <authors><author><name>Micha&#x142; Blak</name><user>MAG002993376</user><email>admin@edrone.me</email></author></authors>
13
+ <date>2016-08-23</date>
14
+ <time>12:54:46</time>
15
+ <contents><target name="magelocal"><dir name="Edrone"><dir name="Base"><dir name="Block"><file name="Base.php" hash="d0e605725b25d2bf1bc2d27af954ab69"/><file name="Cart.php" hash="7f80fb34c728bea3df6639a7666682b0"/><file name="Order.php" hash="fcd4dc1332c94a4a16a41ff87175fc10"/><file name="Product.php" hash="74a35efb464c16b11ec7e89767829420"/></dir><dir name="Helper"><file name="Config.php" hash="194670e7ef6eb1dc89b8a61a38499264"/><file name="Data.php" hash="a9040014b1b54a1d3cc7ebf401f489c0"/></dir><dir name="Model"><file name="Observer.php" hash="f35c3bf591865d6db22e2477580df76c"/></dir><dir name="controllers"><file name="NewsletterController.php" hash="fa9e82363c785ce94e005a7aad141162"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e715e76c00295dc4e555411455fedfb"/><file name="config.xml" hash="1323c093110806ef1d4eb0092abc922b"/><file name="system.xml" hash="51dc19fd276baa4e2b3fd8e290e67d4b"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="edrone"><file name="cart_view.phtml" hash="79009b49eddf6262b6156ac030426bbd"/><file name="default.phtml" hash="11ed4fc874a7d9ac1000cab0455e4fd6"/><file name="product_view.phtml" hash="a4b95d5568c82a5be798bd8e06d46006"/><file name="success_view.phtml" hash="2601fcca8d198a6c15280f1f11d92e57"/></dir></dir><dir name="layout"><file name="edrone.xml" hash="48e37d1c01507337f8dc33eb9e03af34"/></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Edrone_Base.xml" hash="29d3699c3a83fa4fea848a6cb7800872"/></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="Edrone.csv" hash="b8aa59d39815f4d92738129cc9fbdf34"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>