Version Notes
Extension provides:
- Post-Checkout Integration
- Standalone Integration
- Customer Dashboard Integration
Download this release
Release Info
Developer | Talkable |
Extension | talkable |
Version | 0.1.6 |
Comparing to | |
See all releases |
Code changes from version 0.1.5 to 0.1.6
- app/code/community/Talkable/SocialReferrals/Helper/Data.php +11 -0
- app/code/community/Talkable/SocialReferrals/etc/config.xml +2 -1
- app/code/community/Talkable/SocialReferrals/etc/system.xml +10 -0
- app/design/frontend/base/default/template/talkable/socialreferrals/dashboard.phtml +1 -1
- app/design/frontend/base/default/template/talkable/socialreferrals/invite.phtml +1 -1
- app/design/frontend/base/default/template/talkable/socialreferrals/post_purchase.phtml +1 -1
- package.xml +4 -4
app/code/community/Talkable/SocialReferrals/Helper/Data.php
CHANGED
@@ -20,6 +20,17 @@ class Talkable_SocialReferrals_Helper_Data extends Mage_Core_Helper_Abstract
|
|
20 |
return $this->_getTextConfigValue("general/site_id");
|
21 |
}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
//------------------------+
|
24 |
// Post-Checkout Campaign |
|
25 |
//------------------------+
|
20 |
return $this->_getTextConfigValue("general/site_id");
|
21 |
}
|
22 |
|
23 |
+
public function getIntegrationJsUrl()
|
24 |
+
{
|
25 |
+
$retval = $this->_getTextConfigValue("general/integration_js_url");
|
26 |
+
|
27 |
+
if ($retval == "") {
|
28 |
+
return "//d2jjzw81hqbuqv.cloudfront.net/integration/talkable-1.0.min.js";
|
29 |
+
} else {
|
30 |
+
return $retval;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
//------------------------+
|
35 |
// Post-Checkout Campaign |
|
36 |
//------------------------+
|
app/code/community/Talkable/SocialReferrals/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Talkable_SocialReferrals>
|
15 |
-
<version>0.1.
|
16 |
</Talkable_SocialReferrals>
|
17 |
</modules>
|
18 |
|
@@ -80,6 +80,7 @@
|
|
80 |
<socialreferrals>
|
81 |
<general>
|
82 |
<site_id></site_id>
|
|
|
83 |
</general>
|
84 |
|
85 |
<purchase>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Talkable_SocialReferrals>
|
15 |
+
<version>0.1.6</version>
|
16 |
</Talkable_SocialReferrals>
|
17 |
</modules>
|
18 |
|
80 |
<socialreferrals>
|
81 |
<general>
|
82 |
<site_id></site_id>
|
83 |
+
<integration_js_url>//d2jjzw81hqbuqv.cloudfront.net/integration/talkable-1.0.min.js</integration_js_url>
|
84 |
</general>
|
85 |
|
86 |
<purchase>
|
app/code/community/Talkable/SocialReferrals/etc/system.xml
CHANGED
@@ -45,6 +45,16 @@
|
|
45 |
<show_in_website>1</show_in_website>
|
46 |
<show_in_store>1</show_in_store>
|
47 |
</site_id>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
</fields>
|
49 |
</general>
|
50 |
|
45 |
<show_in_website>1</show_in_website>
|
46 |
<show_in_store>1</show_in_store>
|
47 |
</site_id>
|
48 |
+
|
49 |
+
<integration_js_url translate="label">
|
50 |
+
<label>Path to Integration JS file</label>
|
51 |
+
<comment>(Only change this if you are sure you need to)</comment>
|
52 |
+
<frontend_type>text</frontend_type>
|
53 |
+
<sort_order>2</sort_order>
|
54 |
+
<show_in_default>1</show_in_default>
|
55 |
+
<show_in_website>1</show_in_website>
|
56 |
+
<show_in_store>1</show_in_store>
|
57 |
+
</integration_js_url>
|
58 |
</fields>
|
59 |
</general>
|
60 |
|
app/design/frontend/base/default/template/talkable/socialreferrals/dashboard.phtml
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
_talkableq.push(["register_affiliate", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
33 |
//]]>
|
34 |
</script>
|
35 |
-
<script type="text/javascript" src="
|
36 |
<?php endif ?>
|
37 |
|
38 |
<!-- End Talkable integration code -->
|
32 |
_talkableq.push(["register_affiliate", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
33 |
//]]>
|
34 |
</script>
|
35 |
+
<script type="text/javascript" src="<?php echo $_helper->getIntegrationJsUrl() ?>"></script>
|
36 |
<?php endif ?>
|
37 |
|
38 |
<!-- End Talkable integration code -->
|
app/design/frontend/base/default/template/talkable/socialreferrals/invite.phtml
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
_talkableq.push(["register_affiliate", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
33 |
//]]>
|
34 |
</script>
|
35 |
-
<script type="text/javascript" src="
|
36 |
<?php endif ?>
|
37 |
|
38 |
<!-- End Talkable integration code -->
|
32 |
_talkableq.push(["register_affiliate", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
33 |
//]]>
|
34 |
</script>
|
35 |
+
<script type="text/javascript" src="<?php echo $_helper->getIntegrationJsUrl() ?>"></script>
|
36 |
<?php endif ?>
|
37 |
|
38 |
<!-- End Talkable integration code -->
|
app/design/frontend/base/default/template/talkable/socialreferrals/post_purchase.phtml
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
_talkableq.push(["register_purchase", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
35 |
//]]>
|
36 |
</script>
|
37 |
-
<script type="text/javascript" src="
|
38 |
<?php else: ?>
|
39 |
<!-- Order could not be found -->
|
40 |
<?php endif ?>
|
34 |
_talkableq.push(["register_purchase", <?php echo Mage::helper("core")->jsonEncode($_event_data) ?>]);
|
35 |
//]]>
|
36 |
</script>
|
37 |
+
<script type="text/javascript" src="<?php echo $_helper->getIntegrationJsUrl() ?>"></script>
|
38 |
<?php else: ?>
|
39 |
<!-- Order could not be found -->
|
40 |
<?php endif ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>talkable</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
@@ -19,9 +19,9 @@ See more at Talkable.com</description>
|
|
19 |
- Standalone Integration
|
20 |
- Customer Dashboard Integration</notes>
|
21 |
<authors><author><name>Talkable</name><user>talkable</user><email>sub@talkable.com</email></author></authors>
|
22 |
-
<date>2015-
|
23 |
-
<time>15:
|
24 |
-
<contents><target name="magecommunity"><dir name="Talkable"><dir name="SocialReferrals"><dir name="Block"><file name="Affiliate.php" hash="e5cf1648f2aab8c8894fd1311ae865b8"/><dir name="Customer"><file name="Dashboard.php" hash="78d93dcf31455b09117506a78d3b7797"/></dir><dir name="Multishipping"><file name="Purchase.php" hash="6eaab3557bdf97f40a77c7b6e040e483"/></dir><file name="Purchase.php" hash="5cd37269372b88cec4657bf85077c1a4"/></dir><dir name="Helper"><file name="Data.php" hash="
|
25 |
<compatible/>
|
26 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
27 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>talkable</name>
|
4 |
+
<version>0.1.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
19 |
- Standalone Integration
|
20 |
- Customer Dashboard Integration</notes>
|
21 |
<authors><author><name>Talkable</name><user>talkable</user><email>sub@talkable.com</email></author></authors>
|
22 |
+
<date>2015-10-15</date>
|
23 |
+
<time>15:51:52</time>
|
24 |
+
<contents><target name="magecommunity"><dir name="Talkable"><dir name="SocialReferrals"><dir name="Block"><file name="Affiliate.php" hash="e5cf1648f2aab8c8894fd1311ae865b8"/><dir name="Customer"><file name="Dashboard.php" hash="78d93dcf31455b09117506a78d3b7797"/></dir><dir name="Multishipping"><file name="Purchase.php" hash="6eaab3557bdf97f40a77c7b6e040e483"/></dir><file name="Purchase.php" hash="5cd37269372b88cec4657bf85077c1a4"/></dir><dir name="Helper"><file name="Data.php" hash="20abe8f98a5c6fdb76bddec96fcf1fc0"/></dir><dir name="Model"><file name="Observer.php" hash="c5ebe37375fb3d6b40d8d440b790ee8b"/></dir><dir name="controllers"><dir name="Customer"><file name="DashboardController.php" hash="fb89ba06fed8cb3329a941d59bd67b7c"/></dir><file name="IndexController.php" hash="41a785b074c529b65a3f82ca3573662e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3f86a3e4bf980fa36aba8c0e33737e59"/><file name="config.xml" hash="4863efd72b89d415d09745f3937f1716"/><file name="system.xml" hash="403d3059ec5cf53e2494d920f159a3ca"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="talkable"><file name="socialreferrals.xml" hash="87e9f62d2d649e5da197e7a93c47c986"/></dir></dir><dir name="template"><dir name="talkable"><dir name="socialreferrals"><file name="dashboard.phtml" hash="8f500eda3d530a023463f8ebd190d2ef"/><file name="invite.phtml" hash="26f2536cc57b16919409064af76f1551"/><file name="post_purchase.phtml" hash="7cefca2596c5f8da483cd728a0e4d018"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Talkable_SocialReferrals.xml" hash="ed1152e3c169ac8e9d33219e5ec9fb47"/></dir></target></contents>
|
25 |
<compatible/>
|
26 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
27 |
</package>
|