Version Notes
Stable version of Refiral extension. Currency is included.
Download this release
Release Info
Developer | Refiral |
Extension | Refiral |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
app/code/community/Refiral/Campaign/Helper/Data.php
CHANGED
@@ -52,6 +52,7 @@ class Refiral_Campaign_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
52 |
$controller = $request->getControllerName();
|
53 |
$action = $request->getActionName();
|
54 |
$flag = false;
|
|
|
55 |
$script = "<script>var apiKey = '".$this->getKey()."';</script>"."\n";
|
56 |
if ($module == 'checkout' && $controller == 'onepage' && $action == 'success')
|
57 |
{
|
@@ -75,12 +76,12 @@ class Refiral_Campaign_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
75 |
$order_email = $order->getCustomerEmail(); // Get customer's email id
|
76 |
|
77 |
// Call invoiceRefiral function
|
78 |
-
$scriptAppend = "<script>whenAvailable('invoiceRefiral',function(){invoiceRefiral('$order_total','$order_total','$order_coupon','$cartInfoString','$order_name','$order_email','$orderId')});</script>"."\n";
|
79 |
|
80 |
if($this->debug())
|
81 |
{
|
82 |
$scriptAppend .= "<script>console.log('Module: ".$module.", Controller: ".$controller.", Action: ".$action."');</script>";
|
83 |
-
$scriptAppend .= "<script>console.log('Total: ".$order_total.", Coupon: ".$order_coupon.", Cart: ".$cartInfoString.", Name: ".$order_name.", Email: ".$order_email.", Id: ".$orderId."');</script>";
|
84 |
}
|
85 |
$script .= '<script>var showButton = false;</script>'."\n";
|
86 |
}
|
52 |
$controller = $request->getControllerName();
|
53 |
$action = $request->getActionName();
|
54 |
$flag = false;
|
55 |
+
$currency = Mage::app()->getStore()->getCurrentCurrencyCode();
|
56 |
$script = "<script>var apiKey = '".$this->getKey()."';</script>"."\n";
|
57 |
if ($module == 'checkout' && $controller == 'onepage' && $action == 'success')
|
58 |
{
|
76 |
$order_email = $order->getCustomerEmail(); // Get customer's email id
|
77 |
|
78 |
// Call invoiceRefiral function
|
79 |
+
$scriptAppend = "<script>whenAvailable('invoiceRefiral',function(){invoiceRefiral('$order_total','$order_total','$order_coupon','$cartInfoString','$order_name','$order_email','$orderId', '$currency')});</script>"."\n";
|
80 |
|
81 |
if($this->debug())
|
82 |
{
|
83 |
$scriptAppend .= "<script>console.log('Module: ".$module.", Controller: ".$controller.", Action: ".$action."');</script>";
|
84 |
+
$scriptAppend .= "<script>console.log('Total: ".$order_total.", Coupon: ".$order_coupon.", Cart: ".$cartInfoString.", Name: ".$order_name.", Email: ".$order_email.", Id: ".$orderId.", Currency: ".$currency."');</script>";
|
85 |
}
|
86 |
$script .= '<script>var showButton = false;</script>'."\n";
|
87 |
}
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Refiral</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Launch your referral campaigns virally.</summary>
|
10 |
<description>Boost your sales up to 3X with our new hybrid marketing channel. Run your personalized, easy to integrate fully automated referral program.</description>
|
11 |
-
<notes>Stable version of Refiral extension.</notes>
|
12 |
<authors><author><name>Refiral</name><user>refiral</user><email>support@refiral.com</email></author></authors>
|
13 |
-
<date>2014-12-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Refiral"><dir name="Campaign"><dir name="Block"><file name="default.php" hash="39f687630fe10bbed1d15c069a7f1817"/></dir><dir name="Helper"><file name="Data.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>Refiral</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Launch your referral campaigns virally.</summary>
|
10 |
<description>Boost your sales up to 3X with our new hybrid marketing channel. Run your personalized, easy to integrate fully automated referral program.</description>
|
11 |
+
<notes>Stable version of Refiral extension. Currency is included.</notes>
|
12 |
<authors><author><name>Refiral</name><user>refiral</user><email>support@refiral.com</email></author></authors>
|
13 |
+
<date>2014-12-18</date>
|
14 |
+
<time>09:47:02</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Refiral"><dir name="Campaign"><dir name="Block"><file name="default.php" hash="39f687630fe10bbed1d15c069a7f1817"/></dir><dir name="Helper"><file name="Data.php" hash="2cceeed92c23be7d8ae02c8273852f63"/></dir><dir name="etc"><file name="config.xml" hash="9850240b5844d7ef003c1690225d787e"/><file name="system.xml" hash="7a7f1be925b4e63a822fb9101bb2ecdc"/></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="refiral_campaign"><file name="campaign.phtml" hash="bf9240c0ad7f5337fc29fb3e0b7b72ad"/></dir></dir><dir name="layout"><file name="refiral_campaign.xml" hash="273dfeba936c497c90679a1c94225278"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Refiral_Campaign.xml" hash="5cfba36effdd31e490eca65ae5086925"/></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>
|