Woopra_Analytics_Event_And_Visitor_Tracking - Version 1.7.0

Version Notes

Bug fix, attempting to remove an item from the cart that had previously been removed resulted in an error.

Download this release

Release Info

Developer Woopra
Extension Woopra_Analytics_Event_And_Visitor_Tracking
Version 1.7.0
Comparing to
See all releases


Code changes from version 1.6.0 to 1.7.0

app/code/community/Woopra/Analytics/Model/Observer.php CHANGED
@@ -85,15 +85,17 @@ class Woopra_Analytics_Model_Observer extends Varien_Event_Observer
85
  Mage::helper('woopra')->getProductRemovedFromCart() != NULL) {
86
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
87
  if ($request) {
88
- $productId = Mage::getModel('checkout/cart')
89
- ->getQuote()->getItemById($request['id'])->getProduct()->getId();
90
- $product = Mage::getModel('catalog/product')->load($productId)->getData();
91
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
92
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
93
- Mage::helper('woopra')->getProductRemovedFromCart());
94
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
95
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
96
- Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
 
 
97
  }
98
  }
99
 
85
  Mage::helper('woopra')->getProductRemovedFromCart() != NULL) {
86
  $request = $observer->getEvent()->getControllerAction()->getRequest()->getParams();
87
  if ($request) {
88
+ $quoteItemId = Mage::getModel('checkout/cart')->getQuote()->getItemById($request['id']);
89
+ if ($quoteItemId) {
90
+ $productId = $quoteItemId->getProduct()->getId();
91
+ $product = Mage::getModel('catalog/product')->load($productId)->getData();
92
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_trigger', 1);
93
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_status',
94
+ Mage::helper('woopra')->getProductRemovedFromCart());
95
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_name', addslashes($product['name']));
96
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_sku', addslashes($product['sku']));
97
+ Mage::getSingleton('core/session')->setData('woopra_cart_wishlist_price', round($product['price'], 2));
98
+ }
99
  }
100
  }
101
 
app/code/community/Woopra/Analytics/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <Woopra_Analytics>
15
- <version>1.6.0</version>
16
  </Woopra_Analytics>
17
  </modules>
18
  <global>
12
  <config>
13
  <modules>
14
  <Woopra_Analytics>
15
+ <version>1.7.0</version>
16
  </Woopra_Analytics>
17
  </modules>
18
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
- <version>1.6.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -18,11 +18,11 @@ Access custom reports instantly. No more bugging IT. No old-school interfaces. N
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
- <notes>Undefined constant and variable fixes.</notes>
22
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@woopra.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
23
- <date>2015-04-22</date>
24
- <time>06:53:00</time>
25
- <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="02c0d45470a447ae4f14e18f4abdc3d4"/></dir><dir name="Helper"><file name="Data.php" hash="de87ef2faeb806905627abb1644be4f6"/></dir><dir name="Model"><file name="Observer.php" hash="1712c8b9ae89c5d9722546c69ddf34f8"/></dir><dir name="etc"><file name="config.xml" hash="8117b57eba07e903586388c74136484e"/><file name="system.xml" hash="cb54ec73ff11b133cc864741f300896c"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="d9dc3de2af23a1991ab7785342086d40"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="2686a404f8b8e967c200d57fa1dfb55c"/><file name="checkout.phtml" hash="b3d7d026c4cf86f834a2a9d5f1d33f36"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="6f38d8633187db1ba9584af2341380a4"/></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
+ <version>1.7.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
+ <notes>Bug fix, attempting to remove an item from the cart that had previously been removed resulted in an error.</notes>
22
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@woopra.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
23
+ <date>2015-05-09</date>
24
+ <time>02:44:08</time>
25
+ <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="02c0d45470a447ae4f14e18f4abdc3d4"/></dir><dir name="Helper"><file name="Data.php" hash="de87ef2faeb806905627abb1644be4f6"/></dir><dir name="Model"><file name="Observer.php" hash="c0b33c770233be0bc4e5b6a6015a69fe"/></dir><dir name="etc"><file name="config.xml" hash="63e9866d41c579e9b75505367c036de6"/><file name="system.xml" hash="cb54ec73ff11b133cc864741f300896c"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="d9dc3de2af23a1991ab7785342086d40"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="2686a404f8b8e967c200d57fa1dfb55c"/><file name="checkout.phtml" hash="b3d7d026c4cf86f834a2a9d5f1d33f36"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="6f38d8633187db1ba9584af2341380a4"/></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>