Version Notes
Updated version to 1.1.3
Download this release
Release Info
Developer | David Webber |
Extension | recapture |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- app/code/local/Recapture/Connector/Helper/Data.php +7 -1
- app/code/local/Recapture/Connector/Model/Landing.php +18 -0
- app/code/local/Recapture/Connector/controllers/CartController.php +18 -5
- app/code/local/Recapture/Connector/etc/config.xml +16 -2
- app/code/local/Recapture/Connector/etc/system.xml +24 -4
- package.xml +4 -4
app/code/local/Recapture/Connector/Helper/Data.php
CHANGED
@@ -12,10 +12,16 @@ class Recapture_Connector_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
12 |
|
13 |
public function canTrackEmail(){
|
14 |
|
15 |
-
return Mage::getStoreConfig('recapture/
|
16 |
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
public function getApiKey(){
|
20 |
|
21 |
return Mage::getStoreConfig('recapture/configuration/api_key');
|
12 |
|
13 |
public function canTrackEmail(){
|
14 |
|
15 |
+
return Mage::getStoreConfig('recapture/abandoned_carts/track_email');
|
16 |
|
17 |
}
|
18 |
|
19 |
+
public function getReturnLanding(){
|
20 |
+
|
21 |
+
return Mage::getStoreConfig('recapture/abandoned_carts/return_landing');
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
public function getApiKey(){
|
26 |
|
27 |
return Mage::getStoreConfig('recapture/configuration/api_key');
|
app/code/local/Recapture/Connector/Model/Landing.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Recapture_Connector_Model_Landing {
|
4 |
+
|
5 |
+
const REDIRECT_HOME = 'home';
|
6 |
+
const REDIRECT_CART = 'cart';
|
7 |
+
const REDIRECT_CHECKOUT = 'checkout';
|
8 |
+
|
9 |
+
public function toOptionArray(){
|
10 |
+
|
11 |
+
return array(
|
12 |
+
array('value' => self::REDIRECT_HOME, 'label' => Mage::helper('recapture')->__('Home Page')),
|
13 |
+
array('value' => self::REDIRECT_CART, 'label' => Mage::helper('recapture')->__('Cart Page')),
|
14 |
+
array('value' => self::REDIRECT_CHECKOUT, 'label' => Mage::helper('recapture')->__('Checkout Page')),
|
15 |
+
);
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
app/code/local/Recapture/Connector/controllers/CartController.php
CHANGED
@@ -45,16 +45,29 @@ class Recapture_Connector_CartController extends Mage_Core_Controller_Front_Acti
|
|
45 |
|
46 |
$cart = Mage::getModel('checkout/cart')->getQuote();
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
|
55 |
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
}
|
45 |
|
46 |
$cart = Mage::getModel('checkout/cart')->getQuote();
|
47 |
|
48 |
+
$redirectSection = $helper->getReturnLanding();
|
49 |
+
|
50 |
+
switch ($redirectSection){
|
51 |
+
|
52 |
+
case Recapture_Connector_Model_Landing::REDIRECT_HOME:
|
53 |
+
|
54 |
+
return $this->_redirect('/');
|
55 |
|
56 |
+
case Recapture_Connector_Model_Landing::REDIRECT_CHECKOUT:
|
57 |
+
|
58 |
+
return $this->getResponse()->setRedirect(Mage::helper('checkout/url')->getCheckoutUrl());
|
59 |
+
|
60 |
+
case Recapture_Connector_Model_Landing::REDIRECT_CART:
|
61 |
+
default:
|
62 |
|
63 |
+
return $this->_redirect('checkout/cart');
|
64 |
|
65 |
}
|
66 |
|
67 |
+
return $this->_redirect('/');
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
}
|
72 |
|
73 |
}
|
app/code/local/Recapture/Connector/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Recapture_Connector>
|
5 |
-
<version>1.1.
|
6 |
</Recapture_Connector>
|
7 |
</modules>
|
8 |
|
@@ -20,6 +20,12 @@
|
|
20 |
</recapture>
|
21 |
</helpers>
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<events>
|
24 |
|
25 |
<sales_quote_save_after>
|
@@ -110,5 +116,13 @@
|
|
110 |
</resources>
|
111 |
</acl>
|
112 |
</adminhtml>
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Recapture_Connector>
|
5 |
+
<version>1.1.3</version>
|
6 |
</Recapture_Connector>
|
7 |
</modules>
|
8 |
|
20 |
</recapture>
|
21 |
</helpers>
|
22 |
|
23 |
+
<models>
|
24 |
+
<recapture>
|
25 |
+
<class>Recapture_Connector_Model</class>
|
26 |
+
</recapture>
|
27 |
+
</models>
|
28 |
+
|
29 |
<events>
|
30 |
|
31 |
<sales_quote_save_after>
|
116 |
</resources>
|
117 |
</acl>
|
118 |
</adminhtml>
|
119 |
+
|
120 |
+
<default>
|
121 |
+
<recapture>
|
122 |
+
<abandoned_carts>
|
123 |
+
<return_landing>cart</return_landing>
|
124 |
+
</abandoned_carts>
|
125 |
+
</recapture>
|
126 |
+
</default>
|
127 |
+
|
128 |
</config>
|
app/code/local/Recapture/Connector/etc/system.xml
CHANGED
@@ -17,9 +17,9 @@
|
|
17 |
|
18 |
<groups>
|
19 |
<configuration translate="label" module="recapture">
|
20 |
-
<label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
-
<sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
@@ -61,17 +61,37 @@
|
|
61 |
<show_in_website>1</show_in_website>
|
62 |
<show_in_store>0</show_in_store>
|
63 |
</api_key>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
<track_email translate="label">
|
65 |
<label>Enable Pre-submit Email Capturing</label>
|
66 |
<frontend_type>select</frontend_type>
|
67 |
-
<sort_order>
|
68 |
<show_in_default>1</show_in_default>
|
69 |
<show_in_website>1</show_in_website>
|
70 |
<show_in_store>0</show_in_store>
|
71 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
72 |
</track_email>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</fields>
|
74 |
-
</
|
75 |
</groups>
|
76 |
</recapture>
|
77 |
</sections>
|
17 |
|
18 |
<groups>
|
19 |
<configuration translate="label" module="recapture">
|
20 |
+
<label>Authentication</label>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>10</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
61 |
<show_in_website>1</show_in_website>
|
62 |
<show_in_store>0</show_in_store>
|
63 |
</api_key>
|
64 |
+
</fields>
|
65 |
+
</configuration>
|
66 |
+
<abandoned_carts translate="label" module="recapture">
|
67 |
+
<label>Abandoned Carts Configuration</label>
|
68 |
+
<frontend_type>text</frontend_type>
|
69 |
+
<sort_order>20</sort_order>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
|
74 |
+
<fields>
|
75 |
<track_email translate="label">
|
76 |
<label>Enable Pre-submit Email Capturing</label>
|
77 |
<frontend_type>select</frontend_type>
|
78 |
+
<sort_order>10</sort_order>
|
79 |
<show_in_default>1</show_in_default>
|
80 |
<show_in_website>1</show_in_website>
|
81 |
<show_in_store>0</show_in_store>
|
82 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
83 |
</track_email>
|
84 |
+
<return_landing translate="label">
|
85 |
+
<label>Click Through Landing</label>
|
86 |
+
<frontend_type>select</frontend_type>
|
87 |
+
<sort_order>20</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>1</show_in_website>
|
90 |
+
<show_in_store>0</show_in_store>
|
91 |
+
<source_model>recapture/landing</source_model>
|
92 |
+
</return_landing>
|
93 |
</fields>
|
94 |
+
</abandoned_carts>
|
95 |
</groups>
|
96 |
</recapture>
|
97 |
</sections>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>recapture</name>
|
4 |
-
<version>1.1.
|
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>Updated version to 1.1.
|
12 |
<authors><author><name>David Webber</name><user>Adstream</user><email>david@adstreaminc.com</email></author></authors>
|
13 |
<date>2015-10-21</date>
|
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><file name="Client.php" hash="91f04f33fc71e6bbe006d15a49bb6bb2"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AuthenticateController.php" hash="0722003698fa2710d58d0d806840f543"/></dir><file name="CartController.php" 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.1.3</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>Updated version to 1.1.3</notes>
|
12 |
<authors><author><name>David Webber</name><user>Adstream</user><email>david@adstreaminc.com</email></author></authors>
|
13 |
<date>2015-10-21</date>
|
14 |
+
<time>20:06:07</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><file name="Client.php" hash="91f04f33fc71e6bbe006d15a49bb6bb2"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AuthenticateController.php" hash="0722003698fa2710d58d0d806840f543"/></dir><file name="CartController.php" hash="438f39a0c47b852e4e82c9b0505f3d80"/><file name="IndexController.php" hash="3b1bb4f397617f696ac89e688c4dc1ae"/><file name="RecaptureController.php" hash="987215ca928935afc9d4f9ce4fdf670c"/></dir><dir name="etc"><file name="config.xml" hash="81e0e7225ffddc37ca49d13439a55cb9"/><file name="system.xml" hash="d3b674132d8ebddc33eee9d6bb3c3c37"/></dir><dir name="Helper"><file name="Data.php" hash="a6f697a905323475b2b49c08318f596a"/><file name="Transport.php" hash="7bdbdbf7c3cee4841fe7ce42371f5951"/></dir><dir name="Model"><file name="Landing.php" hash="5a9ee53115f4caa835e3e381fd9ba937"/><file name="Observer.php" hash="ebb0d3e134cc115c4849384590b28b1e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Recapture_Connector.xml" hash="e8fea9dc4237af6b34219c7f52bd02d8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="recapture.xml" hash="5a91899f12df162c706b17db79fb7f72"/></dir><dir name="template"><dir name="recapture"><file name="client.phtml" hash="50b49c48d393cf2566ab42b561bcf277"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|