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 |
-
$
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
Mage::
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
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.
|
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.
|
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 |
<br />
|
19 |
<a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"><img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /></a><br /><br />
|
20 |
Note: This module will not work without a subscription to the <a href="http://www.woopra.com/?woo_campaign=affiliate&woo_medium=referral&woo_source=k3live">Woopra</a> service.</description>
|
21 |
-
<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-
|
24 |
-
<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="
|
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 |
<br />
|
19 |
<a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"><img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /></a><br /><br />
|
20 |
Note: This module will not work without a subscription to the <a href="http://www.woopra.com/?woo_campaign=affiliate&woo_medium=referral&woo_source=k3live">Woopra</a> 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>
|