Version Notes
More updates!
Download this release
Release Info
Developer | David Webber |
Extension | recapture |
Version | 1.0.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.9.1 to 1.0.9.2
app/code/local/Recapture/Connector/Helper/Transport.php
CHANGED
@@ -12,6 +12,9 @@ class Recapture_Connector_Helper_Transport extends Mage_Core_Helper_Abstract {
|
|
12 |
'timeout' => 1
|
13 |
));
|
14 |
|
|
|
|
|
|
|
15 |
$client->setParameterPost($data);
|
16 |
$client->setAdapter($adapter);
|
17 |
$client->setHeaders('Api-Key', Mage::helper('recapture')->getApiKey());
|
12 |
'timeout' => 1
|
13 |
));
|
14 |
|
15 |
+
//this is the users publicly accessible session ID
|
16 |
+
$data['session'] = Mage::getSingleton('core/session')->getEncryptedSessionId();
|
17 |
+
|
18 |
$client->setParameterPost($data);
|
19 |
$client->setAdapter($adapter);
|
20 |
$client->setHeaders('Api-Key', Mage::helper('recapture')->getApiKey());
|
app/code/local/Recapture/Connector/Model/Observer.php
CHANGED
@@ -25,6 +25,8 @@ class Recapture_Connector_Model_Observer {
|
|
25 |
|
26 |
Mage::register('recapture_has_posted', true);
|
27 |
|
|
|
|
|
28 |
$mediaConfig = Mage::getModel('catalog/product_media_config');
|
29 |
$storeId = Mage::app()->getStore();
|
30 |
|
@@ -44,7 +46,8 @@ class Recapture_Connector_Model_Observer {
|
|
44 |
|
45 |
$productModel = $item->getProduct();
|
46 |
|
47 |
-
$
|
|
|
48 |
|
49 |
//check configurable first
|
50 |
if ($item->getProductType() == 'configurable'){
|
@@ -54,8 +57,7 @@ class Recapture_Connector_Model_Observer {
|
|
54 |
$child = $productModel->getIdBySku($item->getSku());
|
55 |
|
56 |
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue($child, 'thumbnail', $storeId);
|
57 |
-
|
58 |
-
if ($image) $productImage = $mediaConfig->getMediaUrl($image);
|
59 |
|
60 |
}
|
61 |
}
|
25 |
|
26 |
Mage::register('recapture_has_posted', true);
|
27 |
|
28 |
+
$quote->collectTotals();
|
29 |
+
|
30 |
$mediaConfig = Mage::getModel('catalog/product_media_config');
|
31 |
$storeId = Mage::app()->getStore();
|
32 |
|
46 |
|
47 |
$productModel = $item->getProduct();
|
48 |
|
49 |
+
$rawImage = Mage::getResourceModel('catalog/product')->getAttributeRawValue($productModel->getId(), 'thumbnail', $storeId);
|
50 |
+
$productImage = $mediaConfig->getMediaUrl($rawImage);
|
51 |
|
52 |
//check configurable first
|
53 |
if ($item->getProductType() == 'configurable'){
|
57 |
$child = $productModel->getIdBySku($item->getSku());
|
58 |
|
59 |
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue($child, 'thumbnail', $storeId);
|
60 |
+
if ($image && $image != 'no_selection') $productImage = $mediaConfig->getMediaUrl($image);
|
|
|
61 |
|
62 |
}
|
63 |
}
|
app/code/local/Recapture/Connector/etc/config.xml
CHANGED
@@ -21,6 +21,16 @@
|
|
21 |
</helpers>
|
22 |
|
23 |
<events>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
<sales_quote_save_after>
|
26 |
<observers>
|
21 |
</helpers>
|
22 |
|
23 |
<events>
|
24 |
+
|
25 |
+
<catalog_controller_product_view>
|
26 |
+
<observers>
|
27 |
+
<recapture_product_view>
|
28 |
+
<type>singleton</type>
|
29 |
+
<class>Recapture_Connector_Model_Observer</class>
|
30 |
+
<method>productView</method>
|
31 |
+
</recapture_product_view>
|
32 |
+
</observers>
|
33 |
+
</catalog_controller_product_view>
|
34 |
|
35 |
<sales_quote_save_after>
|
36 |
<observers>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>recapture</name>
|
4 |
-
<version>1.0.9.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Free analytics dashboard for abandoned carts. Set up automated cart recovery email campaigns in minutes.</summary>
|
10 |
<description>Free analytics dashboard for abandoned carts. Set up automated cart recovery email campaigns in minutes.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>David Webber</name><user>Adstream</user><email>david@adstreaminc.com</email></author></authors>
|
13 |
-
<date>2015-09-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Recapture"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Authenticate.php" hash="2433544256c447f96d1e4b4a823e724a"/><file name="Key.php" hash="adf516740c9e1a392fd7f81c4fb1927e"/><file name="Status.php" hash="f19858c8bb476b05e7e86cbdce403323"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AuthenticateController.php" hash="0722003698fa2710d58d0d806840f543"/></dir><file name="CartController.php" hash="b1a13eaa32a9d6af551b1b73c1573a0d"/><file name="RecaptureController.php" hash="987215ca928935afc9d4f9ce4fdf670c"/></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>recapture</name>
|
4 |
+
<version>1.0.9.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Free analytics dashboard for abandoned carts. Set up automated cart recovery email campaigns in minutes.</summary>
|
10 |
<description>Free analytics dashboard for abandoned carts. Set up automated cart recovery email campaigns in minutes.</description>
|
11 |
+
<notes>More updates!</notes>
|
12 |
<authors><author><name>David Webber</name><user>Adstream</user><email>david@adstreaminc.com</email></author></authors>
|
13 |
+
<date>2015-09-28</date>
|
14 |
+
<time>23:21:33</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Recapture"><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Authenticate.php" hash="2433544256c447f96d1e4b4a823e724a"/><file name="Key.php" hash="adf516740c9e1a392fd7f81c4fb1927e"/><file name="Status.php" hash="f19858c8bb476b05e7e86cbdce403323"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AuthenticateController.php" hash="0722003698fa2710d58d0d806840f543"/></dir><file name="CartController.php" hash="b1a13eaa32a9d6af551b1b73c1573a0d"/><file name="RecaptureController.php" hash="987215ca928935afc9d4f9ce4fdf670c"/></dir><dir name="etc"><file name="config.xml" hash="c54b25cf0281489c149ec9d23d832f64"/><file name="system.xml" hash="af2ebdfe2b9796f62aa3b956c0e20bd6"/></dir><dir name="Helper"><file name="Data.php" hash="75303b11410e45bca05e1a70b5ef3ab2"/><file name="Transport.php" hash="7bdbdbf7c3cee4841fe7ce42371f5951"/></dir><dir name="Model"><file name="Observer.php" hash="51c6d6796e3353640aefd06cc7183918"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Recapture_Connector.xml" hash="e8fea9dc4237af6b34219c7f52bd02d8"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|