minewhat - Version 1.0.1

Version Notes

MineWhat magento plugin

Download this release

Release Info

Developer MineWhat Inc.
Extension minewhat
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0 to 1.0.1

app/design/frontend/base/default/layout/minewhat_insights.xml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category MineWhat
5
+ * @package MineWhat_Insights
6
+ * @copyright Copyright (c) MineWhat
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <layout version="0.1.0">
11
+
12
+ <catalog_product_view>
13
+ <reference name="before_head_end">
14
+ <block type="minewhat_insights/event_catalog_product_view" name="minewhat_insights_event_catalog_product_view" />
15
+ </reference>
16
+ </catalog_product_view>
17
+
18
+ <checkout_cart_index>
19
+ <reference name="before_head_end">
20
+ <block type="minewhat_insights/event_checkout_cart_index" name="minewhat_insights_event_checkout_cart_index" />
21
+ </reference>
22
+ </checkout_cart_index>
23
+
24
+ <checkout_onepage_success>
25
+ <reference name="before_head_end">
26
+ <block type="minewhat_insights/event_checkout_onepage_success" name="minewhat_insights_event_checkout_onepage_success" />
27
+ </reference>
28
+ </checkout_onepage_success>
29
+
30
+ <default>
31
+ <reference name="before_body_end">
32
+ <block type="minewhat_insights/base_script" name="minewhat_insights_base_script" />
33
+ </reference>
34
+ </default>
35
+
36
+ </layout>
app/design/frontend/base/default/template/minewhat/insights/base/script.phtml ADDED
@@ -0,0 +1 @@
 
1
+ <?php echo Mage::helper('minewhat_insights')->getBaseScript() ?>
app/design/frontend/base/default/template/minewhat/insights/event/catalog/product/view.phtml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php $_product = $this->getCurrentProduct() ?>
10
+ <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
+ _mwapi.push(['trackEvent', 'product', '<?php echo $_product->getId() ?>']);
13
+ </script>
app/design/frontend/base/default/template/minewhat/insights/event/catalog/product/view.phtml~ ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php $_product = $this->getCurrentProduct() ?>
10
+ <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
+ _mwapi.push(['trackEvent', 'product', '<?php echo $_product->getId() ?>']);
13
+ </script>
app/design/frontend/base/default/template/minewhat/insights/event/checkout/cart/index.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php $_product = $this->getProductToShoppingCart() ?>
10
+ <?php if ($_product && $_product->getId()): ?>
11
+ <script type="text/javascript">
12
+ var _mwapi = _mwapi || [];
13
+ _mwapi.push(['trackEvent', 'cart', '<?php echo $_product->getId() ?>']);
14
+ </script>
15
+ <?php endif; ?>
app/design/frontend/base/default/template/minewhat/insights/event/checkout/cart/index.phtml~ ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php $_product = $this->getProductToShoppingCart() ?>
10
+ <?php if ($_product && $_product->getId()): ?>
11
+ <script type="text/javascript">
12
+ var _mwapi = _mwapi || [];
13
+ _mwapi.push(['trackEvent', 'cart', '<?php echo $_product->getId() ?>']);
14
+ </script>
15
+ <?php endif; ?>
app/design/frontend/base/default/template/minewhat/insights/event/checkout/onepage/success.phtml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php if (($orderInfo = $this->getOrderInfo())): ?>
10
+ <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
+ <?php foreach ($orderInfo->getItems() as $product): ?>
13
+ _mwapi.push(['trackEvent', 'buy', '<?php echo $product->getId() ?>', '<?php echo intval($product->getQty()) ?>']);
14
+ <?php endforeach; ?>
15
+ </script>
16
+ <?php endif; ?>
app/design/frontend/base/default/template/minewhat/insights/event/checkout/onepage/success.phtml~ ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category MineWhat
4
+ * @package MineWhat_Insights
5
+ * @copyright Copyright (c) MineWhat
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ ?>
9
+ <?php if (($orderInfo = $this->getOrderInfo())): ?>
10
+ <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
+ <?php foreach ($orderInfo->getItems() as $product): ?>
13
+ _mwapi.push(['trackEvent', 'buy', '<?php echo $product->getId() ?>', '<?php echo intval($product->getQty()) ?>']);
14
+ <?php endforeach; ?>
15
+ </script>
16
+ <?php endif; ?>
app/design/frontend/default/default/layout/minewhat_insights.xml CHANGED
@@ -10,19 +10,19 @@
10
  <layout version="0.1.0">
11
 
12
  <catalog_product_view>
13
- <reference name="before_body_end">
14
  <block type="minewhat_insights/event_catalog_product_view" name="minewhat_insights_event_catalog_product_view" />
