lfnds_donation - Version 1.0.1

Version Notes

Stable Release

Download this release

Release Info

Developer elefunds GmbH
Extension lfnds_donation
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Lfnds/Donation/Block/Checkout/Banner.php CHANGED
@@ -131,11 +131,11 @@ class Lfnds_Donation_Block_Checkout_Banner extends Mage_Core_Block_Template {
131
  * @return bool
132
  */
133
  public function canShowBanner() {
134
- return $this->isActive;
135
  }
136
 
137
  public function deactivateBanner() {
138
- $this->isActive = FALSE;
139
  }
140
 
141
 
131
  * @return bool
132
  */
133
  public function canShowBanner() {
134
+ return $this->helper->isActive();
135
  }
136
 
137
  public function deactivateBanner() {
138
+ $this->helper->deactivate();
139
  }
140
 
141
 
app/code/community/Lfnds/Donation/Helper/Data.php CHANGED
@@ -266,6 +266,9 @@ class Lfnds_Donation_Helper_Data extends Mage_Core_Helper_Abstract {
266
  return !empty($excludedMethodsAsString) ? explode(',', $excludedMethodsAsString) : array();
267
  }
268
 
 
 
 
269
  public function isActive() {
270
  if ($this->active === NULL) {
271
  $this->active = Mage::getStoreConfig('lfnds_donation/general/active');
@@ -273,4 +276,11 @@ class Lfnds_Donation_Helper_Data extends Mage_Core_Helper_Abstract {
273
  return $this->active;
274
  }
275
 
 
 
 
 
 
 
 
276
  }
266
  return !empty($excludedMethodsAsString) ? explode(',', $excludedMethodsAsString) : array();
267
  }
268
 
269
+ /**
270
+ * @return bool
271
+ */
272
  public function isActive() {
273
  if ($this->active === NULL) {
274
  $this->active = Mage::getStoreConfig('lfnds_donation/general/active');
276
  return $this->active;
277
  }
278
 
279
+ /**
280
+ * Deactivates the module.
281
+ */
282
+ public function deactivate() {
283
+ $this->active = FALSE;
284
+ }
285
+
286
  }
lib/Elefunds/Template/Shop/Css/elefunds.less CHANGED
@@ -1,5 +1,5 @@
1
- @import "elements.less";
2
- @import "color.less";
3
 
4
  @cdn-URL: "https://0ce8ff584bf613ee6639-c1fc539e0df6af03ccc14b5020ab4161.ssl.cf1.rackcdn.com";
5
 
1
+ @import "elements";
2
+ @import "color";
3
 
4
  @cdn-URL: "https://0ce8ff584bf613ee6639-c1fc539e0df6af03ccc14b5020ab4161.ssl.cf1.rackcdn.com";
5
 
lib/Elefunds/Template/Shop/Helper/RequestHelper.php CHANGED
@@ -62,6 +62,11 @@ class Elefunds_Template_Shop_Helper_RequestHelper {
62
  $this->request = $request;
63
  }
64
 
 
 
 
 
 
65
  public function setRequest(array $request) {
66
  $this->request = $request;
67
  }
62
  $this->request = $request;
63
  }
64
 
65
+ /**
66
+ * Set the API request
67
+ *
68
+ * @param array $request
69
+ */
70
  public function setRequest(array $request) {
71
  $this->request = $request;
72
  }
