Version Notes
etst
Download this release
Release Info
Developer | Magento Core Team |
Extension | Ranvi_CartRescuer |
Version | 0.1.1 |
Comparing to | |
See all releases |
Version 0.1.1
- app/code/community/Ranvi/Cartrescuer/Helper/Data.php +20 -0
- app/code/community/Ranvi/Cartrescuer/etc/adminhtml.xml +23 -0
- app/code/community/Ranvi/Cartrescuer/etc/config.xml +51 -0
- app/code/community/Ranvi/Cartrescuer/etc/system.xml +65 -0
- app/design/frontend/default/default/layout/cartrescuer.xml +8 -0
- app/design/frontend/default/default/template/cartrescuer/cartrescuer.phtml +30 -0
- app/etc/modules/Ranvi_Cartrescuer.xml +9 -0
- package.xml +18 -0
app/code/community/Ranvi/Cartrescuer/Helper/Data.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Ranvi_Cartrescuer_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
public function isEnable(){
|
6 |
+
return Mage::getStoreConfig('cartrescuer/settings/enabled');
|
7 |
+
}
|
8 |
+
|
9 |
+
public function getStoreWebsiteCode(){
|
10 |
+
return Mage::getStoreConfig('cartrescuer/settings/cartrescuer_websitecode');
|
11 |
+
}
|
12 |
+
|
13 |
+
public function getStoreWebsiteDomain(){
|
14 |
+
return Mage::getStoreConfig('cartrescuer/settings/cartrescuer_websitedomain');
|
15 |
+
}
|
16 |
+
|
17 |
+
public function getLoginUsernameKey(){
|
18 |
+
return Mage::getStoreConfig('cartrescuer/settings/cartrescuer_loginusernamekey');
|
19 |
+
}
|
20 |
+
}
|
app/code/community/Ranvi/Cartrescuer/etc/adminhtml.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<cartrescuer translate="title" module="cartrescuer">
|
12 |
+
<title>CartRescuer Settings</title>
|
13 |
+
<sort_order>90</sort_order>
|
14 |
+
</cartrescuer>
|
15 |
+
</children>
|
16 |
+
</config>
|
17 |
+
</children>
|
18 |
+
</system>
|
19 |
+
</children>
|
20 |
+
</admin>
|
21 |
+
</resources>
|
22 |
+
</acl>
|
23 |
+
</config>
|
app/code/community/Ranvi/Cartrescuer/etc/config.xml
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Ranvi_Cartrescuer>
|
5 |
+
<version>0.1.1</version>
|
6 |
+
</Ranvi_Cartrescuer>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<cartrescuer>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Ranvi_Cartrescuer</module>
|
14 |
+
<frontName>cartrescuer</frontName>
|
15 |
+
</args>
|
16 |
+
</cartrescuer>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<cartrescuer>
|
21 |
+
<file>cartrescuer.xml</file>
|
22 |
+
</cartrescuer>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<admin>
|
27 |
+
<routers>
|
28 |
+
<cartrescuer>
|
29 |
+
<use>admin</use>
|
30 |
+
<args>
|
31 |
+
<module>Ranvi_Cartrescuer</module>
|
32 |
+
<frontName>ranvi_cartrescuer</frontName>
|
33 |
+
</args>
|
34 |
+
</cartrescuer>
|
35 |
+
</routers>
|
36 |
+
</admin>
|
37 |
+
<global>
|
38 |
+
<helpers>
|
39 |
+
<cartrescuer>
|
40 |
+
<class>Ranvi_Cartrescuer_Helper</class>
|
41 |
+
</cartrescuer>
|
42 |
+
</helpers>
|
43 |
+
</global>
|
44 |
+
<default>
|
45 |
+
<cartrescuer>
|
46 |
+
<settings>
|
47 |
+
<cartrescuer_loginusernamekey>login[username]</cartrescuer_loginusernamekey>
|
48 |
+
</settings>
|
49 |
+
</cartrescuer>
|
50 |
+
</default>
|
51 |
+
</config>
|
app/code/community/Ranvi/Cartrescuer/etc/system.xml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<ranvi translate="label">
|
5 |
+
<label>Ranvi Extensions</label>
|
6 |
+
<sort_order>400</sort_order>
|
7 |
+
</ranvi>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<cartrescuer translate="label" module="cartrescuer">
|
11 |
+
<label>CartRescuer Settings</label>
|
12 |
+
<tab>ranvi</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>90</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<settings translate="label">
|
20 |
+
<label>CartRescuer Settings</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>1</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>
|
26 |
+
<fields>
|
27 |
+
<enabled translate="label">
|
28 |
+
<label>Enabled</label>
|
29 |
+
<frontend_type>select</frontend_type>
|
30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>1</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>1</show_in_store>
|
35 |
+
</enabled>
|
36 |
+
<cartrescuer_websitecode translate="label">
|
37 |
+
<label>CartRescuer Website Code</label>
|
38 |
+
<frontend_type>text</frontend_type>
|
39 |
+
<sort_order>2</sort_order>
|
40 |
+
<show_in_default>1</show_in_default>
|
41 |
+
<show_in_website>1</show_in_website>
|
42 |
+
<show_in_store>1</show_in_store>
|
43 |
+
</cartrescuer_websitecode>
|
44 |
+
<cartrescuer_websitedomain translate="label">
|
45 |
+
<label>CartRescuer Website Domain</label>
|
46 |
+
<frontend_type>text</frontend_type>
|
47 |
+
<sort_order>3</sort_order>
|
48 |
+
<show_in_default>1</show_in_default>
|
49 |
+
<show_in_website>1</show_in_website>
|
50 |
+
<show_in_store>1</show_in_store>
|
51 |
+
</cartrescuer_websitedomain>
|
52 |
+
<cartrescuer_loginusernamekey translate="label">
|
53 |
+
<label>CartRescuer Login Username Key</label>
|
54 |
+
<frontend_type>text</frontend_type>
|
55 |
+
<sort_order>4</sort_order>
|
56 |
+
<show_in_default>1</show_in_default>
|
57 |
+
<show_in_website>1</show_in_website>
|
58 |
+
<show_in_store>1</show_in_store>
|
59 |
+
</cartrescuer_loginusernamekey>
|
60 |
+
</fields>
|
61 |
+
</settings>
|
62 |
+
</groups>
|
63 |
+
</cartrescuer>
|
64 |
+
</sections>
|
65 |
+
</config>
|
app/design/frontend/default/default/layout/cartrescuer.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default translate="label" module="page">
|
4 |
+
<reference name="head">
|
5 |
+
<block type="core/template" name="cartrescuer_tracking" template="cartrescuer/cartrescuer.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/default/default/template/cartrescuer/cartrescuer.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(Mage::helper('cartrescuer')->isEnable()) { ?>
|
2 |
+
<?php $actionName = Mage::app()->getRequest()->getActionName(); ?>
|
3 |
+
|
4 |
+
<script type="text/javascript">
|
5 |
+
var cartrescuer_websitecode = "<?php echo Mage::helper('cartrescuer')->getStoreWebsiteCode();?>";
|
6 |
+
var cartrescuer_websitedomain = "<?php echo Mage::helper('cartrescuer')->getStoreWebsiteDomain();?>";
|
7 |
+
<?php if(Mage::helper('cartrescuer')->getLoginUsernameKey()){ ?>
|
8 |
+
var cartrescuer_loginusernamekey = "<?php echo Mage::helper('cartrescuer')->getLoginUsernameKey();?>";
|
9 |
+
<?php }else{ ?>
|
10 |
+
var cartrescuer_loginusernamekey = "login[username]";
|
11 |
+
<?php } ?>
|
12 |
+
|
13 |
+
</script>
|
14 |
+
<script type="text/javascript" src="https://tracker-cdn.cartrescuer.com/js/tracking.js"></script>
|
15 |
+
<?php if($actionName == 'login' || (Mage::app()->getRequest()->getControllerName() == 'onepage' && !Mage::getSingleton('customer/session')->getCustomer()->getId())){ ?>
|
16 |
+
<!-- Start CartRescuer signup -->
|
17 |
+
<script type="text/javascript"
|
18 |
+
src="https://tracker-cdn.cartrescuer.com/js/signup.js"></script>
|
19 |
+
<!-- End CartRescuer signup -->
|
20 |
+
<?php } ?>
|
21 |
+
|
22 |
+
|
23 |
+
<?php if($actionName == 'success'){ ?>
|
24 |
+
<!-- Start CartRescuer confirm -->
|
25 |
+
<script type="text/javascript"
|
26 |
+
src="https://tracker-cdn.cartrescuer.com/js/confirm.js"></script>
|
27 |
+
<!-- End CartRescuer confirm -->
|
28 |
+
<?php } ?>
|
29 |
+
|
30 |
+
<?php } ?>
|
app/etc/modules/Ranvi_Cartrescuer.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Ranvi_Cartrescuer>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Ranvi_Cartrescuer>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Ranvi_CartRescuer</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>test</summary>
|
10 |
+
<description>test</description>
|
11 |
+
<notes>etst</notes>
|
12 |
+
<authors><author><name>Ranvi</name><user>auto-converted</user><email>ravindra.palkonda@gmail.com</email></author></authors>
|
13 |
+
<date>2013-05-21</date>
|
14 |
+
<time>07:54:43</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Ranvi_Cartrescuer.xml" hash="302ff106c6a61df47df11ba03a1f1468"/></dir></target><target name="magecommunity"><dir name="Ranvi"><dir name="Cartrescuer"><dir name="Helper"><file name="Data.php" hash="37b19e1837026cb209b1590833fc2851"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7f06ee9d511d35b71246edaa5c9eed9f"/><file name="config.xml" hash="32f168603df4cf80dfb149d45450cfb2"/><file name="system.xml" hash="1021b58b499206c1c49a33df73b6dd10"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="cartrescuer.xml" hash="7fbd5ebe5707e670e9bd3d7ccbe3dc7c"/></dir><dir name="template"><dir name="cartrescuer"><file name="cartrescuer.phtml" hash="e0325fd7f0097e5ed0f6ebe17baf491a"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|