15
  </reference>
16
  </catalog_product_view>
17
 
18
  <checkout_cart_index>
19
- <reference name="before_body_end">
20
  <block type="minewhat_insights/event_checkout_cart_index" name="minewhat_insights_event_checkout_cart_index" />
21
  </reference>
22
  </checkout_cart_index>
23
 
24
  <checkout_onepage_success>
25
- <reference name="before_body_end">
26
  <block type="minewhat_insights/event_checkout_onepage_success" name="minewhat_insights_event_checkout_onepage_success" />
27
  </reference>
28
  </checkout_onepage_success>
10
  <layout version="0.1.0">
11
 
12
  <catalog_product_view>
13
+ <reference name="before_head_end">
14
  <block type="minewhat_insights/event_catalog_product_view" name="minewhat_insights_event_catalog_product_view" />
15
  </reference>
16
  </catalog_product_view>
17
 
18
  <checkout_cart_index>
19
+ <reference name="before_head_end">
20
  <block type="minewhat_insights/event_checkout_cart_index" name="minewhat_insights_event_checkout_cart_index" />
21
  </reference>
22
  </checkout_cart_index>
23
 
24
  <checkout_onepage_success>
25
+ <reference name="before_head_end">
26
  <block type="minewhat_insights/event_checkout_onepage_success" name="minewhat_insights_event_checkout_onepage_success" />
27
  </reference>
28
  </checkout_onepage_success>
app/design/frontend/default/default/template/minewhat/insights/event/catalog/product/view.phtml CHANGED
@@ -8,5 +8,6 @@
8
  ?>
9
  <?php $_product = $this->getCurrentProduct() ?>
10
  <script type="text/javascript">
 
11
  _mwapi.push(['trackEvent', 'product', '<?php echo $_product->getId() ?>']);
12
  </script>
8
  ?>
9
  <?php $_product = $this->getCurrentProduct() ?>
10
  <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
  _mwapi.push(['trackEvent', 'product', '<?php echo $_product->getId() ?>']);
13
  </script>
app/design/frontend/default/default/template/minewhat/insights/event/checkout/cart/index.phtml CHANGED
@@ -9,6 +9,7 @@
9
  <?php $_product = $this->getProductToShoppingCart() ?>
10
  <?php if ($_product && $_product->getId()): ?>
11
  <script type="text/javascript">
 
12
  _mwapi.push(['trackEvent', 'cart', '<?php echo $_product->getId() ?>']);
13
  </script>
14
  <?php endif; ?>
9
  <?php $_product = $this->getProductToShoppingCart() ?>
10
  <?php if ($_product && $_product->getId()): ?>
11
  <script type="text/javascript">
12
+ var _mwapi = _mwapi || [];
13
  _mwapi.push(['trackEvent', 'cart', '<?php echo $_product->getId() ?>']);
14
  </script>
15
  <?php endif; ?>
app/design/frontend/default/default/template/minewhat/insights/event/checkout/onepage/success.phtml CHANGED
@@ -8,6 +8,7 @@
8
  ?>
9
  <?php if (($orderInfo = $this->getOrderInfo())): ?>
10
  <script type="text/javascript">
 
11
  <?php foreach ($orderInfo->getItems() as $product): ?>
12
  _mwapi.push(['trackEvent', 'buy', '<?php echo $product->getId() ?>', '<?php echo intval($product->getQty()) ?>']);
13
  <?php endforeach; ?>
8
  ?>
9
  <?php if (($orderInfo = $this->getOrderInfo())): ?>
10
  <script type="text/javascript">
11
+ var _mwapi = _mwapi || [];
12
  <?php foreach ($orderInfo->getItems() as $product): ?>
13
  _mwapi.push(['trackEvent', 'buy', '<?php echo $product->getId() ?>', '<?php echo intval($product->getQty()) ?>']);
14
  <?php endforeach; ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>minewhat</name>
4
- <version>1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">osl</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>MineWhat Insights</summary>
10
  <description>MineWhat Insights</description>
