Refiral - Version 1.0.6

Version Notes

Stable version of Refiral extension.

Download this release

Release Info

Developer Refiral
Extension Refiral
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/community/Refiral/Campaign/Helper/Data.php CHANGED
@@ -64,7 +64,7 @@ class Refiral_Campaign_Helper_Data extends Mage_Core_Helper_Abstract {
64
  $order_email = $order->getCustomerEmail(); // Get customer's email id
65
 
66
  // Call invoiceRefiral function
67
- $scriptAppend = "<script>invoiceRefiral('$order_total', '$order_total', '$order_coupon', '$cartInfoString', '$order_name', '$order_email', '$orderId');</script>"."\n";
68
  $script .= '<script>var showButton = false;</script>'."\n";
69
  }
70
  else
64
  $order_email = $order->getCustomerEmail(); // Get customer's email id
65
 
66
  // Call invoiceRefiral function
67
+ $scriptAppend = "<script>whenAvailable('invoiceRefiral',function(){invoiceRefiral('$order_total','$order_total','$order_coupon','$cartInfoString','$order_name','$order_email','$orderId')});</script>"."\n";
68
  $script .= '<script>var showButton = false;</script>'."\n";
69
  }
70
  else
app/design/frontend/base/default/template/refiral_campaign/campaign.phtml CHANGED
@@ -1,20 +1,6 @@
1
  <!-- Refiral Campaign Code Begin -->
2
  <script type="text/javascript">
3
- if ( (typeof jQuery === 'undefined') && !window.jQuery )
4
- {
5
- document.write(unescape("%3Cscript type='text/javascript' src='http://code.jquery.com/jquery-latest.min.js'%3E%3C/script%3E"));
6
- }
7
- else
8
- {
9
- if((typeof jQuery === 'undefined') && window.jQuery)
10
- {
11
- jQuery = window.jQuery;
12
- }
13
- else if((typeof jQuery !== 'undefined') && !window.jQuery)
14
- {
15
- window.jQuery = jQuery;
16
- }
17
- }
18
  </script>
19
  <script>var $j = jQuery.noConflict();</script>
20
  <?php
1
  <!-- Refiral Campaign Code Begin -->
2
  <script type="text/javascript">
3
+ function whenAvailable(n,e){var i=10;window.setTimeout(function(){window[n]?e(window[n]):window.setTimeout(arguments.callee,i)},i)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  </script>
5
  <script>var $j = jQuery.noConflict();</script>
6
  <?php
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Refiral</name>
4
- <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
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-08-07</date>
14
- <time>10:39:36</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="4f0075d8268c0e31735c321c61338da8"/></dir><dir name="etc"><file name="config.xml" hash="9850240b5844d7ef003c1690225d787e"/><file name="system.xml" hash="06279a67e93961ea78c5c2cfa207c00d"/></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="5b09c8fc8a5a2d5a8b0f87b769c19072"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Refiral</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</license>
7
  <channel>community</channel>
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-11-18</date>
14
+ <time>14:08:33</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="08925e1b7982ffb0dc262741173acebd"/></dir><dir name="etc"><file name="config.xml" hash="9850240b5844d7ef003c1690225d787e"/><file name="system.xml" hash="06279a67e93961ea78c5c2cfa207c00d"/></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="1a244408b1203e7a8f4f6f62208fd71d"/></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>