lib/Elefunds/Template/Shop/Javascript/elefunds.jquery.js CHANGED
@@ -1,227 +1,227 @@
1
  var elefunds = (function(parent, $) {
2
 
3
- var roundSumContainer, roundSum, currency, decimal, decimalAlt, total, toolTipPosition;
4
- var enabled = false;
5
-
6
- function init(options) {
7
- roundSumContainer = options.roundSumContainer;
8
- roundSum = options.roundSum;
9
- currency = options.currency;
10
- decimal = options.decimal;
11
- decimalAlt = options.deciamlAlt;
12
- total = options.total;
13
- toolTipPosition = options.toolTipPosition;
14
-
15
- $('#elefunds').data('elefunds-roundSum', convertToFloat(total + parseInt($('#elefunds_donation_cent').val(), 10)));
16
- $('#elefunds').data('elefunds-donation', {donationCent: parseInt($('#elefunds_donation_cent').val(), 10), donationFloat: convertToFloat(parseInt($('#elefunds_donation_cent').val(), 10))});
17
-
18
- function enable() {
19
- $('#elefunds_checkbox').prop('checked', true);
20
- $("#elefunds_input").addClass('elefunds_input_active');
21
- roundSumContainer.slideDown();
 
 
 
 
22
 
23
- $('#elefunds').trigger('elefunds_enabled');
24
- enabled = true;
25
- }
 
26
 
27
- function disable() {
28
- $('#elefunds_checkbox').prop('checked', false);
29
- $('#elefunds_input').removeClass('elefunds_input_active');
30
- roundSumContainer.slideUp();
31
 
32
- $('#elefunds').trigger('elefunds_disabled');
33
- enabled = false;
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
- // Change button backgrounds when (un)selected
37
- $('.elefunds_receiver > input').on('change', function() {
38
- //If all are unchecked
39
- if($('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
40
- disable();
41
- } else if(!enabled) {
42
- enable();
43
- }
44
-
45
- $(this).parent().toggleClass('elefunds_receiver_selected');
46
- });
47
-
48
- // When the plugin is (de)activated
49
- $('#elefunds_checkbox').on('change', function() {
50
- if($('#elefunds_checkbox').prop('checked') && $('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
51
- $('#elefunds_bottom').find('input[type="checkbox"]').prop('checked', true);
52
- $('#elefunds_bottom').find('input[type="checkbox"]').parent().toggleClass('elefunds_receiver_selected');
53
- }
54
-
55
- if(!$('#elefunds_checkbox:checked').length) {
56
- roundSumContainer.slideUp();
57
- $('#elefunds').trigger('elefunds_disabled');
58
- enabled = false;
59
-
60
- } else {
61
- if ($('#elefunds_checkbox:checked').length) {
62
- roundSumContainer.slideDown();
63
-
64
- //Store data
65
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
66
- $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
67
-
68
- $('#elefunds').trigger('elefunds_enabled');
69
- enabled = true;
70
- }
71
- }
72
-
73
- $('#elefunds_input').toggleClass('elefunds_input_active');
74
- });
75
-
76
- $('#elefunds_input').keyup(function(e){
77
- if(e.which == 13) e.preventDefault();
78
- });
79
-
80
- // Enable tooltips
81
- $('.tiptip').tipTip({
82
- defaultPosition: toolTipPosition || 'top',
83
- edgeOffset: -12,
84
- delay: 200
85
- });
86
- } //END INIT
87
-
88
- //Check if elefunds has already been created in the view
89
- (function() {
90
- if(parent.hasOwnProperty('options')) {
91
- init(parent.options);
92
- }
93
- })();
94
-
95
- function convertToCent(floatValue) {
96
- var centValue;
97
- var centArray;
98
-
99
- if(floatValue.indexOf(decimal) !== -1) {
100
- centArray = floatValue.split(decimal,2);
101
- } else if(floatValue.indexOf(decimalAlt) !== -1) {
102
- centArray = floatValue.split(decimalAlt,2);
103
- } else {
104
- centArray = [floatValue, 0];
105
- }
106
 
107
- if(centArray[1].length > 2) {
108
- centArray[1] = centArray[1].substr(0,2);
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- while(centArray[1].length < 2) {
112
- centArray[1] += '0';
113
- }
114
 
115
- if(centArray[0].length < 1) {
116
- centArray[0] = 0;
117
- }
118
 
119
- centValue = parseInt(centArray[0], 10)*100 + parseInt(centArray[1], 10);
 
 
120
 
121
- // Check for valid value
122
- if(isNaN(centValue) || centValue < 0) {
123
- centValue = 0;
124
- }
125
 
126
- return centValue;
 
 
127
  }
128
 
129
- // Convert cent value to float currency equivalent
130
- function convertToFloat(centValue) {
131
- var floatValue;
132
-
133
- if(centValue < 10) {
134
- floatValue = '0' + decimal + '0' + centValue;
135
- } else if(centValue < 100) {
136
- floatValue = '0' + decimal + centValue;
137
- } else {
138
- centValue = centValue.toString();
139
- floatValue = centValue.slice(0, -2) + decimal + centValue.slice(-2);
140
- }
141
 
142
- return floatValue;
 
 
 
 
 
 
 
 
 
 
143
  }
144
 
145
- // Update the donation input field
146
- function updateDonation(centValue) {
147
- var floatValue = convertToFloat(centValue);
148
- $('#elefunds_input').val(floatValue);
149
 
150
- render(centValue);
 
 
 
151
 
152
- if(enabled) {
153
- $('#elefunds').trigger('elefunds_donationChange');
154
- }
 
155
  }
 
156
 
157
- function render(centValue) {
158
- // Update the hidden donation input field
159
- // containing the value of the donation in cents
160
- $('#elefunds_donation_cent').val(centValue);
161
 
162
- // Store data
163
- $('#elefunds').data('elefunds-roundSum', convertToFloat(total + centValue));
164
- $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
165
 
166
- //Update round sum
167
- if(roundSum) {
168
- roundSum.html(convertToFloat(total + centValue));
169
- }
170
  }
 
171
 
172
- return {
173
 
174
- init: function(options) {
175
- init(options);
176
- },
177
 
178
- // Decrease the donation sum by 1.00
179
- decreaseDonation: function() {
180
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
181
 
182
- if(centValue > 100) {
183
- centValue = centValue - 100;
184
- updateDonation(centValue);
185
- }
186
 
187
- return centValue;
188
- },
189
 
190
- // Increase the donation sum by 1.00
191
- increaseDonation: function() {
192
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
193
 
194
- centValue = parseInt(centValue, 10) + 100;
195
 
196
- updateDonation(centValue);
197
- return centValue;
198
- },
199
 
200
- // Update the hidden field with the current donation value
201
- donationChange: function(floatValue) {
202
- var centValue = convertToCent(floatValue);
203
- render(centValue);
204
 
205
- var timeHandler = $('#elefunds').data('elefunds-timer');
206
- var now = (new Date()).getTime();
207
- var delay = 800;
208
 
209
- if (typeof(timeHandler) !== 'undefined' && timeHandler !== null) {
210
- if(now - timeHandler.time < delay) {
211
- clearTimeout(timeHandler.timer);
212
- }
213
- }
214
 
215
- if(enabled) {
216
- var timer = setTimeout(function() {
217
- $('#elefunds').trigger('elefunds_donationChange');
218
- }, delay);
219
 
220
- $('#elefunds').data('elefunds-timer', {timer: timer, time: (new Date()).getTime()});
221
- }
222
 
223
- return centValue;
224
- }
225
 
226
- };
227
  }(elefunds || {}, jQuery));
1
  var elefunds = (function(parent, $) {
2
 
3
+ var roundSumContainer, roundSum, currency, decimal, decimalAlt, total, toolTipPosition;
4
+ var enabled = false;
5
+
6
+ function init(options) {
7
+ roundSumContainer = options.roundSumContainer;
8
+ roundSum = options.roundSum;
9
+ currency = options.currency;
10
+ decimal = options.decimal;
11
+ decimalAlt = options.deciamlAlt;
12
+ total = options.total;
13
+ toolTipPosition = options.toolTipPosition;
14
+
15
+ $('#elefunds').data('elefunds-roundSum', convertToFloat(total + parseInt($('#elefunds_donation_cent').val(), 10)));
16
+ $('#elefunds').data('elefunds-donation', {donationCent: parseInt($('#elefunds_donation_cent').val(), 10), donationFloat: convertToFloat(parseInt($('#elefunds_donation_cent').val(), 10))});
17
+
18
+ function enable() {
19
+ $('#elefunds_checkbox').prop('checked', true);
20
+ $("#elefunds_input").addClass('elefunds_input_active');
21
+ roundSumContainer.slideDown();
22
+
23
+ $('#elefunds').trigger('elefunds_enabled');
24
+ enabled = true;
25
+ }
26
 
27
+ function disable() {
28
+ $('#elefunds_checkbox').prop('checked', false);
29
+ $('#elefunds_input').removeClass('elefunds_input_active');
30
+ roundSumContainer.slideUp();
31
 
32
+ $('#elefunds').trigger('elefunds_disabled');
33
+ enabled = false;
34
+ }
 
35
 
36
+ // Change button backgrounds when (un)selected
37
+ $('.elefunds_receiver > input').on('change', function() {
38
+ //If all are unchecked
39
+ if($('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
40
+ disable();
41
+ } else if(!enabled) {
42
+ enable();
43
+ }
44
+
45
+ $(this).parent().toggleClass('elefunds_receiver_selected');
46
+ });
47
+
48
+ // When the plugin is (de)activated
49
+ $('#elefunds_checkbox').on('change', function() {
50
+ if($('#elefunds_checkbox').prop('checked') && $('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
51
+ $('#elefunds_bottom').find('input[type="checkbox"]').prop('checked', true);
52
+ $('#elefunds_bottom').find('input[type="checkbox"]').parent().toggleClass('elefunds_receiver_selected');
53
+ }
54
+
55
+ if(!$('#elefunds_checkbox:checked').length) {
56
+ roundSumContainer.slideUp();
57
+ $('#elefunds').trigger('elefunds_disabled');
58
+ enabled = false;
59
+
60
+ } else {
61
+ if ($('#elefunds_checkbox:checked').length) {
62
+ roundSumContainer.slideDown();
63
 
64
+ //Store data
65
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
66
+ $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
+ $('#elefunds').trigger('elefunds_enabled');
69
+ enabled = true;
70
  }
71
+ }
72
+
73
+ $('#elefunds_input').toggleClass('elefunds_input_active');
74
+ });
75
+
76
+ $('#elefunds_input').keyup(function(e){
77
+ if(e.which == 13) e.preventDefault();
78
+ });
79
+
80
+ // Enable tooltips
81
+ $('.tiptip').tipTip({
82
+ defaultPosition: toolTipPosition || 'top',
83
+ edgeOffset: -12,
84
+ delay: 200
85
+ });
86
+ } //END INIT
87
+
88
+ //Check if elefunds has already been created in the view
89
+ (function() {
90
+ if(parent.hasOwnProperty('options')) {
91
+ init(parent.options);
92
+ }
93
+ })();
94
+
95
+ function convertToCent(floatValue) {
96
+ var centValue;
97
+ var centArray;
98
+
99
+ if(floatValue.indexOf(decimal) !== -1) {
100
+ centArray = floatValue.split(decimal,2);
101
+ } else if(floatValue.indexOf(decimalAlt) !== -1) {
102
+ centArray = floatValue.split(decimalAlt,2);
103
+ } else {
104
+ centArray = [floatValue, 0];
105
+ }
106
 
107
+ if(centArray[1].length > 2) {
108
+ centArray[1] = centArray[1].substr(0,2);
109
+ }
110
 
111
+ while(centArray[1].length < 2) {
112
+ centArray[1] += '0';
113
+ }
114
 
115
+ if(centArray[0].length < 1) {
116
+ centArray[0] = 0;
117
+ }
118
 
119
+ centValue = parseInt(centArray[0], 10)*100 + parseInt(centArray[1], 10);
 
 
 
120
 
121
+ // Check for valid value
122
+ if(isNaN(centValue) || centValue < 0) {
123
+ centValue = 0;
124
  }
125
 
126
+ return centValue;
127
+ }
 
 
 
 
 
 
 
 
 
 
128
 
129
+ // Convert cent value to float currency equivalent
130
+ function convertToFloat(centValue) {
131
+ var floatValue;
132
+
133
+ if(centValue < 10) {
134
+ floatValue = '0' + decimal + '0' + centValue;
135
+ } else if(centValue < 100) {
136
+ floatValue = '0' + decimal + centValue;
137
+ } else {
138
+ centValue = centValue.toString();
139
+ floatValue = centValue.slice(0, -2) + decimal + centValue.slice(-2);
140
  }
141
 
142
+ return floatValue;
143
+ }
 
 
144
 
145
+ // Update the donation input field
146
+ function updateDonation(centValue) {
147
+ var floatValue = convertToFloat(centValue);
148
+ $('#elefunds_input').val(floatValue);
149
 
150
+ render(centValue);
151
+
152
+ if(enabled) {
153
+ $('#elefunds').trigger('elefunds_donationChange');
154
  }
155
+ }
156
 
157
+ function render(centValue) {
158
+ // Update the hidden donation input field
159
+ // containing the value of the donation in cents
160
+ $('#elefunds_donation_cent').val(centValue);
161
 
162
+ // Store data
163
+ $('#elefunds').data('elefunds-roundSum', convertToFloat(total + centValue));
164
+ $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
165
 
166
+ //Update round sum
167
+ if(roundSum) {
168
+ roundSum.html(convertToFloat(total + centValue));
 
169
  }
170
+ }
171
 
172
+ return {
173
 
174
+ init: function(options) {
175
+ init(options);
176
+ },
177
 
178
+ // Decrease the donation sum by 1.00
179
+ decreaseDonation: function() {
180
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
181
 
182
+ if(centValue > 100) {
183
+ centValue = centValue - 100;
184
+ updateDonation(centValue);
185
+ }
186
 
187
+ return centValue;
188
+ },
189
 
190
+ // Increase the donation sum by 1.00
191
+ increaseDonation: function() {
192
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
193
 
194
+ centValue = parseInt(centValue, 10) + 100;
195
 
196
+ updateDonation(centValue);
197
+ return centValue;
198
+ },
199
 
200
+ // Update the hidden field with the current donation value
201
+ donationChange: function(floatValue) {
202
+ var centValue = convertToCent(floatValue);
203
+ render(centValue);
204
 
205
+ var timeHandler = $('#elefunds').data('elefunds-timer');
206
+ var now = (new Date()).getTime();
207
+ var delay = 800;
208
 
209
+ if (typeof(timeHandler) !== 'undefined' && timeHandler !== null) {
210
+ if(now - timeHandler.time < delay) {
211
+ clearTimeout(timeHandler.timer);
212
+ }
213
+ }
214
 
215
+ if(enabled) {
216
+ var timer = setTimeout(function() {
217
+ $('#elefunds').trigger('elefunds_donationChange');
218
+ }, delay);
219
 
220
+ $('#elefunds').data('elefunds-timer', {timer: timer, time: (new Date()).getTime()});
221
+ }
222
 
223
+ return centValue;
224
+ }
225
 
226
+ };
227
  }(elefunds || {}, jQuery));
lib/Elefunds/Template/Shop/ShopConfiguration.php CHANGED
@@ -97,6 +97,8 @@ class Elefunds_Template_Shop_ShopConfiguration extends Elefunds_Configuration_De
97
  }
98
 
99
  /**
 
 
100
  * @return array
101
  */
102
  public function getAvailableThemes() {
@@ -104,6 +106,8 @@ class Elefunds_Template_Shop_ShopConfiguration extends Elefunds_Configuration_De
104
  }
105
 
106
  /**
 
 
107
  * @return array
108
  */
109
  public function getAvailableColors() {
97
  }
98
 
99
  /**
100
+ * Get the available theme options
101
+ *
102
  * @return array
103
  */
104
  public function getAvailableThemes() {
106
  }
107
 
108
  /**
109
+ * Get the available color options
110
+ *
111
  * @return array
112
  */
113
  public function getAvailableColors() {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>lfnds_donation</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/BSD-3-Clause">The BSD 3-Clause License</license>
7
  <channel>community</channel>
@@ -12,29 +12,40 @@
12
  Ihre Kunden werden direkt am Point-of-Sale abgeholt und bekommen die Option zus&#xE4;tzlich zum Warenkorbwert einen weiteren, freiw&#xE4;hlbaren Betrag an bis zu drei renommierte und namhafte Hilfsorganisationen (z.B. Aktion Deutschland Hilft, die SOS-Kinderd&#xF6;rfer weltweit oder den WWF) zu spenden. Im Anschluss daran teilen Ihre Kunden ihr Engagement via Facebook und Twitter und berichten Ihren Freunden von Ihrem Shop.&#xD;
13
  &#xD;
14
  Der Kunde verbindet sein Einkaufserlebnis mit dem guten Gef&#xFC;hl, sich gemeinsam mit Ihnen engagiert zu haben und beh&#xE4;lt Ihren Shop in positiver Erinnerung.&#xD;
15
- Sie erh&#xF6;hen Ihre Kundenbindung und betreiben gleichzeitig effektive Neukundenakquise, da jeder Post in den sozialen Netzwerken eine Verlinkung zu ihrem Shop enth&#xE4;lt. &#xD;
16
- Mit durchschnittlichen Aktivierungszahlen von &#xFC;ber 10% ist das Empfehlungsmarketing par excellence. &#xD;
 
 
17
  &#xD;
18
  Ihre Vorteile:&#xD;
19
  &#xD;
20
  - Emotionalisierung des Kunden beim Kaufabschluss&#xD;
 
21
  - Hoher Bekanntheitsgrad der Hilfsorganisationen&#xD;
 
22
  - Positive Au&#xDF;enwirkung f&#xFC;r soziales Engagement&#xD;
 
23
  - Keine Einschr&#xE4;nkung der Conversion im Checkout&#xD;
 
24
  - Empfehlungsmarketing und Neukundengenerierung&#xD;
 
25
  - Customer Lifetime Value steigt&#xD;
 
26
  - Analyse und Auswertungen durch elefunds&#xD;
27
- - ein nachhaltiges und zeitloses PR &amp; Marketingtool&#xD;
 
 
28
  - einfache Implementierung durch den Plugin Manager&#xD;
29
  &#xD;
30
  Wir unterst&#xFC;tzen Sie:&#xD;
31
- &#xA0; &#xA0;&#x2022; &#xA0; &#xA0;bei der Auswahl der Hilfsorganisationen &#xD;
32
- &#xA0; &#xA0;&#x2022; &#xA0; &#xA0;der Kommunikation des Engagements &#xD;
33
- &#xA0; &#xA0;&#x2022; &#xA0; &#xA0;der Analyse, Abrechnung und dem Spendentransfer&#xD;
34
  &#xD;
35
- Die Spenden werden mit dem Warenkorbwert eingezogen. Wir stellen Ihnen eine Spendenaufstellung zur Verf&#xFC;gung. Sie leiten die Spendengelder einfach an die elefunds Stiftung weiter. Von hier transferieren wir geb&#xFC;ndelt und zu 100% an die Organisationen weiter. Auf monatlicher Basis stellen wir Ihnen diese Analysen und Auswertungen zur Verf&#xFC;gung, damit Sie Ihre Kunden &#xFC;ber die Erfolge und ihr Engagement informieren k&#xF6;nnen. elefunds wird von den Charit&#xE9;s teilweise erfolgsabh&#xE4;ngig verg&#xFC;tet.&#xD;
36
  &#xD;
37
  Helfen Sie uns, die Welt ein bisschen besser zu machen und engagieren Sie sich noch heute mit elefunds und Ihren Kunden f&#xFC;r eine saubere Umwelt, bessere Gesundheits- und Bildungsbedingungen sowie f&#xFC;r den Tierschutz und in der Katastrophenhilfe. &#xD;
 
38
  Laden Sie sich jetzt unser Modul herunter, dass sich in wenigen einfachen Schritten in jeden Onlineshop integrieren l&#xE4;sst.&#xD;
39
  &#xD;
40
  We turn emotions into loyalty!&#xD;
@@ -46,9 +57,9 @@ Tel. +49 (0)30 48 49 24 39&#xD;
46
  Wir bitten zu entschuldigen, dass im Interesse unserer Charitypartner Online Shops, die &#xFC;berwiegend Alkoholika und Zigaretten/Zigarren anbieten, den elefunds Service nicht nutzen k&#xF6;nnen. Grunds&#xE4;tzlich ausgeschlossen sind Online Shops, die Pornographie und Waffen jeglicher Art vertreiben.</description>
47
  <notes>Stable Release</notes>
48
  <authors><author><name>elefunds GmbH</name><user>elefunds</user><email>kontakt@elefunds.de</email></author></authors>
49
- <date>2013-04-17</date>
50
- <time>19:51:46</time>
51
- <contents><target name="magecommunity"><dir name="Lfnds"><dir name="Donation"><dir name="Block"><dir name="Checkout"><file name="Banner.php" hash="2a871f599052b81a75d95315158479c5"/><file name="Socialmedia.php" hash="8de51409d7a36b490ed58653b671e43c"/></dir><dir name="Page"><file name="Head.php" hash="cc83ce329b6c6ebe1e7bcfc301468ee0"/></dir><dir name="Sales"><dir name="Order"><file name="Email.php" hash="ed610afb13caaac6c37bcff9db593601"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8454d67e2f769a0e6505406906860adf"/></dir><dir name="Manager"><file name="SyncManager.php" hash="a01f05a2e50eb07e4942c0b7754f6f54"/></dir><dir name="Model"><file name="Donation.php" hash="dcdb5e5071a91e4f2a5021dd9f16704c"/><dir name="Mysql4"><dir name="Donation"><file name="Collection.php" hash="8187802aca89ac243d256e9d7cb6dfe3"/></dir><file name="Donation.php" hash="382a7f808a334045f6753565f01230ce"/><dir name="Receiver"><file name="Collection.php" hash="992d049163b3a5f75568269fdf2272c5"/></dir><file name="Receiver.php" hash="bb9396fb9bb37941ec5bdbb6239fdcb0"/></dir><file name="Observer.php" hash="a14a03bbf4d6f8ba8c2b2a07cda210dc"/><file name="Receiver.php" hash="9f236002e9a3215f5b3a089c0ce9623a"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="61f94ffc5df0db5238a6e6ee920ff9e6"/><file name="Payment.php" hash="2bf3a981e5b0a2dd92eaadc02fd0bdbd"/><file name="Position.php" hash="ec434ec88b85ca4b664026bfa066bc74"/><file name="Theme.php" hash="1b05ba613d2093ec5fc759a1dfbb1334"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="d56f46626aefb34798273181b4c7b706"/></dir><dir name="etc"><file name="config.xml" hash="779d52f354685c49f235d0e517c5d8e1"/><file name="system.xml" hash="8e2d02a862ce6d6864e826d49cb1a588"/></dir><dir name="sql"><dir name="lfnds_donation_setup"><file name="mysql4-install-1.0.0.php" hash="4d07ca42ae308bd2051df30f3a6cfd63"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lfnds_donation.xml" hash="cdaa84ebe0db2c6662d28e66e8326513"/></dir><dir name="template"><dir name="lfnds"><dir name="donation"><dir name="checkout"><dir name="onepage"><dir name="review"><file name="donation_banner.phtml" hash="9edf0cf0ed946a637bbe4c2a52e18d60"/><file name="donation_banner_after.phtml" hash="24183a92eb517b2e76e8022d34f63edd"/><file name="donation_banner_before.phtml" hash="dcd489753304685d2f89e5e36faa9a82"/></dir><file name="socialmedia.phtml" hash="c7984a5752211f28dfe04fde2d44626f"/></dir></dir><dir name="mail"><file name="description.phtml" hash="788968e611e3777c06130dcfca06dfc0"/></dir><dir name="page"><dir name="html"><file name="head.phtml" hash="ce407ff5715c837d02b1aba7975bf512"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lfnds_Donation.xml" hash="49ee8216f94bda0701b6a5c7b1fb99c3"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Lfnds_Donation.csv" hash="e0a11e265781c36c8efd41da0c63667a"/></dir><dir name="en_US"><file name="Lfnds_Donation.csv" hash="af1ebb72d80a27e2c7f57950ea702c33"/></dir></target><target name="magelib"><dir name="Elefunds"><dir name="Communication"><file name="CurlRequest.php" hash="b0c6ead08836395c5df543c0e35f03c6"/><file name="RestInterface.php" hash="06a1b8fecd4abf1204d48ccbcec6b4b0"/><dir name="certificate"><file name="GandiProSSLCA.pem" hash="215597d5040603701d032e1fa299746e"/></dir></dir><dir name="Configuration"><file name="BaseConfiguration.php" hash="9e481bfc1aa6b3f0e3d5a5f2866518d6"/><file name="ConfigurationInterface.php" hash="3f39571485f8d6bcca49e69d899c86b6"/><file name="DefaultConfiguration.php" hash="e5f749ab07052186746871f20edd554f"/></dir><dir name="Documentation"><file name="PHPGuideBasics.md" hash="da7e409b76ed4c5c5fdf0b966e6c1756"/><file name="PHPGuideConfiguration.md" hash="6ab57ceca89500bda60c6e02c0b20ed0"/><file name="PHPGuideTemplating.md" hash="6682ad669ab3062d8a04ea00a1f17f03"/></dir><dir name="Example"><file name="RawDataConfiguration.php" hash="4716aa63da8f00ec9becec510d7d6709"/><file name="ShopExampleCheckoutSuccessConfiguration.php" hash="f73f364c454adc00bc1974d908660345"/><file name="ShopExampleConfiguration.php" hash="263fd5cfe055f335bc70811da175b0f7"/><file name="rawDataExample.php" hash="ee18d728a678e03afe367a69ba94fe8d"/><file name="shopExample.php" hash="79bf411089286392c0e6753492c6694e"/><file name="shopExampleCheckoutSuccess.php" hash="58f9e9b36975ff23410c01a005a0ebbc"/></dir><dir name="Exception"><file name="ElefundsCommunicationException.php" hash="74213ff89ef5dcc2afd30766f6e49e05"/><file name="ElefundsException.php" hash="8d0e54b748898eab2286bf3fe46ee7ec"/></dir><file name="Facade.php" hash="1fd802e9125298dd9a0c1f43cf59be55"/><dir name="Model"><file name="Donation.php" hash="957c897dca79616f49b30e60e5c8d9a1"/><file name="DonationInterface.php" hash="3969390f2d5898835c4c7c74361cb618"/><file name="Factory.php" hash="5b92a5696db598f1d7e8a943cb407299"/><file name="Receiver.php" hash="5b63f6c8c5068b483923c93fb250137d"/><file name="ReceiverInterface.php" hash="5bc575aea8ca44762e2b353eb86a2e32"/></dir><file name="README.md" hash="f479705edf62b3697aab2d074798aada"/><dir name="Template"><dir name="Shop"><file name="CheckoutConfiguration.php" hash="42afcf507ef01c5b84cace0a6c500370"/><file name="CheckoutSuccess.phtml" hash="564c95ae206d22f50f38126cd1a7e351"/><file name="CheckoutSuccessConfiguration.php" hash="ba8c339472e44e3b8d9d82d6979fbc8a"/><dir name="Css"><file name="color.less" hash="4f18721f13cd8b26dbabcd2c11e844ac"/><file name="elefunds.less" hash="8a2f37d9eeb4cbea4607ccf0f005b370"/><file name="elefunds_dark_blue.min.css" hash="c30bca596ddb732c81fc3941d3ed0f52"/><file name="elefunds_dark_green.min.css" hash="47deea1b8f397eb279b71ba82e89e7e8"/><file name="elefunds_dark_grey.min.css" hash="1f202144f1d68547e07b0bee053ed8cd"/><file name="elefunds_dark_orange.min.css" hash="4660e08faadc310f23ba068020023473"/><file name="elefunds_dark_purple.min.css" hash="4f759f90f164dcc1d447d56a34d376cd"/><file name="elefunds_light_blue.min.css" hash="e39509ea7f014055528616a986b3ddbe"/><file name="elefunds_light_green.min.css" hash="b85854be499f48744f7d4d7bb451fb0a"/><file name="elefunds_light_grey.min.css" hash="f244fdce75ad270d56feeeffd2b5130d"/><file name="elefunds_light_orange.min.css" hash="e264e5d60e73bda315f5de53ce794783"/><file name="elefunds_light_purple.min.css" hash="719e20b305282e2750607ba90fd57687"/><file name="elements.less" hash="7e01dcb516db8e55c7f031f7da0492cf"/></dir><dir name="Helper"><file name="RequestHelper.php" hash="ee3986d02f97144333b56a955dd9595e"/></dir><dir name="Hooks"><file name="ShopHooks.php" hash="9a46f66b1ec8fa37d45e2e15467e5952"/></dir><dir name="Images"><file name="elefunds_item_main.png" hash="b89c61fbdc9c669034a92e9f40ce601b"/><file name="elefunds_item_small.png" hash="f55ceccecc0e76a8d019d8206905db88"/><file name="elefunds_item_thumbnail.png" hash="84bf08fff98b2f8a3f2a1616d73b432c"/></dir><dir name="Javascript"><file name="elefunds.jquery.js" hash="82a0763aee2eeb43a723d808ba7db72e"/><file name="elefunds.jquery.min.js" hash="b89c6146e0cf89f73fbccf15612b4972"/><file name="elefundsTT.jquery.js" hash="86e5170e6eea44cbdc5d44383e0404c5"/></dir><file name="ShopConfiguration.php" hash="227a7f2a7573392f3b8d2027669eb1e0"/><file name="View.phtml" hash="42e6d618bf8cb87ae038446db348104a"/></dir></dir><dir name="Test"><dir name="Unit"><dir name="Configuration"><file name="BaseConfigurationTest.php" hash="ec3513a6a8972be3efdb48318ecd10db"/><file name="DefaultConfigurationTest.php" hash="790159073ffb9f6e25c3ea5df0e0c49b"/></dir><dir name="Exception"><file name="ElefundsExceptionTest.php" hash="79339ebcce32e95aee348b6658c5ed88"/></dir><file name="FacadeTest.php" hash="c06016cbc6fc5aa58d104a47adef13c2"/><dir name="Model"><file name="DonationTest.php" hash="577f18fca07fb2361853daf32247be0c"/><file name="FactoryTest.php" hash="2dbb74d7bf67bbe1cea3f8b1e1b45c8d"/><file name="ReceiverTest.php" hash="a2f0667292bc3525bc571912aa2caad0"/></dir><dir name="View"><file name="BaseViewTest.php" hash="2d5f873cf48fbe7af1e77ce6055c1d8a"/></dir></dir></dir><dir name="View"><file name="BaseView.php" hash="20bfbf8d484c9d3c1874fdf4a6493f0e"/><file name="ViewInterface.php" hash="596f19ed7ca7853062d96a4d1bca67e3"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="lfnds_donation"><dir name="additional"><file name="elefunds_magento_additional.css" hash="73e4f3ae0bb9f6a1588ab9d97fb52333"/><file name="elefunds_magento_onestep_additional.css" hash="69076b25d2a3ac358487d5461ddf0b38"/></dir><file name="elefunds_dark_blue.min.css" hash="c30bca596ddb732c81fc3941d3ed0f52"/><file name="elefunds_dark_green.min.css" hash="47deea1b8f397eb279b71ba82e89e7e8"/><file name="elefunds_dark_grey.min.css" hash="1f202144f1d68547e07b0bee053ed8cd"/><file name="elefunds_dark_orange.min.css" hash="4660e08faadc310f23ba068020023473"/><file name="elefunds_dark_purple.min.css" hash="4f759f90f164dcc1d447d56a34d376cd"/><file name="elefunds_light_blue.min.css" hash="e39509ea7f014055528616a986b3ddbe"/><file name="elefunds_light_green.min.css" hash="b85854be499f48744f7d4d7bb451fb0a"/><file name="elefunds_light_grey.min.css" hash="f244fdce75ad270d56feeeffd2b5130d"/><file name="elefunds_light_orange.min.css" hash="e264e5d60e73bda315f5de53ce794783"/><file name="elefunds_light_purple.min.css" hash="719e20b305282e2750607ba90fd57687"/></dir></dir><dir name="images"><dir name="lfnds_donation"><file name="elefunds_item_main.png" hash="b89c61fbdc9c669034a92e9f40ce601b"/><file name="elefunds_item_small.png" hash="f55ceccecc0e76a8d019d8206905db88"/><file name="elefunds_item_thumbnail.png" hash="84bf08fff98b2f8a3f2a1616d73b432c"/></dir></dir><dir name="js"><dir name="lfnds_donation"><dir name="additional"><file name="elefunds_magento_onepage_additional.js" hash="c2d9635a9acab5a6a6508cfcb8ef8aab"/><file name="elefunds_magento_onestep_additional.js" hash="105b284f2e8c686ef1b02b3ff810f731"/></dir><file name="elefunds.jquery.js" hash="82a0763aee2eeb43a723d808ba7db72e"/><file name="elefunds.jquery.min.js" hash="b89c6146e0cf89f73fbccf15612b4972"/><file name="elefundsTT.jquery.js" hash="86e5170e6eea44cbdc5d44383e0404c5"/><file name="jQueryNoConflict.js" hash="e2060c4e5e5955c824723b13a212d3ec"/><file name="jquery-1.9.1.min.js" hash="397754ba49e9e0cf4e7c190da78dda05"/></dir></dir></dir></dir></dir></target></contents>
52
  <compatible/>
53
  <dependencies><required><php><min>5.3.2</min><max>5.4.14</max></php></required></dependencies>
54
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>lfnds_donation</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/BSD-3-Clause">The BSD 3-Clause License</license>
7
  <channel>community</channel>
12
  Ihre Kunden werden direkt am Point-of-Sale abgeholt und bekommen die Option zus&#xE4;tzlich zum Warenkorbwert einen weiteren, freiw&#xE4;hlbaren Betrag an bis zu drei renommierte und namhafte Hilfsorganisationen (z.B. Aktion Deutschland Hilft, die SOS-Kinderd&#xF6;rfer weltweit oder den WWF) zu spenden. Im Anschluss daran teilen Ihre Kunden ihr Engagement via Facebook und Twitter und berichten Ihren Freunden von Ihrem Shop.&#xD;
13
  &#xD;
14
  Der Kunde verbindet sein Einkaufserlebnis mit dem guten Gef&#xFC;hl, sich gemeinsam mit Ihnen engagiert zu haben und beh&#xE4;lt Ihren Shop in positiver Erinnerung.&#xD;
15
+ &#xD;
16
+ Sie erh&#xF6;hen Ihre Kundenbindung und betreiben gleichzeitig effektive Neukundenakquise, da jeder Post in den sozialen Netzwerken eine Verlinkung zu ihrem Shop enth&#xE4;lt.&#xD;
17
+ &#xD;
18
+ Mit durchschnittlichen Aktivierungszahlen von &#xFC;ber 10% ist das Empfehlungsmarketing par excellence.&#xD;
19
  &#xD;
20
  Ihre Vorteile:&#xD;
21
  &#xD;
22
  - Emotionalisierung des Kunden beim Kaufabschluss&#xD;
23
+ &#xD;
24
  - Hoher Bekanntheitsgrad der Hilfsorganisationen&#xD;
25
+ &#xD;
26
  - Positive Au&#xDF;enwirkung f&#xFC;r soziales Engagement&#xD;
27
+ &#xD;
28
  - Keine Einschr&#xE4;nkung der Conversion im Checkout&#xD;
29
+ &#xD;
30
  - Empfehlungsmarketing und Neukundengenerierung&#xD;
31
+ &#xD;
32
  - Customer Lifetime Value steigt&#xD;
33
+ &#xD;
34
  - Analyse und Auswertungen durch elefunds&#xD;
35
+ &#xD;
36
+ - ein nachhaltiges und zeitloses PR Marketingtool&#xD;
37
+ &#xD;
38
  - einfache Implementierung durch den Plugin Manager&#xD;
39
  &#xD;
40
  Wir unterst&#xFC;tzen Sie:&#xD;
41
+ - bei der Auswahl der Hilfsorganisationen &#xD;
42
+ - der Kommunikation des Engagements&#xD;
43
+ - der Analyse, Abrechnung und dem Spendentransfer&#xD;
44
  &#xD;
45
+ Die Spenden werden mit dem Warenkorbwert eingezogen. Wir stellen Ihnen eine Spendenaufstellung zur Verf&#xFC;gung. Sie leiten die Spendengelder einfach an die elefunds Stiftung weiter. Von hier transferieren wir geb&#xFC;ndelt und zu 100% an die Organisationen weiter. Auf monatlicher Basis stellen wir Ihnen diese Analysen und Auswertungen zur Verf+gung, damit Sie Ihre Kunden &#xFC;ber die Erfolge und ihr Engagement informieren k&#xF6;nnen. elefunds wird von den Charities teilweise erfolgsabh&#xE4;mgig verg&#xFC;tet.&#xD;
46
  &#xD;
47
  Helfen Sie uns, die Welt ein bisschen besser zu machen und engagieren Sie sich noch heute mit elefunds und Ihren Kunden f&#xFC;r eine saubere Umwelt, bessere Gesundheits- und Bildungsbedingungen sowie f&#xFC;r den Tierschutz und in der Katastrophenhilfe. &#xD;
48
+ &#xD;
49
  Laden Sie sich jetzt unser Modul herunter, dass sich in wenigen einfachen Schritten in jeden Onlineshop integrieren l&#xE4;sst.&#xD;
50
  &#xD;
51
  We turn emotions into loyalty!&#xD;
57
  Wir bitten zu entschuldigen, dass im Interesse unserer Charitypartner Online Shops, die &#xFC;berwiegend Alkoholika und Zigaretten/Zigarren anbieten, den elefunds Service nicht nutzen k&#xF6;nnen. Grunds&#xE4;tzlich ausgeschlossen sind Online Shops, die Pornographie und Waffen jeglicher Art vertreiben.</description>
58
  <notes>Stable Release</notes>
59
  <authors><author><name>elefunds GmbH</name><user>elefunds</user><email>kontakt@elefunds.de</email></author></authors>
60
+ <date>2013-05-08</date>
61
+ <time>09:47:03</time>
62
+ <contents><target name="magecommunity"><dir name="Lfnds"><dir name="Donation"><dir name="Block"><dir name="Checkout"><file name="Banner.php" hash="e15c232a98330e4e2be6953261f84d21"/><file name="Socialmedia.php" hash="8de51409d7a36b490ed58653b671e43c"/></dir><dir name="Page"><file name="Head.php" hash="cc83ce329b6c6ebe1e7bcfc301468ee0"/></dir><dir name="Sales"><dir name="Order"><file name="Email.php" hash="ed610afb13caaac6c37bcff9db593601"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="ab26d8dfc150f44659ba123c4f5afe41"/></dir><dir name="Manager"><file name="SyncManager.php" hash="a01f05a2e50eb07e4942c0b7754f6f54"/></dir><dir name="Model"><file name="Donation.php" hash="dcdb5e5071a91e4f2a5021dd9f16704c"/><dir name="Mysql4"><dir name="Donation"><file name="Collection.php" hash="8187802aca89ac243d256e9d7cb6dfe3"/></dir><file name="Donation.php" hash="382a7f808a334045f6753565f01230ce"/><dir name="Receiver"><file name="Collection.php" hash="992d049163b3a5f75568269fdf2272c5"/></dir><file name="Receiver.php" hash="bb9396fb9bb37941ec5bdbb6239fdcb0"/></dir><file name="Observer.php" hash="a14a03bbf4d6f8ba8c2b2a07cda210dc"/><file name="Receiver.php" hash="9f236002e9a3215f5b3a089c0ce9623a"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="61f94ffc5df0db5238a6e6ee920ff9e6"/><file name="Payment.php" hash="2bf3a981e5b0a2dd92eaadc02fd0bdbd"/><file name="Position.php" hash="ec434ec88b85ca4b664026bfa066bc74"/><file name="Theme.php" hash="1b05ba613d2093ec5fc759a1dfbb1334"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="d56f46626aefb34798273181b4c7b706"/></dir><dir name="etc"><file name="config.xml" hash="779d52f354685c49f235d0e517c5d8e1"/><file name="system.xml" hash="8e2d02a862ce6d6864e826d49cb1a588"/></dir><dir name="sql"><dir name="lfnds_donation_setup"><file name="mysql4-install-1.0.0.php" hash="4d07ca42ae308bd2051df30f3a6cfd63"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lfnds_donation.xml" hash="cdaa84ebe0db2c6662d28e66e8326513"/></dir><dir name="template"><dir name="lfnds"><dir name="donation"><dir name="checkout"><dir name="onepage"><dir name="review"><file name="donation_banner.phtml" hash="9edf0cf0ed946a637bbe4c2a52e18d60"/><file name="donation_banner_after.phtml" hash="24183a92eb517b2e76e8022d34f63edd"/><file name="donation_banner_before.phtml" hash="dcd489753304685d2f89e5e36faa9a82"/></dir><file name="socialmedia.phtml" hash="c7984a5752211f28dfe04fde2d44626f"/></dir></dir><dir name="mail"><file name="description.phtml" hash="788968e611e3777c06130dcfca06dfc0"/></dir><dir name="page"><dir name="html"><file name="head.phtml" hash="ce407ff5715c837d02b1aba7975bf512"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lfnds_Donation.xml" hash="49ee8216f94bda0701b6a5c7b1fb99c3"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Lfnds_Donation.csv" hash="e0a11e265781c36c8efd41da0c63667a"/></dir><dir name="en_US"><file name="Lfnds_Donation.csv" hash="af1ebb72d80a27e2c7f57950ea702c33"/></dir></target><target name="magelib"><dir name="Elefunds"><dir name="Communication"><file name="CurlRequest.php" hash="b0c6ead08836395c5df543c0e35f03c6"/><file name="RestInterface.php" hash="06a1b8fecd4abf1204d48ccbcec6b4b0"/><dir name="certificate"><file name="GandiProSSLCA.pem" hash="215597d5040603701d032e1fa299746e"/></dir></dir><dir name="Configuration"><file name="BaseConfiguration.php" hash="9e481bfc1aa6b3f0e3d5a5f2866518d6"/><file name="ConfigurationInterface.php" hash="3f39571485f8d6bcca49e69d899c86b6"/><file name="DefaultConfiguration.php" hash="e5f749ab07052186746871f20edd554f"/></dir><dir name="Documentation"><file name="PHPGuideBasics.md" hash="da7e409b76ed4c5c5fdf0b966e6c1756"/><file name="PHPGuideConfiguration.md" hash="6ab57ceca89500bda60c6e02c0b20ed0"/><file name="PHPGuideTemplating.md" hash="6682ad669ab3062d8a04ea00a1f17f03"/></dir><dir name="Example"><file name="RawDataConfiguration.php" hash="4716aa63da8f00ec9becec510d7d6709"/><file name="ShopExampleCheckoutSuccessConfiguration.php" hash="f73f364c454adc00bc1974d908660345"/><file name="ShopExampleConfiguration.php" hash="263fd5cfe055f335bc70811da175b0f7"/><file name="rawDataExample.php" hash="ee18d728a678e03afe367a69ba94fe8d"/><file name="shopExample.php" hash="79bf411089286392c0e6753492c6694e"/><file name="shopExampleCheckoutSuccess.php" hash="58f9e9b36975ff23410c01a005a0ebbc"/></dir><dir name="Exception"><file name="ElefundsCommunicationException.php" hash="74213ff89ef5dcc2afd30766f6e49e05"/><file name="ElefundsException.php" hash="8d0e54b748898eab2286bf3fe46ee7ec"/></dir><file name="Facade.php" hash="1fd802e9125298dd9a0c1f43cf59be55"/><dir name="Model"><file name="Donation.php" hash="957c897dca79616f49b30e60e5c8d9a1"/><file name="DonationInterface.php" hash="3969390f2d5898835c4c7c74361cb618"/><file name="Factory.php" hash="5b92a5696db598f1d7e8a943cb407299"/><file name="Receiver.php" hash="5b63f6c8c5068b483923c93fb250137d"/><file name="ReceiverInterface.php" hash="5bc575aea8ca44762e2b353eb86a2e32"/></dir><file name="README.md" hash="f479705edf62b3697aab2d074798aada"/><dir name="Template"><dir name="Shop"><file name="CheckoutConfiguration.php" hash="42afcf507ef01c5b84cace0a6c500370"/><file name="CheckoutSuccess.phtml" hash="564c95ae206d22f50f38126cd1a7e351"/><file name="CheckoutSuccessConfiguration.php" hash="ba8c339472e44e3b8d9d82d6979fbc8a"/><dir name="Css"><file name="color.less" hash="4f18721f13cd8b26dbabcd2c11e844ac"/><file name="elefunds.less" hash="b879f32dacf258521b0cf413ea88976c"/><file name="elefunds_dark_blue.min.css" hash="c30bca596ddb732c81fc3941d3ed0f52"/><file name="elefunds_dark_green.min.css" hash="47deea1b8f397eb279b71ba82e89e7e8"/><file name="elefunds_dark_grey.min.css" hash="1f202144f1d68547e07b0bee053ed8cd"/><file name="elefunds_dark_orange.min.css" hash="4660e08faadc310f23ba068020023473"/><file name="elefunds_dark_purple.min.css" hash="4f759f90f164dcc1d447d56a34d376cd"/><file name="elefunds_light_blue.min.css" hash="e39509ea7f014055528616a986b3ddbe"/><file name="elefunds_light_green.min.css" hash="b85854be499f48744f7d4d7bb451fb0a"/><file name="elefunds_light_grey.min.css" hash="f244fdce75ad270d56feeeffd2b5130d"/><file name="elefunds_light_orange.min.css" hash="e264e5d60e73bda315f5de53ce794783"/><file name="elefunds_light_purple.min.css" hash="719e20b305282e2750607ba90fd57687"/><file name="elements.less" hash="7e01dcb516db8e55c7f031f7da0492cf"/></dir><dir name="Helper"><file name="RequestHelper.php" hash="8f13e8e53fc699e3d079c462c06a8930"/></dir><dir name="Hooks"><file name="ShopHooks.php" hash="9a46f66b1ec8fa37d45e2e15467e5952"/></dir><dir name="Images"><file name="elefunds_item_main.png" hash="b89c61fbdc9c669034a92e9f40ce601b"/><file name="elefunds_item_small.png" hash="f55ceccecc0e76a8d019d8206905db88"/><file name="elefunds_item_thumbnail.png" hash="84bf08fff98b2f8a3f2a1616d73b432c"/></dir><dir name="Javascript"><file name="elefunds.jquery.js" hash="030a39ba6432f3423c2fcd0266ccca94"/><file name="elefunds.jquery.min.js" hash="b89c6146e0cf89f73fbccf15612b4972"/><file name="elefundsTT.jquery.js" hash="86e5170e6eea44cbdc5d44383e0404c5"/></dir><file name="ShopConfiguration.php" hash="20f99a48526699e2d4f0d19269c29bf3"/><file name="View.phtml" hash="42e6d618bf8cb87ae038446db348104a"/></dir></dir><dir name="Test"><dir name="Unit"><dir name="Configuration"><file name="BaseConfigurationTest.php" hash="ec3513a6a8972be3efdb48318ecd10db"/><file name="DefaultConfigurationTest.php" hash="790159073ffb9f6e25c3ea5df0e0c49b"/></dir><dir name="Exception"><file name="ElefundsExceptionTest.php" hash="79339ebcce32e95aee348b6658c5ed88"/></dir><file name="FacadeTest.php" hash="c06016cbc6fc5aa58d104a47adef13c2"/><dir name="Model"><file name="DonationTest.php" hash="577f18fca07fb2361853daf32247be0c"/><file name="FactoryTest.php" hash="2dbb74d7bf67bbe1cea3f8b1e1b45c8d"/><file name="ReceiverTest.php" hash="a2f0667292bc3525bc571912aa2caad0"/></dir><dir name="View"><file name="BaseViewTest.php" hash="2d5f873cf48fbe7af1e77ce6055c1d8a"/></dir></dir></dir><dir name="View"><file name="BaseView.php" hash="20bfbf8d484c9d3c1874fdf4a6493f0e"/><file name="ViewInterface.php" hash="596f19ed7ca7853062d96a4d1bca67e3"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="lfnds_donation"><dir name="additional"><file name="elefunds_magento_additional.css" hash="73e4f3ae0bb9f6a1588ab9d97fb52333"/><file name="elefunds_magento_onestep_additional.css" hash="69076b25d2a3ac358487d5461ddf0b38"/></dir><file name="elefunds_dark_blue.min.css" hash="c30bca596ddb732c81fc3941d3ed0f52"/><file name="elefunds_dark_green.min.css" hash="47deea1b8f397eb279b71ba82e89e7e8"/><file name="elefunds_dark_grey.min.css" hash="1f202144f1d68547e07b0bee053ed8cd"/><file name="elefunds_dark_orange.min.css" hash="4660e08faadc310f23ba068020023473"/><file name="elefunds_dark_purple.min.css" hash="4f759f90f164dcc1d447d56a34d376cd"/><file name="elefunds_light_blue.min.css" hash="e39509ea7f014055528616a986b3ddbe"/><file name="elefunds_light_green.min.css" hash="b85854be499f48744f7d4d7bb451fb0a"/><file name="elefunds_light_grey.min.css" hash="f244fdce75ad270d56feeeffd2b5130d"/><file name="elefunds_light_orange.min.css" hash="e264e5d60e73bda315f5de53ce794783"/><file name="elefunds_light_purple.min.css" hash="719e20b305282e2750607ba90fd57687"/></dir></dir><dir name="images"><dir name="lfnds_donation"><file name="elefunds_item_main.png" hash="b89c61fbdc9c669034a92e9f40ce601b"/><file name="elefunds_item_small.png" hash="f55ceccecc0e76a8d019d8206905db88"/><file name="elefunds_item_thumbnail.png" hash="84bf08fff98b2f8a3f2a1616d73b432c"/></dir></dir><dir name="js"><dir name="lfnds_donation"><dir name="additional"><file name="elefunds_magento_onepage_additional.js" hash="c2d9635a9acab5a6a6508cfcb8ef8aab"/><file name="elefunds_magento_onestep_additional.js" hash="105b284f2e8c686ef1b02b3ff810f731"/></dir><file name="elefunds.jquery.js" hash="030a39ba6432f3423c2fcd0266ccca94"/><file name="elefunds.jquery.min.js" hash="b89c6146e0cf89f73fbccf15612b4972"/><file name="elefundsTT.jquery.js" hash="86e5170e6eea44cbdc5d44383e0404c5"/><file name="jQueryNoConflict.js" hash="e2060c4e5e5955c824723b13a212d3ec"/><file name="jquery-1.9.1.min.js" hash="397754ba49e9e0cf4e7c190da78dda05"/></dir></dir></dir></dir></dir></target></contents>
63
  <compatible/>
64
  <dependencies><required><php><min>5.3.2</min><max>5.4.14</max></php></required></dependencies>
65
  </package>
skin/frontend/base/default/js/lfnds_donation/elefunds.jquery.js CHANGED
@@ -1,227 +1,227 @@
1
  var elefunds = (function(parent, $) {
2
 
3
- var roundSumContainer, roundSum, currency, decimal, decimalAlt, total, toolTipPosition;
4
- var enabled = false;
5
-
6
- function init(options) {
7
- roundSumContainer = options.roundSumContainer;
8
- roundSum = options.roundSum;
9
- currency = options.currency;
10
- decimal = options.decimal;
11
- decimalAlt = options.deciamlAlt;
12
- total = options.total;
13
- toolTipPosition = options.toolTipPosition;
14
-
15
- $('#elefunds').data('elefunds-roundSum', convertToFloat(total + parseInt($('#elefunds_donation_cent').val(), 10)));
16
- $('#elefunds').data('elefunds-donation', {donationCent: parseInt($('#elefunds_donation_cent').val(), 10), donationFloat: convertToFloat(parseInt($('#elefunds_donation_cent').val(), 10))});
17
-
18
- function enable() {
19
- $('#elefunds_checkbox').prop('checked', true);
20
- $("#elefunds_input").addClass('elefunds_input_active');
21
- roundSumContainer.slideDown();
 
 
 
 
22
 
23
- $('#elefunds').trigger('elefunds_enabled');
24
- enabled = true;
25
- }
 
26
 
27
- function disable() {
28
- $('#elefunds_checkbox').prop('checked', false);
29
- $('#elefunds_input').removeClass('elefunds_input_active');
30
- roundSumContainer.slideUp();
31
 
32
- $('#elefunds').trigger('elefunds_disabled');
33
- enabled = false;
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
- // Change button backgrounds when (un)selected
37
- $('.elefunds_receiver > input').on('change', function() {
38
- //If all are unchecked
39
- if($('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
40
- disable();
41
- } else if(!enabled) {
42
- enable();
43
- }
44
-
45
- $(this).parent().toggleClass('elefunds_receiver_selected');
46
- });
47
-
48
- // When the plugin is (de)activated
49
- $('#elefunds_checkbox').on('change', function() {
50
- if($('#elefunds_checkbox').prop('checked') && $('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
51
- $('#elefunds_bottom').find('input[type="checkbox"]').prop('checked', true);
52
- $('#elefunds_bottom').find('input[type="checkbox"]').parent().toggleClass('elefunds_receiver_selected');
53
- }
54
-
55
- if(!$('#elefunds_checkbox:checked').length) {
56
- roundSumContainer.slideUp();
57
- $('#elefunds').trigger('elefunds_disabled');
58
- enabled = false;
59
-
60
- } else {
61
- if ($('#elefunds_checkbox:checked').length) {
62
- roundSumContainer.slideDown();
63
-
64
- //Store data
65
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
66
- $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
67
-
68
- $('#elefunds').trigger('elefunds_enabled');
69
- enabled = true;
70
- }
71
- }
72
-
73
- $('#elefunds_input').toggleClass('elefunds_input_active');
74
- });
75
-
76
- $('#elefunds_input').keyup(function(e){
77
- if(e.which == 13) e.preventDefault();
78
- });
79
-
80
- // Enable tooltips
81
- $('.tiptip').tipTip({
82
- defaultPosition: toolTipPosition || 'top',
83
- edgeOffset: -12,
84
- delay: 200
85
- });
86
- } //END INIT
87
-
88
- //Check if elefunds has already been created in the view
89
- (function() {
90
- if(parent.hasOwnProperty('options')) {
91
- init(parent.options);
92
- }
93
- })();
94
-
95
- function convertToCent(floatValue) {
96
- var centValue;
97
- var centArray;
98
-
99
- if(floatValue.indexOf(decimal) !== -1) {
100
- centArray = floatValue.split(decimal,2);
101
- } else if(floatValue.indexOf(decimalAlt) !== -1) {
102
- centArray = floatValue.split(decimalAlt,2);
103
- } else {
104
- centArray = [floatValue, 0];
105
- }
106
 
107
- if(centArray[1].length > 2) {
108
- centArray[1] = centArray[1].substr(0,2);
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- while(centArray[1].length < 2) {
112
- centArray[1] += '0';
113
- }
114
 
115
- if(centArray[0].length < 1) {
116
- centArray[0] = 0;
117
- }
118
 
119
- centValue = parseInt(centArray[0], 10)*100 + parseInt(centArray[1], 10);
 
 
120
 
121
- // Check for valid value
122
- if(isNaN(centValue) || centValue < 0) {
123
- centValue = 0;
124
- }
125
 
126
- return centValue;
 
 
127
  }
128
 
129
- // Convert cent value to float currency equivalent
130
- function convertToFloat(centValue) {
131
- var floatValue;
132
-
133
- if(centValue < 10) {
134
- floatValue = '0' + decimal + '0' + centValue;
135
- } else if(centValue < 100) {
136
- floatValue = '0' + decimal + centValue;
137
- } else {
138
- centValue = centValue.toString();
139
- floatValue = centValue.slice(0, -2) + decimal + centValue.slice(-2);
140
- }
141
 
142
- return floatValue;
 
 
 
 
 
 
 
 
 
 
143
  }
144
 
145
- // Update the donation input field
146
- function updateDonation(centValue) {
147
- var floatValue = convertToFloat(centValue);
148
- $('#elefunds_input').val(floatValue);
149
 
150
- render(centValue);
 
 
 
151
 
152
- if(enabled) {
153
- $('#elefunds').trigger('elefunds_donationChange');
154
- }
 
155
  }
 
156
 
157
- function render(centValue) {
158
- // Update the hidden donation input field
159
- // containing the value of the donation in cents
160
- $('#elefunds_donation_cent').val(centValue);
161
 
162
- // Store data
163
- $('#elefunds').data('elefunds-roundSum', convertToFloat(total + centValue));
164
- $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
165
 
166
- //Update round sum
167
- if(roundSum) {
168
- roundSum.html(convertToFloat(total + centValue));
169
- }
170
  }
 
171
 
172
- return {
173
 
174
- init: function(options) {
175
- init(options);
176
- },
177
 
178
- // Decrease the donation sum by 1.00
179
- decreaseDonation: function() {
180
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
181
 
182
- if(centValue > 100) {
183
- centValue = centValue - 100;
184
- updateDonation(centValue);
185
- }
186
 
187
- return centValue;
188
- },
189
 
190
- // Increase the donation sum by 1.00
191
- increaseDonation: function() {
192
- var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
193
 
194
- centValue = parseInt(centValue, 10) + 100;
195
 
196
- updateDonation(centValue);
197
- return centValue;
198
- },
199
 
200
- // Update the hidden field with the current donation value
201
- donationChange: function(floatValue) {
202
- var centValue = convertToCent(floatValue);
203
- render(centValue);
204
 
205
- var timeHandler = $('#elefunds').data('elefunds-timer');
206
- var now = (new Date()).getTime();
207
- var delay = 800;
208
 
209
- if (typeof(timeHandler) !== 'undefined' && timeHandler !== null) {
210
- if(now - timeHandler.time < delay) {
211
- clearTimeout(timeHandler.timer);
212
- }
213
- }
214
 
215
- if(enabled) {
216
- var timer = setTimeout(function() {
217
- $('#elefunds').trigger('elefunds_donationChange');
218
- }, delay);
219
 
220
- $('#elefunds').data('elefunds-timer', {timer: timer, time: (new Date()).getTime()});
221
- }
222
 
223
- return centValue;
224
- }
225
 
226
- };
227
  }(elefunds || {}, jQuery));
1
  var elefunds = (function(parent, $) {
2
 
3
+ var roundSumContainer, roundSum, currency, decimal, decimalAlt, total, toolTipPosition;
4
+ var enabled = false;
5
+
6
+ function init(options) {
7
+ roundSumContainer = options.roundSumContainer;
8
+ roundSum = options.roundSum;
9
+ currency = options.currency;
10
+ decimal = options.decimal;
11
+ decimalAlt = options.deciamlAlt;
12
+ total = options.total;
13
+ toolTipPosition = options.toolTipPosition;
14
+
15
+ $('#elefunds').data('elefunds-roundSum', convertToFloat(total + parseInt($('#elefunds_donation_cent').val(), 10)));
16
+ $('#elefunds').data('elefunds-donation', {donationCent: parseInt($('#elefunds_donation_cent').val(), 10), donationFloat: convertToFloat(parseInt($('#elefunds_donation_cent').val(), 10))});
17
+
18
+ function enable() {
19
+ $('#elefunds_checkbox').prop('checked', true);
20
+ $("#elefunds_input").addClass('elefunds_input_active');
21
+ roundSumContainer.slideDown();
22
+
23
+ $('#elefunds').trigger('elefunds_enabled');
24
+ enabled = true;
25
+ }
26
 
27
+ function disable() {
28
+ $('#elefunds_checkbox').prop('checked', false);
29
+ $('#elefunds_input').removeClass('elefunds_input_active');
30
+ roundSumContainer.slideUp();
31
 
32
+ $('#elefunds').trigger('elefunds_disabled');
33
+ enabled = false;
34
+ }
 
35
 
36
+ // Change button backgrounds when (un)selected
37
+ $('.elefunds_receiver > input').on('change', function() {
38
+ //If all are unchecked
39
+ if($('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
40
+ disable();
41
+ } else if(!enabled) {
42
+ enable();
43
+ }
44
+
45
+ $(this).parent().toggleClass('elefunds_receiver_selected');
46
+ });
47
+
48
+ // When the plugin is (de)activated
49
+ $('#elefunds_checkbox').on('change', function() {
50
+ if($('#elefunds_checkbox').prop('checked') && $('#elefunds_bottom').find('input[type="checkbox"]:checked').length == 0) {
51
+ $('#elefunds_bottom').find('input[type="checkbox"]').prop('checked', true);
52
+ $('#elefunds_bottom').find('input[type="checkbox"]').parent().toggleClass('elefunds_receiver_selected');
53
+ }
54
+
55
+ if(!$('#elefunds_checkbox:checked').length) {
56
+ roundSumContainer.slideUp();
57
+ $('#elefunds').trigger('elefunds_disabled');
58
+ enabled = false;
59
+
60
+ } else {
61
+ if ($('#elefunds_checkbox:checked').length) {
62
+ roundSumContainer.slideDown();
63
 
64
+ //Store data
65
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
66
+ $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
+ $('#elefunds').trigger('elefunds_enabled');
69
+ enabled = true;
70
  }
71
+ }
72
+
73
+ $('#elefunds_input').toggleClass('elefunds_input_active');
74
+ });
75
+
76
+ $('#elefunds_input').keyup(function(e){
77
+ if(e.which == 13) e.preventDefault();
78
+ });
79
+
80
+ // Enable tooltips
81
+ $('.tiptip').tipTip({
82
+ defaultPosition: toolTipPosition || 'top',
83
+ edgeOffset: -12,
84
+ delay: 200
85
+ });
86
+ } //END INIT
87
+
88
+ //Check if elefunds has already been created in the view
89
+ (function() {
90
+ if(parent.hasOwnProperty('options')) {
91
+ init(parent.options);
92
+ }
93
+ })();
94
+
95
+ function convertToCent(floatValue) {
96
+ var centValue;
97
+ var centArray;
98
+
99
+ if(floatValue.indexOf(decimal) !== -1) {
100
+ centArray = floatValue.split(decimal,2);
101
+ } else if(floatValue.indexOf(decimalAlt) !== -1) {
102
+ centArray = floatValue.split(decimalAlt,2);
103
+ } else {
104
+ centArray = [floatValue, 0];
105
+ }
106
 
107
+ if(centArray[1].length > 2) {
108
+ centArray[1] = centArray[1].substr(0,2);
109
+ }
110
 
111
+ while(centArray[1].length < 2) {
112
+ centArray[1] += '0';
113
+ }
114
 
115
+ if(centArray[0].length < 1) {
116
+ centArray[0] = 0;
117
+ }
118
 
119
+ centValue = parseInt(centArray[0], 10)*100 + parseInt(centArray[1], 10);
 
 
 
120
 
121
+ // Check for valid value
122
+ if(isNaN(centValue) || centValue < 0) {
123
+ centValue = 0;
124
  }
125
 
126
+ return centValue;
127
+ }
 
 
 
 
 
 
 
 
 
 
128
 
129
+ // Convert cent value to float currency equivalent
130
+ function convertToFloat(centValue) {
131
+ var floatValue;
132
+
133
+ if(centValue < 10) {
134
+ floatValue = '0' + decimal + '0' + centValue;
135
+ } else if(centValue < 100) {
136
+ floatValue = '0' + decimal + centValue;
137
+ } else {
138
+ centValue = centValue.toString();
139
+ floatValue = centValue.slice(0, -2) + decimal + centValue.slice(-2);
140
  }
141
 
142
+ return floatValue;
143
+ }
 
 
144
 
145
+ // Update the donation input field
146
+ function updateDonation(centValue) {
147
+ var floatValue = convertToFloat(centValue);
148
+ $('#elefunds_input').val(floatValue);
149
 
150
+ render(centValue);
151
+
152
+ if(enabled) {
153
+ $('#elefunds').trigger('elefunds_donationChange');
154
  }
155
+ }
156
 
157
+ function render(centValue) {
158
+ // Update the hidden donation input field
159
+ // containing the value of the donation in cents
160
+ $('#elefunds_donation_cent').val(centValue);
161
 
162
+ // Store data
163
+ $('#elefunds').data('elefunds-roundSum', convertToFloat(total + centValue));
164
+ $('#elefunds').data('elefunds-donation', {donationCent: centValue, donationFloat: convertToFloat(centValue)});
165
 
166
+ //Update round sum
167
+ if(roundSum) {
168
+ roundSum.html(convertToFloat(total + centValue));
 
169
  }
170
+ }
171
 
172
+ return {
173
 
174
+ init: function(options) {
175
+ init(options);
176
+ },
177
 
178
+ // Decrease the donation sum by 1.00
179
+ decreaseDonation: function() {
180
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
181
 
182
+ if(centValue > 100) {
183
+ centValue = centValue - 100;
184
+ updateDonation(centValue);
185
+ }
186
 
187
+ return centValue;
188
+ },
189
 
190
+ // Increase the donation sum by 1.00
191
+ increaseDonation: function() {
192
+ var centValue = parseInt($('#elefunds_donation_cent').val(), 10);
193
 
194
+ centValue = parseInt(centValue, 10) + 100;
195
 
196
+ updateDonation(centValue);
197
+ return centValue;
198
+ },
199
 
200
+ // Update the hidden field with the current donation value
201
+ donationChange: function(floatValue) {
202
+ var centValue = convertToCent(floatValue);
203
+ render(centValue);
204
 
205
+ var timeHandler = $('#elefunds').data('elefunds-timer');
206
+ var now = (new Date()).getTime();
207
+ var delay = 800;
208
 
209
+ if (typeof(timeHandler) !== 'undefined' && timeHandler !== null) {
210
+ if(now - timeHandler.time < delay) {
211
+ clearTimeout(timeHandler.timer);
212
+ }
213
+ }
214
 
215
+ if(enabled) {
216
+ var timer = setTimeout(function() {
217
+ $('#elefunds').trigger('elefunds_donationChange');
218
+ }, delay);
219
 
220
+ $('#elefunds').data('elefunds-timer', {timer: timer, time: (new Date()).getTime()});
221
+ }
222
 
223
+ return centValue;
224
+ }
225
 
226
+ };
227
  }(elefunds || {}, jQuery));