11
- <notes>Initial Release</notes>
12
- <authors><author><name>MineWhat Inc.</name><user>rahulb14</user><email>rahul@minewhat.com</email></author></authors>
13
- <date>2013-11-08</date>
14
- <time>11:44:44</time>
15
- <contents><target name="magecommunity"><dir name="MineWhat"><dir name="Insights"><dir name="Block"><dir name="Base"><file name="Script.php" hash="4af0a2e100d9d33f99125a0a6e64421b"/></dir><dir name="Event"><dir name="Catalog"><dir name="Product"><file name="View.php" hash="278f7fba1faa9aa8c82fb0e18151fcaf"/></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Index.php" hash="cc23b8bd2838c12603d12e67c5ac44f9"/></dir><dir name="Onepage"><file name="Success.php" hash="966bceb17e578049ffd9ef741f49808f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f55be36b0f6e46f0fccd3a2dee670ec3"/></dir><dir name="Model"><file name="Observer.php" hash="694e05ba360916f7510dabc234bc2a92"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f1fb655aac4dc7f71cadb6c7a7e816f8"/><file name="config.xml" hash="71f8e762ecee6a1545b6223744d8a92f"/><file name="system.xml" hash="75d5165628b2b748a985db0aef1e505d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="minewhat_insights.xml" hash="cdd30fbb85e90e1d84675f516b8c9c71"/></dir><dir name="template"><dir name="minewhat"><dir name="insights"><dir name="base"><file name="script.phtml" hash="a6b4ecb06d6c40b402ad619425d4493d"/></dir><dir name="event"><dir name="catalog"><dir name="product"><file name="view.phtml" hash="5f5cb6e394bb9de99faeca2a73fe7dee"/></dir></dir><dir name="checkout"><dir name="cart"><file name="index.phtml" hash="ce82b50115aa664dc20a6e36a4a87261"/></dir><dir name="onepage"><file name="success.phtml" hash="945bdb6f5b12b94d39d0fc3a9f80a12f"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MineWhat_Insights.xml" hash="8d2f076cbfcc14688ed800f622869d4b"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.5</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>minewhat</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">osl</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>MineWhat Insights</summary>
10
  <description>MineWhat Insights</description>
11
+ <notes>MineWhat magento plugin</notes>
12
+ <authors><author><name>MineWhat Inc.</name><user>MineWhat</user><email>plugins@minewhat.com</email></author></authors>
13
+ <date>2014-02-04</date>
14
+ <time>12:54:31</time>
15
+ <contents><target name="magecommunity"><dir name="MineWhat"><dir name="Insights"><dir name="Block"><dir name="Base"><file name="Script.php" hash="4af0a2e100d9d33f99125a0a6e64421b"/></dir><dir name="Event"><dir name="Catalog"><dir name="Product"><file name="View.php" hash="278f7fba1faa9aa8c82fb0e18151fcaf"/></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Index.php" hash="cc23b8bd2838c12603d12e67c5ac44f9"/></dir><dir name="Onepage"><file name="Success.php" hash="966bceb17e578049ffd9ef741f49808f"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f55be36b0f6e46f0fccd3a2dee670ec3"/></dir><dir name="Model"><file name="Observer.php" hash="694e05ba360916f7510dabc234bc2a92"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f1fb655aac4dc7f71cadb6c7a7e816f8"/><file name="config.xml" hash="71f8e762ecee6a1545b6223744d8a92f"/><file name="system.xml" hash="75d5165628b2b748a985db0aef1e505d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="minewhat_insights.xml" hash="81061e0839af5d4f44ca0e4ae5383ab2"/></dir><dir name="template"><dir name="minewhat"><dir name="insights"><dir name="base"><file name="script.phtml" hash="a6b4ecb06d6c40b402ad619425d4493d"/></dir><dir name="event"><dir name="catalog"><dir name="product"><file name="view.phtml" hash="d26cc2a2c8ff873a617a2040b5703e6e"/></dir></dir><dir name="checkout"><dir name="cart"><file name="index.phtml" hash="d4d329d77769b2b008280b78259dd15d"/></dir><dir name="onepage"><file name="success.phtml" hash="5df9317cd91e151d633901ba2df31a63"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="minewhat_insights.xml" hash="81061e0839af5d4f44ca0e4ae5383ab2"/></dir><dir name="template"><dir name="minewhat"><dir name="insights"><dir name="base"><file name="script.phtml" hash="a6b4ecb06d6c40b402ad619425d4493d"/></dir><dir name="event"><dir name="catalog"><dir name="product"><file name="view.phtml" hash="d26cc2a2c8ff873a617a2040b5703e6e"/><file name="view.phtml~" hash="d26cc2a2c8ff873a617a2040b5703e6e"/></dir></dir><dir name="checkout"><dir name="cart"><file name="index.phtml" hash="d4d329d77769b2b008280b78259dd15d"/><file name="index.phtml~" hash="d4d329d77769b2b008280b78259dd15d"/></dir><dir name="onepage"><file name="success.phtml" hash="5df9317cd91e151d633901ba2df31a63"/><file name="success.phtml~" hash="5df9317cd91e151d633901ba2df31a63"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MineWhat_Insights.xml" hash="8d2f076cbfcc14688ed800f622869d4b"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.5</min><max>6.0.0</max></php></required></dependencies>
18
  </package>