Mage_Econda - Version 1.6.4

Version Notes

Integration of econda Web Controlling functions.

Download this release

Release Info

Developer ecdev
Extension Mage_Econda
Version 1.6.4
Comparing to
See all releases


Code changes from version 1.6.3 to 1.6.4

app/code/local/Mage/Econda/Block/Econda.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/local/Mage/Econda/Block/EcondaOp.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/local/Mage/Econda/Block/Emos.php CHANGED
@@ -1,759 +1,783 @@
1
- <?php
2
- /*******************************************************************************
3
- * EMOS PHP Bib 2
4
- * $Id: emos.php,v 1.15 2009/11/17 13:24:00 egaiser Exp $
5
- ********************************************************************************
6
-
7
- Copyright (c) 2004 - 2013 ECONDA GmbH Karlsruhe
8
- All rights reserved.
9
-
10
- ECONDA GmbH
11
- Eisenlohrstr. 43
12
- 76135 Karlsruhe
13
- Tel.: 0721/663035-0
14
- Fax.: 0721 663035-10
15
- info@econda.de
16
- www.econda.de
17
-
18
- Redistribution and use in source and binary forms, with or without modification,
19
- are permitted provided that the following conditions are met:
20
-
21
- * Redistributions of source code must retain the above copyright notice,
22
- this list of conditions and the following disclaimer.
23
- * Redistributions in binary form must reproduce the above copyright notice,
24
- this list of conditions and the following disclaimer in the documentation
25
- and/or other materials provided with the distribution.
26
- * Neither the name of the ECONDA GmbH nor the names of its contributors may
27
- be used to endorse or promote products derived from this software without
28
- specific prior written permission.
29
-
30
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33
- IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
34
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
35
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
37
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
-
41
- Changes:
42
-
43
- $Log: emos.php,v $
44
- Revision 1.15 2009/11/17 13:24:00 egaiser
45
- update to handle anchor tags and properties array
46
- added public function trackMode to switch between anchor tags and properties array
47
- added public function debugMode to show debug information
48
- added public function rmvCdata to remove CDATA tag for properties array
49
- added public function addMarker
50
- added public function addTarget
51
- added public function addGoal to set target conversion
52
- added public function trackOnLoad to set automatic request on site load
53
- added public function addScript for additional external Javascript integration
54
- several changes in structural output and string encoding
55
-
56
- Revision 1.14 2009/02/19 09:52:56 unaegele
57
- if public function not exists fix (Removed in Revision 1.15)
58
-
59
- Revision 1.13 2007/08/17 08:40:33 unaegele
60
- added public function addEMOSCustomPageArray
61
- added public function getEMOSCustomPageArray
62
-
63
- Revision 1.12 2007/05/16 08:24:09 unaegele
64
- fix wrong reference to htmlspecialchars_decodephp4()
65
-
66
- Revision 1.11 2007/05/11 07:52:42 unaegele
67
- Update ECONDA Tel Number, prepare Release 20070510
68
-
69
- Revision 1.10 2007/05/11 07:45:53 unaegele
70
- added \n to addSid
71
-
72
- Revision 1.9 2007/05/10 12:19:04 unaegele
73
- Fix php 4 compatibility for the call to htmlspecialchars_decode()
74
- Replace traslated &nbsp;=chr(0xa0) with real spaces
75
-
76
- Revision 1.8 2007/05/04 10:17:31 unaegele
77
- several bugfixes
78
-
79
- Revision 1.7 2007/05/04 09:59:01 unaegele
80
- source code formating
81
-
82
- Revision 1.6 2007/05/04 09:55:12 unaegele
83
- *** empty log message ***
84
-
85
- Revision 1.5 2007/05/04 09:49:08 unaegele
86
- *** empty log message ***
87
-
88
- Revision 1.4 2007/05/04 09:43:48 unaegele
89
- Added methods addSiteID($siteid), addLangID($langid), addPageID($pageID), addCountryID($countryid)
90
-
91
- Revision 1.2 added URL Encoding, Dataformat
92
-
93
- Revision 1.1 added 1st party session tracking
94
-
95
- */
96
-
97
- /* PHP Helper Class to construct a ECONDA Monitor statement for the later
98
- * inclusion in a HTML/PHP Page.
99
- */
100
- class Mage_Econda_Block_Emos
101
- {
102
-
103
- /* Here we store the predefined parameter list */
104
- private $preScript = "";
105
-
106
- /* Here we store the additional script-files */
107
- private $inScript = "";
108
-
109
- /* Here we store additional parameters */
110
- private $postScript = "";
111
-
112
- /* path to the emos2.js script-file */
113
- private $pathToFile = "";
114
-
115
- /* Name of the script-file */
116
- private $scriptFileName = "emos2.js";
117
-
118
- /* session id for 1st party sessions*/
119
- private $emsid = "";
120
-
121
- /* visitor id for 1st partyx visitors */
122
- private $emvid = "";
123
-
124
- /* start js and init properties */
125
- private $jsStart = "<script type=\"text/javascript\">\n//<![CDATA[\n var emospro = {};\n";
126
-
127
- /* end js and fire properties */
128
- private $jsEnd = " if(typeof(window.emosPropertiesEvent) == 'function') {\n window.emosPropertiesEvent(emospro);\n }\n//]]>\n</script>\n";
129
-
130
- /* emos2 inclusion */
131
- private $emosBib = "";
132
-
133
- /* ec_event */
134
- private $ecString = "";
135
-
136
- /* remove cdata */
137
- private $rmvCdata = true;
138
-
139
- /* old style anchor tags*/
140
- private $anchorTags = true;
141
-
142
- /* count basket items */
143
- private $ecCounter = 0;
144
-
145
- /* send request on site load */
146
- private $emosFire = true;
147
-
148
- /* main out */
149
- private $retString = "";
150
-
151
- /* script to stopp request on site load */
152
- private $emosStopRequest = "<script type=\"text/javascript\">\n//<![CDATA[\n window.emosTrackVersion = 2;\n//]]>\n</script>\n";
153
-
154
- /* Debug Mode */
155
- private $emosDebug = 0;
156
-
157
- /* CSS Style and Div for Debug */
158
- private $debugOut = "\n<script type=\"text/javascript\">\n function hideEcondaDebug(){\n document.getElementById(\"econdaDebugTxt\").style.visibility = \"hidden\";\n document.getElementById(\"econdaDebugStat\").style.visibility = \"hidden\";\n document.getElementById(\"econdaDebug\").style.width = \"35px\";\n document.getElementById(\"econdaDebug\").style.height = \"15px\";\n document.getElementById(\"econdaDebugShow\").style.visibility = \"visible\";\n }\n function showEcondaDebug(){\n document.getElementById(\"econdaDebugTxt\").style.visibility = \"visible\";\n document.getElementById(\"econdaDebugStat\").style.visibility = \"visible\";\n document.getElementById(\"econdaDebug\").style.width = \"auto\";\n document.getElementById(\"econdaDebug\").style.height = \"auto\";\n document.getElementById(\"econdaDebugShow\").style.visibility = \"hidden\";\n }\n function econdaDebug(dbtxt){\n document.getElementById(\"econdaDebugTxt\").innerHTML = dbtxt;\n }\n</script>\n<div name=\"econdaDebug\" id=\"econdaDebug\" style=\"position:absolute; visibility: visible; font-family: sans-serif; font-size: 12px; color: #FFFFFF; background-color: #0088B2; left: 0px; top: 0px; width: auto; height: auto; padding: 3px; z-index: 1000;\">\n<textarea style=\"min-width: 760px; font-family: sans-serif; font-size: 13px; background-color: #FFFFFF;\" name=\"econdaDebugTxt\" id=\"econdaDebugTxt\" wrap=\"off\" cols=\"120\" rows=\"22\">\n";
159
- private $debugEnd = "</textarea>\n<div name=\"econdaDebugStat\" id=\"econdaDebugStat\" style=\"cursor: pointer; padding: 1px;\" align=\"right\" onClick=\"javascript:hideEcondaDebug();\">[econda debug mode]&nbsp;&nbsp;HIDE</div>\n<div name=\"econdaDebugShow\" id=\"econdaDebugShow\" style=\"position: absolute; visibility: hidden; top: 0px; left: 0px; cursor: pointer; z-index: 1001;\" onClick=\"javascript:showEcondaDebug();\">SHOW</div>\n</div>\n\n";
160
-
161
- public function __construct()
162
- {
163
- }
164
-
165
- /*
166
- * add compatibility public function for php < 5.1
167
- */
168
- public function htmlspecialchars_decode_php4($str)
169
- {
170
- return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
171
- }
172
-
173
- /* Constructor
174
- * Sets the path to the emos2.js js-bib and prepares the later calls
175
- *
176
- * @param $pathToFile The path to the js-bib (/js)
177
- * @param $scriptFileName If we want to have annother Filename than
178
- * emos2.js you can set it here
179
- */
180
- public function emos($pathToFile , $scriptFileName = "emos2.js")
181
- {
182
- $this->pathToFile = $pathToFile;
183
- if(substr($this->pathToFile,-8) == 'emos2.js') {
184
- $this->pathToFile = substr($this->pathToFile,0,strlen($this->pathToFile)-8);
185
- }
186
- if(substr($this->pathToFile,-1) != '/') {
187
- $this->pathToFile .= '/';
188
- }
189
- $this->scriptFileName = $scriptFileName;
190
- if($this->scriptFileName == '' || $this->scriptFileName == null) {
191
- $this->scriptFileName = 'emos2.js';
192
- }
193
- $this->prepareInScript();
194
- }
195
-
196
- /* formats data/values/params by eliminating named entities and xml-entities */
197
- public function emos_ItemFormat($item)
198
- {
199
- $item->productID = $this->emos_DataFormat($item->productID);
200
- $item->productName = $this->emos_DataFormat($item->productName);
201
- $item->productGroup = $this->emos_DataFormat($item->productGroup);
202
- $item->variant1 = $this->emos_DataFormat($item->variant1);
203
- $item->variant2 = $this->emos_DataFormat($item->variant2);
204
- $item->variant3 = $this->emos_DataFormat($item->variant3);
205
- return $item;
206
- }
207
-
208
- /* formats data/values/params by eliminating named entities and xml-entities */
209
- public function emos_DataFormat($str)
210
- {
211
- if($this->anchorTags) {
212
- $str = urldecode($str);
213
- //2007-05-10 Fix incompatibility with php4
214
- if (function_exists('htmlspecialchars_decode')) {
215
- $str = htmlspecialchars_decode($str, ENT_QUOTES);
216
- } else {
217
- $str = $this->htmlspecialchars_decode_php4($str);
218
- }
219
- $str = html_entity_decode($str);
220
- $str = strip_tags($str);
221
- $str = trim($str);
222
-
223
- //2007-05-10 replace translated &nbsp; with spaces
224
- $nbsp = chr(0xa0);
225
- $str = str_replace($nbsp, " ", $str);
226
- $str = str_replace("\"", "", $str);
227
- $str = str_replace("'", "", $str);
228
- $str = str_replace("%", "", $str);
229
- $str = str_replace(",", "", $str);
230
- $str = str_replace(";", "", $str);
231
- /* remove unnecessary white spaces */
232
- while (true) {
233
- $str_temp = $str;
234
- $str = str_replace(" ", " ", $str);
235
-
236
- if ($str == $str_temp) {
237
- break;
238
- }
239
- }
240
- $str = str_replace(" / ", "/", $str);
241
- $str = str_replace(" /", "/", $str);
242
- $str = str_replace("/ ", "/", $str);
243
- $str = substr($str, 0, 254);
244
- $str = rawurlencode($str);
245
- }
246
- else {
247
- $str = utf8_decode($str);
248
- $str = html_entity_decode($str);
249
- $str = strip_tags($str);
250
- $str = utf8_encode($str);
251
- $str = addcslashes($str, "\\\"'&<>]");
252
- $str = trim($str);
253
- }
254
- return $str;
255
- }
256
-
257
- /* set the 1st party session id */
258
- public function setSid($sid = "")
259
- {
260
- if ($sid) {
261
- $this->emsid = $sid;
262
- $this->appendPreScript("<a name=\"emos_sid\" title=\"$sid\"></a>\n");
263
- }
264
- }
265
-
266
- /* set the 1st party visitor id */
267
- public function setVid($vid = "")
268
- {
269
- if ($vid) {
270
- $this->emvid = $vid;
271
- $this->appendPreScript("<a name=\"emos_vid\" title=\"$vid\"></a>");
272
- }
273
- }
274
-
275
- /* nothing to do. */
276
- public function prettyPrint()
277
- {
278
- }
279
-
280
- /* Concatenates the current command and the $inScript */
281
- public function appendInScript($stringToAppend)
282
- {
283
- $this->inScript .= $stringToAppend;
284
- }
285
-
286
- /* Concatenates the current command and the $proScript */
287
- public function appendPreScript($stringToAppend)
288
- {
289
- $this->preScript .= $stringToAppend;
290
- }
291
-
292
- /* Concatenates the current command and the $postScript */
293
- public function appendPostScript($stringToAppend)
294
- {
295
- $this->postScript .= $stringToAppend;
296
- }
297
-
298
- /* returns the emos2.js inclusion */
299
- public function prepareInScript()
300
- {
301
- $this->emosBib .= "<script type=\"text/javascript\" src=\"".$this->pathToFile.$this->scriptFileName."\"></script>\n";
302
- }
303
-
304
- /* returns a javascript extra inclusion at defined position */
305
- public function addScript($script)
306
- {
307
- $this->emosBib .= "<script type=\"text/javascript\" src=\"".$script."\"></script>\n";
308
- }
309
-
310
- /* returns the whole statement */
311
- public function toString()
312
- {
313
- if(!$this->anchorTags){
314
- if($this->ecString != ""){
315
- $this->ecString = substr($this->ecString,0,-2)."\n";
316
- $this->ecString .= " ];\n";
317
- }
318
- else {
319
- $this->ecString = "";
320
- }
321
- if(!$this->emosFire) {
322
- $this->jsEnd = str_replace(" if(typeof(window.emosPropertiesEvent) == 'function') {\n window.emosPropertiesEvent(emospro);\n }\n","",$this->jsEnd);
323
- }
324
- if($this->rmvCdata) {
325
- $this->jsStart = str_replace("\n//<![CDATA[","",$this->jsStart);
326
- $this->jsEnd = str_replace("//]]>\n","",$this->jsEnd);
327
- $this->emosStopRequest = str_replace("\n//<![CDATA[","",$this->emosStopRequest);
328
- $this->emosStopRequest = str_replace("\n//]]>","",$this->emosStopRequest);
329
- }
330
- }
331
- if($this->anchorTags) { //anchor tags
332
- if($this->ecString != "") {
333
- $this->ecString .= "//]]>\n</script>\n";
334
- }
335
- if($this->rmvCdata) {
336
- $this->preScript = str_replace("\n//<![CDATA[","",$this->preScript);
337
- $this->preScript = str_replace("\n//]]>","",$this->preScript);
338
- $this->ecString = str_replace("\n//<![CDATA[","",$this->ecString);
339
- $this->ecString = str_replace("\n//]]>","",$this->ecString);
340
- }
341
- if($this->emosDebug > 0) {
342
- $this->retString .= $this->debugOut . $this->preScript . $this->postScript . $this->ecString . $this->emosBib . $this->inScript . $this->debugEnd;
343
- }
344
- if($this->emosDebug == 0 || $this->emosDebug == 2){
345
- $this->retString .= $this->preScript . $this->postScript . $this->ecString . $this->emosBib . $this->inScript;
346
- }
347
- }
348
- else {
349
- if($this->emosDebug > 0) {
350
- $this->retString .= $this->debugOut . $this->emosStopRequest . $this->emosBib . $this->jsStart . $this->preScript . $this->ecString . $this->postScript . $this->jsEnd . $this->inScript . $this->debugEnd;
351
- }
352
- if($this->emosDebug == 0 || $this->emosDebug == 2){
353
- $this->retString .= $this->emosStopRequest . $this->emosBib . $this->jsStart . $this->preScript . $this->ecString . $this->postScript . $this->jsEnd . $this->inScript;
354
- }
355
- }
356
- return $this->retString;
357
- }
358
-
359
- /* constructs anchor tags */
360
- public function getAnchorTag($title = "", $rel = "", $rev = "")
361
- {
362
- $rel = $this->emos_DataFormat($rel);
363
- $rev = $this->emos_DataFormat($rev);
364
- $anchor = "<a name=\"emos_name\" title=\"".$title."\" rel=\"".$rel."\" rev=\"".$rev."\"></a>\n";
365
- return $anchor;
366
- }
367
-
368
- /* constructs a js property event */
369
- public function getProperty($title = "", $rel = "", $rev = "", $brck = false)
370
- {
371
- if($this->anchorTags) {
372
- return $this->getAnchorTag($title, $rel, $rev);
373
- }
374
- $rel = $this->emos_DataFormat($rel);
375
- $rev = $this->emos_DataFormat($rev);
376
- $setRev = false;
377
- if(trim($rev) != "") {
378
- $setRev = true;
379
- }
380
- $out = " emospro.".$title." = ";
381
- if($setRev) {
382
- $out .= "[[";
383
- }
384
- $out .= "'".$rel."'";
385
- if($setRev) {
386
- if($brck) {
387
- $out .= "]]";
388
- }
389
- else {
390
- $out .= ",'".$rev."']]";
391
- }
392
- }
393
- $out .= ";\n";
394
- return $out;
395
- }
396
-
397
- /* adds a property event for marker tracking
398
- * emospro.marker = content
399
- */
400
- public function addMarker($content)
401
- {
402
- $this->appendPreScript($this->getProperty("marker", $content, "", true));
403
- }
404
-
405
- /* adds a property event for target tracking
406
- * emospro.Target = [[group,name]]
407
- */
408
- public function addTarget($group, $name)
409
- {
410
- $this->appendPreScript($this->getProperty("Target", $group, $name));
411
- }
412
-
413
- /* adds a property event for target conversion
414
- * emospro.cGoal = 0 or 1
415
- */
416
- public function addGoal($goal)
417
- {
418
- $this->appendPreScript($this->getProperty("cGoal", $goal));
419
- }
420
-
421
- /* remove CDATA from script */
422
- public function addCdata()
423
- {
424
- $this->rmvCdata = false;
425
- }
426
-
427
- /* set tracking mode
428
- * 2 = js properties, everything else = anchor tags
429
- */
430
- public function trackMode($mode)
431
- {
432
- if($mode == 2) {
433
- $this->anchorTags = false;
434
- }
435
- }
436
-
437
- /* send request on site load
438
- * true or false
439
- */
440
- public function trackOnLoad($send)
441
- {
442
- $this->emosFire = $send;
443
- }
444
-
445
- /* show debug informations inside a container
446
- * 1 = debug only, 2 = debug and send request
447
- */
448
- public function debugMode($send)
449
- {
450
- $this->emosDebug = $send;
451
- }
452
-
453
- /* adds a property event for content tracking
454
- * emospro.content = content
455
- */
456
- public function addContent($content)
457
- {
458
- $this->appendPreScript($this->getProperty("content", $content));
459
- }
460
-
461
- /* adds a property event for orderprocess tracking
462
- * emospro.orderProcess = processStep
463
- */
464
- public function addOrderProcess($processStep)
465
- {
466
- $this->appendPreScript($this->getProperty("orderProcess", $processStep));
467
- }
468
-
469
- /* adds a property event for siteid tracking
470
- * emospro.siteid = siteid
471
- */
472
- public function addSiteID($siteid)
473
- {
474
- $this->appendPreScript($this->getProperty("siteid", $siteid));
475
- }
476
-
477
- /* adds a property event for language tracking
478
- * emospro.langid = langid
479
- */
480
- public function addLangID($langid)
481
- {
482
- $this->appendPreScript($this->getProperty("langid", $langid));
483
- }
484
-
485
- /* adds a property event for country tracking
486
- * emospro.countryid = countryid
487
- */
488
- public function addCountryID($countryid)
489
- {
490
- $this->appendPreScript($this->getProperty("countryid", $countryid));
491
- }
492
-
493
- /* adds a property event for pageid tracking
494
- * emospro.pageid = pageID
495
- */
496
- public function addPageID($pageID)
497
- {
498
- if(!$this->anchorTags) {
499
- $this->appendPreScript($this->getProperty("pageId", $pageID));
500
- }
501
- else {
502
- $this->appendPreScript("<script type=\"text/javascript\">\n//<![CDATA[\n window.emosPageId = '$pageID';\n//]]>\n</script>\n");
503
- }
504
- }
505
-
506
- /* adds a property event for search tracking
507
- * emospro.search = [[queryString,numberOfHits]]
508
- */
509
- public function addSearch($queryString, $numberOfHits)
510
- {
511
- $this->appendPreScript($this->getProperty("search", $queryString, $numberOfHits));
512
- }
513
-
514
- /* adds a property event for registration tracking
515
- * The userid gets a md5() to fullfilll german datenschutzgesetz
516
- * emospro.register = [[userID,result]] //(result: 0=true,1=false)
517
- */
518
- public function addRegister($userID, $result)
519
- {
520
- $this->appendPreScript($this->getProperty("register", md5($userID), $result));
521
- }
522
-
523
- /* adds a property event for login tracking
524
- * The userid gets a md5() to fullfilll german datenschutzgesetz
525
- * emospro.login = [[userID,result]] //(result: 0=true,1=false)
526
- */
527
- public function addLogin($userID, $result)
528
- {
529
- $this->appendPreScript($this->getProperty("login", md5($userID), $result));
530
- }
531
-
532
- /* adds a property event for contact tracking
533
- * emospro.scontact = contactType
534
- */
535
- public function addContact($contactType)
536
- {
537
- $this->appendPreScript($this->getProperty("scontact", $contactType));
538
- }
539
-
540
- /* adds a property event for download tracking
541
- * emospro.download = downloadLabel
542
- */
543
- public function addDownload($downloadLabel)
544
- {
545
- $this->appendPreScript($this->getProperty("download", $downloadLabel));
546
- }
547
-
548
- /* constructs a emosECPageArray of given $event type
549
- * @param $item a instance of class EMOS_Item
550
- * @param $event Type of this event ("add","c_rmv","c_add")
551
- */
552
- public function getEmosECPageArray($item, $event)
553
- {
554
- if(!$this->anchorTags){
555
- $item = $this->emos_ItemFormat($item);
556
- if($this->ecString == "") {
557
- $this->ecString .= " emospro.ec_Event = [\n";
558
- }
559
- $this->ecString .= " ['".$event."','".$item->productID."','".$item->productName."','".$item->price."','".$item->productGroup."','".$item->quantity."','".$item->variant1."','".$item->variant2."','".$item->variant3."'],\n";
560
- }
561
- else { //anchor tags
562
- $item = $this->emos_ItemFormat($item);
563
- if($this->ecCounter == 0) {
564
- $this->ecString .= "<script type=\"text/javascript\">\n//<![CDATA[\n";
565
- $this->ecString .= " var emosECPageArray = new Array();\n";
566
- }
567
- $this->ecString .=" emosECPageArray[".$this->ecCounter."] = new Array();\n" .
568
- " emosECPageArray[".$this->ecCounter."]['event'] = '".$event."';\n" .
569
- " emosECPageArray[".$this->ecCounter."]['id'] = '".$item->productID."';\n" .
570
- " emosECPageArray[".$this->ecCounter."]['name'] = '".$item->productName."';\n" .
571
- " emosECPageArray[".$this->ecCounter."]['preis'] = '".$item->price."';\n" .
572
- " emosECPageArray[".$this->ecCounter."]['group'] = '".$item->productGroup."';\n" .
573
- " emosECPageArray[".$this->ecCounter."]['anzahl'] = '".$item->quantity."';\n" .
574
- " emosECPageArray[".$this->ecCounter."]['var1'] = '".$item->variant1."';\n" .
575
- " emosECPageArray[".$this->ecCounter."]['var2'] = '".$item->variant2."';\n" .
576
- " emosECPageArray[".$this->ecCounter."]['var3'] = '".$item->variant3."';\n" ;
577
- $this->ecCounter += 1;
578
- }
579
- }
580
-
581
- /* adds a detailView to the preScript */
582
- public function addDetailView($item)
583
- {
584
- $this->getEmosECPageArray($item, "view");
585
- }
586
-
587
- /* adds a removeFromBasket to the preScript */
588
- public function removeFromBasket($item)
589
- {
590
- $this->getEmosECPageArray($item, "c_rmv");
591
- }
592
-
593
- /* adds a addToBasket to the preScript */
594
- public function addToBasket($item)
595
- {
596
- $this->getEmosECPageArray($item, "c_add");
597
- }
598
-
599
- /* constructs a emosBillingPageArray of given $event type */
600
- public function addEmosBillingPageArray($billingID = "", $customerNumber = "", $total = 0, $country = "", $cip = "", $city = "")
601
- {
602
- $out = $this->getEmosBillingArray($billingID, $customerNumber, $total, $country, $cip, $city, "emosBillingPageArray");
603
- $this->appendPreScript($out);
604
- }
605
-
606
- /* gets a emosBillingArray for a given ArrayName
607
- * md5 the customer id to to fullfilll german datenschutzgesetz
608
- */
609
- public function getEmosBillingArray($billingID = "", $customerNumber = "", $total = 0, $country = "", $cip = "", $city = "", $arrayName = "")
610
- {
611
- $customerNumber = md5($customerNumber);
612
- $country = $this->emos_DataFormat($country);
613
- $cip = $this->emos_DataFormat($cip);
614
- $city = $this->emos_DataFormat($city);
615
-
616
- /* get a / separated location string for later drilldown */
617
- $ort = "";
618
- if ($country) {
619
- $ort .= "$country/";
620
- }
621
- if ($cip) {
622
- $ort .= substr($cip, 0, 1) . "/" . substr($cip, 0, 2) . "/";
623
- }
624
- if ($city) {
625
- $ort .= "$city/";
626
- }
627
- if ($cip) {
628
- $ort .= $cip;
629
- }
630
- if(!$this->anchorTags){
631
- $out = " emospro.billing = [['".$billingID."','".$customerNumber."','".$ort."','".$total."']];\n";
632
- }
633
- else { //anchor tags
634
- $out = "<script type=\"text/javascript\">\n//<![CDATA[\n" .
635
- " var ".$arrayName." = new Array();\n" .
636
- " ".$arrayName."[0] = '".$billingID."';\n" .
637
- " ".$arrayName."[1] = '".$customerNumber."';\n" .
638
- " ".$arrayName."[2] = '".$ort."';\n" .
639
- " ".$arrayName."[3] = '".$total."';\n" .
640
- "//]]>\n</script>\n";
641
- }
642
- return $out;
643
- }
644
-
645
- /* adds a emosBasket Page Array*/
646
- public function addEmosBasketPageArray($basket)
647
- {
648
- if(!$this->anchorTags){
649
- $this->getEmosBasketPageArray($basket, "buy");
650
- }
651
- else {
652
- $this->getEmosBasketPageArray($basket, "emosBasketPageArray");
653
- }
654
- }
655
-
656
- /* returns a emosBasketArray of given Name */
657
- public function getEmosBasketPageArray($basket, $event)
658
- {
659
- if(!$this->anchorTags){
660
- if($this->ecString == "") {
661
- $this->ecString .= " emospro.ec_Event = [\n";
662
- }
663
- foreach ($basket as $item) {
664
- $item = $this->emos_ItemFormat($item);
665
- $this->ecString .= " ['".$event."','".$item->productID."','".$item->productName."','".$item->price."','".$item->productGroup."','".$item->quantity."','".$item->variant1."','".$item->variant2."','".$item->variant3."'],\n";
666
- }
667
- }
668
- else {
669
- $out = "<script type=\"text/javascript\">\n//<![CDATA[\n" .
670
- " var ".$event." = new Array();\n";
671
- $count = 0;
672
- foreach ($basket as $item) {
673
- $item = $this->emos_ItemFormat($item);
674
- $out .= " ".$event."[".$count."]=new Array();\n";
675
- $out .= " ".$event."[".$count."][0]='".$item->productID."';\n";
676
- $out .= " ".$event."[".$count."][1]='".$item->productName."';\n";
677
- $out .= " ".$event."[".$count."][2]='".$item->price."';\n";
678
- $out .= " ".$event."[".$count."][3]='".$item->productGroup."';\n";
679
- $out .= " ".$event."[".$count."][4]='".$item->quantity."';\n";
680
- $out .= " ".$event."[".$count."][5]='".$item->variant1."';\n";
681
- $out .= " ".$event."[".$count."][6]='".$item->variant2."';\n";
682
- $out .= " ".$event."[".$count."][7]='".$item->variant3."';\n";
683
- $count++;
684
- }
685
- $out .= "//]]>\n</script>\n";
686
- $this->appendPreScript($out);
687
- }
688
- }
689
-
690
- /*
691
- * constructs a generic EmosCustomPageArray from a PHP Array
692
- */
693
- public function getEmosCustomPageArray($listOfValues)
694
- {
695
- $out = "";
696
- if(!$this->anchorTags){
697
- $counter = 0;
698
- foreach ($listOfValues as $value) {
699
- $value = $this->emos_DataFormat($value);
700
- if($counter == 0) {
701
- $out .= " emospro.".$value." = [[";
702
- }
703
- else {
704
- $out .= "'".$value."',";
705
- }
706
- $counter += 1;
707
- }
708
- $out = substr($out,0,-1);
709
- $out .= "]];\n";
710
- }
711
- else {
712
- $out .= "<script type=\"text/javascript\">\n";
713
- $out .= " window.emosCustomPageArray = [";
714
- foreach ($listOfValues as $value) {
715
- $value = $this->emos_DataFormat($value);
716
- $out .= "'".$value."',";
717
- }
718
- $out = substr($out,0,-1);
719
- $out .= "];\n";
720
- $out .= "</script>\n";
721
- }
722
- $this->appendPreScript($out);
723
- }
724
-
725
- /* constructs a emosCustomPageArray with 8 Variables and shortcut
726
- * @param $cType Type of this event - shortcut in config
727
- * @param $cVar1 first variable of this custom event (optional)
728
- * @param $cVar2 second variable of this custom event (optional)
729
- * @param $cVar3 third variable of this custom event (optional)
730
- * @param $cVar4 fourth variable of this custom event (optional)
731
- * @param $cVar5 fifth variable of this custom event (optional)
732
- * @param $cVar6 sixth variable of this custom event (optional)
733
- * @param $cVar7 seventh variable of this custom event (optional)
734
- * @param $cVar8 eighth variable of this custom event (optional)
735
- * @param $cVar9 nineth variable of this custom event (optional)
736
- * @param $cVar10 tenth variable of this custom event (optional)
737
- * @param $cVar11 eleventh variable of this custom event (optional)
738
- * @param $cVar12 twelveth variable of this custom event (optional)
739
- * @param $cVar13 thirteenth variable of this custom event (optional)
740
- */
741
- public function addEmosCustomPageArray($cType=0, $cVar1=0, $cVar2=0, $cVar3=0, $cVar4=0, $cVar5=0, $cVar6=0, $cVar7=0, $cVar8=0, $cVar9=0, $cVar10=0, $cVar11=0, $cVar12=0, $cVar13=0)
742
- {
743
- $values[0] = $cType;
744
- if($cVar1) $values[1] = $cVar1;
745
- if($cVar2) $values[2] = $cVar2;
746
- if($cVar3) $values[3] = $cVar3;
747
- if($cVar4) $values[4] = $cVar4;
748
- if($cVar5) $values[5] = $cVar5;
749
- if($cVar6) $values[6] = $cVar6;
750
- if($cVar7) $values[7] = $cVar7;
751
- if($cVar8) $values[8] = $cVar8;
752
- if($cVar9) $values[9] = $cVar9;
753
- if($cVar10) $values[10] = $cVar10;
754
- if($cVar11) $values[11] = $cVar11;
755
- if($cVar12) $values[12] = $cVar12;
756
- if($cVar13) $values[13] = $cVar13;
757
- $this->getEmosCustomPageArray($values);
758
- }
759
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*******************************************************************************
3
+ * EMOS PHP Bib 2
4
+ * $Id: emos.php,v 1.15 2009/11/17 13:24:00 egaiser Exp $
5
+ ********************************************************************************
6
+
7
+ Copyright (c) 2004 - 2015 ECONDA GmbH Karlsruhe
8
+ All rights reserved.
9
+
10
+ ECONDA GmbH
11
+ Eisenlohrstr. 43
12
+ 76135 Karlsruhe
13
+ Tel.: 0721/663035-0
14
+ Fax.: 0721 663035-10
15
+ info@econda.de
16
+ www.econda.de
17
+
18
+ Redistribution and use in source and binary forms, with or without modification,
19
+ are permitted provided that the following conditions are met:
20
+
21
+ * Redistributions of source code must retain the above copyright notice,
22
+ this list of conditions and the following disclaimer.
23
+ * Redistributions in binary form must reproduce the above copyright notice,
24
+ this list of conditions and the following disclaimer in the documentation
25
+ and/or other materials provided with the distribution.
26
+ * Neither the name of the ECONDA GmbH nor the names of its contributors may
27
+ be used to endorse or promote products derived from this software without
28
+ specific prior written permission.
29
+
30
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33
+ IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
34
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
35
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
37
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
+
41
+ Changes:
42
+
43
+ $Log: emos.php,v $
44
+ Revision 1.15 2009/11/17 13:24:00 egaiser
45
+ update to handle anchor tags and properties array
46
+ added public function trackMode to switch between anchor tags and properties array
47
+ added public function debugMode to show debug information
48
+ added public function rmvCdata to remove CDATA tag for properties array
49
+ added public function addMarker
50
+ added public function addTarget
51
+ added public function addGoal to set target conversion
52
+ added public function trackOnLoad to set automatic request on site load
53
+ added public function addScript for additional external Javascript integration
54
+ several changes in structural output and string encoding
55
+
56
+ Revision 1.14 2009/02/19 09:52:56 unaegele
57
+ if public function not exists fix (Removed in Revision 1.15)
58
+
59
+ Revision 1.13 2007/08/17 08:40:33 unaegele
60
+ added public function addEMOSCustomPageArray
61
+ added public function getEMOSCustomPageArray
62
+
63
+ Revision 1.12 2007/05/16 08:24:09 unaegele
64
+ fix wrong reference to htmlspecialchars_decodephp4()
65
+
66
+ Revision 1.11 2007/05/11 07:52:42 unaegele
67
+ Update ECONDA Tel Number, prepare Release 20070510
68
+
69
+ Revision 1.10 2007/05/11 07:45:53 unaegele
70
+ added \n to addSid
71
+
72
+ Revision 1.9 2007/05/10 12:19:04 unaegele
73
+ Fix php 4 compatibility for the call to htmlspecialchars_decode()
74
+ Replace traslated &nbsp;=chr(0xa0) with real spaces
75
+
76
+ Revision 1.8 2007/05/04 10:17:31 unaegele
77
+ several bugfixes
78
+
79
+ Revision 1.7 2007/05/04 09:59:01 unaegele
80
+ source code formating
81
+
82
+ Revision 1.6 2007/05/04 09:55:12 unaegele
83
+ *** empty log message ***
84
+
85
+ Revision 1.5 2007/05/04 09:49:08 unaegele
86
+ *** empty log message ***
87
+
88
+ Revision 1.4 2007/05/04 09:43:48 unaegele
89
+ Added methods addSiteID($siteid), addLangID($langid), addPageID($pageID), addCountryID($countryid)
90
+
91
+ Revision 1.2 added URL Encoding, Dataformat
92
+
93
+ Revision 1.1 added 1st party session tracking
94
+
95
+ */
96
+
97
+ /* PHP Helper Class to construct a ECONDA Monitor statement for the later
98
+ * inclusion in a HTML/PHP Page.
99
+ */
100
+ class Mage_Econda_Block_Emos
101
+ {
102
+
103
+ /* Here we store the predefined parameter list */
104
+ private $preScript = "";
105
+
106
+ /* Here we store the additional script-files */
107
+ private $inScript = "";
108
+
109
+ /* Here we store additional parameters */
110
+ private $postScript = "";
111
+
112
+ /* path to the emos2.js script-file */
113
+ private $pathToFile = "";
114
+
115
+ /* Name of the script-file */
116
+ private $scriptFileName = "emos2.js";
117
+
118
+ /* session id for 1st party sessions*/
119
+ private $emsid = "";
120
+
121
+ /* visitor id for 1st partyx visitors */
122
+ private $emvid = "";
123
+
124
+ /* start js and init properties */
125
+ private $jsStart = "<script type=\"text/javascript\">\n//<![CDATA[\n var emospro = {};\n";
126
+
127
+ /* end js and fire properties */
128
+ private $jsEnd = " if(typeof(window.emosPropertiesEvent) == 'function') {\n window.emosPropertiesEvent(emospro);\n }\n//]]>\n</script>\n";
129
+
130
+ /* emos2 inclusion */
131
+ private $emosBib = "";
132
+
133
+ /* ec_event */
134
+ private $ecString = "";
135
+
136
+ /* remove cdata */
137
+ private $rmvCdata = true;
138
+
139
+ /* old style anchor tags*/
140
+ private $anchorTags = true;
141
+
142
+ /* count basket items */
143
+ private $ecCounter = 0;
144
+
145
+ /* send request on site load */
146
+ private $emosFire = true;
147
+
148
+ /* main out */
149
+ private $retString = "";
150
+
151
+ /* script to stopp request on site load */
152
+ private $emosStopRequest = "<script type=\"text/javascript\">\n//<![CDATA[\n window.emosTrackVersion = 2;\n//]]>\n</script>\n";
153
+
154
+ /* Debug Mode */
155
+ private $emosDebug = 0;
156
+
157
+ /* CSS Style and Div for Debug */
158
+ private $debugOut = "\n<script type=\"text/javascript\">\n function hideEcondaDebug(){\n document.getElementById(\"econdaDebugTxt\").style.visibility = \"hidden\";\n document.getElementById(\"econdaDebugStat\").style.visibility = \"hidden\";\n document.getElementById(\"econdaDebug\").style.width = \"35px\";\n document.getElementById(\"econdaDebug\").style.height = \"15px\";\n document.getElementById(\"econdaDebugShow\").style.visibility = \"visible\";\n }\n function showEcondaDebug(){\n document.getElementById(\"econdaDebugTxt\").style.visibility = \"visible\";\n document.getElementById(\"econdaDebugStat\").style.visibility = \"visible\";\n document.getElementById(\"econdaDebug\").style.width = \"auto\";\n document.getElementById(\"econdaDebug\").style.height = \"auto\";\n document.getElementById(\"econdaDebugShow\").style.visibility = \"hidden\";\n }\n function econdaDebug(dbtxt){\n document.getElementById(\"econdaDebugTxt\").innerHTML = dbtxt;\n }\n</script>\n<div name=\"econdaDebug\" id=\"econdaDebug\" style=\"position:absolute; visibility: visible; font-family: sans-serif; font-size: 12px; color: #FFFFFF; background-color: #0088B2; left: 0px; top: 0px; width: auto; height: auto; padding: 3px; z-index: 1000;\">\n<textarea style=\"min-width: 760px; font-family: sans-serif; font-size: 13px; background-color: #FFFFFF;\" name=\"econdaDebugTxt\" id=\"econdaDebugTxt\" wrap=\"off\" cols=\"120\" rows=\"22\">\n";
159
+ private $debugEnd = "</textarea>\n<div name=\"econdaDebugStat\" id=\"econdaDebugStat\" style=\"cursor: pointer; padding: 1px;\" align=\"right\" onClick=\"javascript:hideEcondaDebug();\">[econda debug mode]&nbsp;&nbsp;HIDE</div>\n<div name=\"econdaDebugShow\" id=\"econdaDebugShow\" style=\"position: absolute; visibility: hidden; top: 0px; left: 0px; cursor: pointer; z-index: 1001;\" onClick=\"javascript:showEcondaDebug();\">SHOW</div>\n</div>\n\n";
160
+
161
+ public function __construct()
162
+ {
163
+ }
164
+
165
+ /*
166
+ * add compatibility public function for php < 5.1
167
+ */
168
+ public function htmlspecialchars_decode_php4($str)
169
+ {
170
+ return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
171
+ }
172
+
173
+ /* Constructor
174
+ * Sets the path to the emos2.js js-bib and prepares the later calls
175
+ *
176
+ * @param $pathToFile The path to the js-bib (/js)
177
+ * @param $scriptFileName If we want to have annother Filename than
178
+ * emos2.js you can set it here
179
+ */
180
+ public function emos($pathToFile , $scriptFileName = "emos2.js")
181
+ {
182
+ $this->pathToFile = $pathToFile;
183
+ if(substr($this->pathToFile,-8) == 'emos2.js') {
184
+ $this->pathToFile = substr($this->pathToFile,0,strlen($this->pathToFile)-8);
185
+ }
186
+ if(substr($this->pathToFile,-1) != '/') {
187
+ $this->pathToFile .= '/';
188
+ }
189
+ $this->scriptFileName = $scriptFileName;
190
+ if($this->scriptFileName == '' || $this->scriptFileName == null) {
191
+ $this->scriptFileName = 'emos2.js';
192
+ }
193
+ $this->prepareInScript();
194
+ }
195
+
196
+ /* formats data/values/params by eliminating named entities and xml-entities */
197
+ public function emos_ItemFormat($item)
198
+ {
199
+ $item->productID = $this->emos_DataFormat($item->productID);
200
+ $item->productSku = $this->emos_DataFormat($item->productSku);
201
+ $item->productName = $this->emos_DataFormat($item->productName);
202
+ $item->productGroup = $this->emos_DataFormat($item->productGroup);
203
+ $item->variant1 = $this->emos_DataFormat($item->variant1);
204
+ $item->variant2 = $this->emos_DataFormat($item->variant2);
205
+ $item->variant3 = $this->emos_DataFormat($item->variant3);
206
+ return $item;
207
+ }
208
+
209
+ /* formats data/values/params by eliminating named entities and xml-entities */
210
+ public function emos_DataFormat($str)
211
+ {
212
+ if($this->anchorTags) {
213
+ $str = urldecode($str);
214
+ //2007-05-10 Fix incompatibility with php4
215
+ if (function_exists('htmlspecialchars_decode')) {
216
+ $str = htmlspecialchars_decode($str, ENT_QUOTES);
217
+ } else {
218
+ $str = $this->htmlspecialchars_decode_php4($str);
219
+ }
220
+ $str = html_entity_decode($str);
221
+ $str = strip_tags($str);
222
+ $str = trim($str);
223
+
224
+ //2007-05-10 replace translated &nbsp; with spaces
225
+ $nbsp = chr(0xa0);
226
+ $str = str_replace($nbsp, " ", $str);
227
+ $str = str_replace("\"", "", $str);
228
+ $str = str_replace("'", "", $str);
229
+ $str = str_replace("%", "", $str);
230
+ $str = str_replace(",", "", $str);
231
+ $str = str_replace(";", "", $str);
232
+ /* remove unnecessary white spaces */
233
+ while (true) {
234
+ $str_temp = $str;
235
+ $str = str_replace(" ", " ", $str);
236
+
237
+ if ($str == $str_temp) {
238
+ break;
239
+ }
240
+ }
241
+ $str = str_replace(" / ", "/", $str);
242
+ $str = str_replace(" /", "/", $str);
243
+ $str = str_replace("/ ", "/", $str);
244
+ $str = substr($str, 0, 254);
245
+ $str = rawurlencode($str);
246
+ }
247
+ else {
248
+ $str = utf8_decode($str);
249
+ $str = html_entity_decode($str);
250
+ $str = strip_tags($str);
251
+ $str = utf8_encode($str);
252
+ $str = trim($str);
253
+ }
254
+ return $str;
255
+ }
256
+
257
+ /* set the 1st party session id */
258
+ public function setSid($sid = "")
259
+ {
260
+ if ($sid) {
261
+ $this->emsid = $sid;
262
+ $this->appendPreScript("<a name=\"emos_sid\" title=\"$sid\"></a>\n");
263
+ }
264
+ }
265
+
266
+ /* set the 1st party visitor id */
267
+ public function setVid($vid = "")
268
+ {
269
+ if ($vid) {
270
+ $this->emvid = $vid;
271
+ $this->appendPreScript("<a name=\"emos_vid\" title=\"$vid\"></a>");
272
+ }
273
+ }
274
+
275
+ /* nothing to do. */
276
+ public function prettyPrint()
277
+ {
278
+ }
279
+
280
+ /* Concatenates the current command and the $inScript */
281
+ public function appendInScript($stringToAppend)
282
+ {
283
+ $this->inScript .= $stringToAppend;
284
+ }
285
+
286
+ /* Concatenates the current command and the $proScript */
287
+ public function appendPreScript($stringToAppend)
288
+ {
289
+ $this->preScript .= $stringToAppend;
290
+ }
291
+
292
+ /* Concatenates the current command and the $postScript */
293
+ public function appendPostScript($stringToAppend)
294
+ {
295
+ $this->postScript .= $stringToAppend;
296
+ }
297
+
298
+ /* returns the emos2.js inclusion */
299
+ public function prepareInScript()
300
+ {
301
+ $this->emosBib .= "<script type=\"text/javascript\" src=\"".$this->pathToFile.$this->scriptFileName."\"></script>\n";
302
+ }
303
+
304
+ /* returns a javascript extra inclusion at defined position */
305
+ public function addScript($script)
306
+ {
307
+ $this->emosBib .= "<script type=\"text/javascript\" src=\"".$script."\"></script>\n";
308
+ }
309
+
310
+ /* returns the whole statement */
311
+ public function toString()
312
+ {
313
+ if(!$this->anchorTags){
314
+ if($this->ecString != ""){
315
+ $this->ecString = substr($this->ecString,0,-2)."\n";
316
+ $this->ecString .= " ];\n";
317
+ }
318
+ else {
319
+ $this->ecString = "";
320
+ }
321
+ if(!$this->emosFire) {
322
+ $this->jsEnd = str_replace(" if(typeof(window.emosPropertiesEvent) == 'function') {\n window.emosPropertiesEvent(emospro);\n }\n","",$this->jsEnd);
323
+ }
324
+ if($this->rmvCdata) {
325
+ $this->jsStart = str_replace("\n//<![CDATA[","",$this->jsStart);
326
+ $this->jsEnd = str_replace("//]]>\n","",$this->jsEnd);
327
+ $this->emosStopRequest = str_replace("\n//<![CDATA[","",$this->emosStopRequest);
328
+ $this->emosStopRequest = str_replace("\n//]]>","",$this->emosStopRequest);
329
+ }
330
+ }
331
+ if($this->anchorTags) { //anchor tags
332
+ if($this->ecString != "") {
333
+ $this->ecString .= "//]]>\n</script>\n";
334
+ }
335
+ if($this->rmvCdata) {
336
+ $this->preScript = str_replace("\n//<![CDATA[","",$this->preScript);
337
+ $this->preScript = str_replace("\n//]]>","",$this->preScript);
338
+ $this->ecString = str_replace("\n//<![CDATA[","",$this->ecString);
339
+ $this->ecString = str_replace("\n//]]>","",$this->ecString);
340
+ }
341
+ if($this->emosDebug > 0) {
342
+ $this->retString .= $this->debugOut . $this->preScript . $this->postScript . $this->ecString . $this->emosBib . $this->inScript . $this->debugEnd;
343
+ }
344
+ if($this->emosDebug == 0 || $this->emosDebug == 2){
345
+ $this->retString .= $this->preScript . $this->postScript . $this->ecString . $this->emosBib . $this->inScript;
346
+ }
347
+ }
348
+ else {
349
+ if($this->emosDebug > 0) {
350
+ $this->retString .= $this->debugOut . $this->emosStopRequest . $this->emosBib . $this->jsStart . $this->preScript . $this->ecString . $this->postScript . $this->jsEnd . $this->inScript . $this->debugEnd;
351
+ }
352
+ if($this->emosDebug == 0 || $this->emosDebug == 2){
353
+ $this->retString .= $this->emosStopRequest . $this->emosBib . $this->jsStart . $this->preScript . $this->ecString . $this->postScript . $this->jsEnd . $this->inScript;
354
+ }
355
+ }
356
+ return $this->retString;
357
+ }
358
+
359
+ /* constructs anchor tags */
360
+ public function getAnchorTag($title = "", $rel = "", $rev = "")
361
+ {
362
+ $rel = $this->emos_DataFormat($rel);
363
+ $rev = $this->emos_DataFormat($rev);
364
+ $anchor = "<a name=\"emos_name\" title=\"".$title."\" rel=\"".$rel."\" rev=\"".$rev."\"></a>\n";
365
+ return $anchor;
366
+ }
367
+
368
+ /* constructs a js property event */
369
+ public function getProperty($title = "", $rel = "", $rev = "", $brck = false)
370
+ {
371
+ if($this->anchorTags) {
372
+ return $this->getAnchorTag($title, $rel, $rev);
373
+ }
374
+ $rel = $this->emos_DataFormat($rel);
375
+ $rev = $this->emos_DataFormat($rev);
376
+ $setRev = false;
377
+ if(trim($rev) != "") {
378
+ $setRev = true;
379
+ }
380
+ $out = " emospro.".$title." = ";
381
+ if($setRev) {
382
+ $out .= "[[";
383
+ }
384
+ $out .= "'".$rel."'";
385
+ if($setRev) {
386
+ if($brck) {
387
+ $out .= "]]";
388
+ }
389
+ else {
390
+ $out .= ",'".$rev."']]";
391
+ }
392
+ }
393
+ $out .= ";\n";
394
+
395
+ return $out;
396
+ }
397
+
398
+ /* adds a property event for marker tracking
399
+ * emospro.marker = content
400
+ */
401
+ public function addMarker($content)
402
+ {
403
+ $this->appendPreScript($this->getProperty("marker", $content, "", true));
404
+ }
405
+
406
+ /* adds a property event for target tracking
407
+ * emospro.Target = [[group,name]]
408
+ */
409
+ public function addTarget($group, $name)
410
+ {
411
+ $this->appendPreScript($this->getProperty("Target", $group, $name));
412
+ }
413
+
414
+ /* adds a property event for target conversion
415
+ * emospro.cGoal = 0 or 1
416
+ */
417
+ public function addGoal($goal)
418
+ {
419
+ $this->appendPreScript($this->getProperty("cGoal", $goal));
420
+ }
421
+
422
+ /* remove CDATA from script */
423
+ public function addCdata()
424
+ {
425
+ $this->rmvCdata = false;
426
+ }
427
+
428
+ /* set tracking mode
429
+ * 2 = js properties, everything else = anchor tags
430
+ */
431
+ public function trackMode($mode)
432
+ {
433
+ if($mode == 2) {
434
+ $this->anchorTags = false;
435
+ }
436
+ }
437
+
438
+ /* send request on site load
439
+ * true or false
440
+ */
441
+ public function trackOnLoad($send)
442
+ {
443
+ $this->emosFire = $send;
444
+ }
445
+
446
+ /* show debug informations inside a container
447
+ * 1 = debug only, 2 = debug and send request
448
+ */
449
+ public function debugMode($send)
450
+ {
451
+ $this->emosDebug = $send;
452
+ }
453
+
454
+ /* adds a property event for content tracking
455
+ * emospro.content = content
456
+ */
457
+ public function addContent($content)
458
+ {
459
+ $this->appendPreScript($this->getProperty("content", $content));
460
+ }
461
+
462
+ /* adds a property event for orderprocess tracking
463
+ * emospro.orderProcess = processStep
464
+ */
465
+ public function addOrderProcess($processStep)
466
+ {
467
+ $this->appendPreScript($this->getProperty("orderProcess", $processStep));
468
+ }
469
+
470
+ /* adds a property event for siteid tracking
471
+ * emospro.siteid = siteid
472
+ */
473
+ public function addSiteID($siteid)
474
+ {
475
+ $this->appendPreScript($this->getProperty("siteid", $siteid));
476
+ }
477
+
478
+ /* adds a property event for language tracking
479
+ * emospro.langid = langid
480
+ */
481
+ public function addLangID($langid)
482
+ {
483
+ $this->appendPreScript($this->getProperty("langid", $langid));
484
+ }
485
+
486
+ /* adds a property event for country tracking
487
+ * emospro.countryid = countryid
488
+ */
489
+ public function addCountryID($countryid)
490
+ {
491
+ $this->appendPreScript($this->getProperty("countryid", $countryid));
492
+ }
493
+
494
+ /* adds a property event for pageid tracking
495
+ * emospro.pageid = pageID
496
+ */
497
+ public function addPageID($pageID)
498
+ {
499
+ if(!$this->anchorTags) {
500
+ $this->appendPreScript($this->getProperty("pageId", $pageID));
501
+ }
502
+ else {
503
+ $this->appendPreScript("<script type=\"text/javascript\">\n//<![CDATA[\n window.emosPageId = '$pageID';\n//]]>\n</script>\n");
504
+ }
505
+ }
506
+
507
+ /* adds a property event for search tracking
508
+ * emospro.search = [[queryString,numberOfHits]]
509
+ */
510
+ public function addSearch($queryString, $numberOfHits)
511
+ {
512
+ $this->appendPreScript($this->getProperty("search", $queryString, $numberOfHits));
513
+ }
514
+
515
+ /* adds a property event for registration tracking
516
+ * The userid gets a md5() to fullfilll german datenschutzgesetz
517
+ * emospro.register = [[userID,result]] //(result: 0=true,1=false)
518
+ */
519
+ public function addRegister($userID, $result)
520
+ {
521
+ $this->appendPreScript($this->getProperty("register", md5($userID), $result));
522
+ }
523
+
524
+ /* adds a property event for login tracking
525
+ * The userid gets a md5() to fullfilll german datenschutzgesetz
526
+ * emospro.login = [[userID,result]] //(result: 0=true,1=false)
527
+ */
528
+ public function addLogin($userID, $result)
529
+ {
530
+ $this->appendPreScript($this->getProperty("login", md5($userID), $result));
531
+ }
532
+
533
+ /* adds a property event for contact tracking
534
+ * emospro.scontact = contactType
535
+ */
536
+ public function addContact($contactType)
537
+ {
538
+ $this->appendPreScript($this->getProperty("scontact", $contactType));
539
+ }
540
+
541
+ /* adds a property event for download tracking
542
+ * emospro.download = downloadLabel
543
+ */
544
+ public function addDownload($downloadLabel)
545
+ {
546
+ $this->appendPreScript($this->getProperty("download", $downloadLabel));
547
+ }
548
+
549
+ /* constructs a emosECPageArray of given $event type
550
+ * @param $item a instance of class EMOS_Item
551
+ * @param $event Type of this event ("add","c_rmv","c_add")
552
+ */
553
+ public function getEmosECPageArray($item, $event)
554
+ {
555
+ if(!$this->anchorTags){
556
+ if($this->ecString == "") {
557
+ $this->ecString .= " emospro.ec_Event = [\n";
558
+ }
559
+ $this->ecString .= sprintf("%s, ", json_encode(
560
+ $this->getProductEventTrackingData($item, $event)
561
+ ));
562
+ }
563
+ else { //anchor tags
564
+ $item = $this->emos_ItemFormat($item);
565
+ if($this->ecCounter == 0) {
566
+ $this->ecString .= "<script type=\"text/javascript\">\n//<![CDATA[\n";
567
+ $this->ecString .= " var emosECPageArray = new Array();\n";
568
+ }
569
+ $this->ecString .=" emosECPageArray[".$this->ecCounter."] = new Array();\n" .
570
+ " emosECPageArray[".$this->ecCounter."]['event'] = '".$event."';\n" .
571
+ " emosECPageArray[".$this->ecCounter."]['id'] = '".$item->productID."';\n" .
572
+ // " emosECPageArray[".$this->ecCounter."]['sku'] = '".$item->productSku."';\n" .
573
+ " emosECPageArray[".$this->ecCounter."]['name'] = '".$item->productName."';\n" .
574
+ " emosECPageArray[".$this->ecCounter."]['preis'] = '".$item->price."';\n" .
575
+ " emosECPageArray[".$this->ecCounter."]['group'] = '".$item->productGroup."';\n" .
576
+ " emosECPageArray[".$this->ecCounter."]['anzahl'] = '".$item->quantity."';\n" .
577
+ " emosECPageArray[".$this->ecCounter."]['var1'] = '".$item->variant1."';\n" .
578
+ " emosECPageArray[".$this->ecCounter."]['var2'] = '".$item->variant2."';\n" .
579
+ " emosECPageArray[".$this->ecCounter."]['var3'] = '".$item->variant3."';\n" ;
580
+ $this->ecCounter += 1;
581
+ }
582
+ }
583
+
584
+ /* adds a detailView to the preScript */
585
+ public function addDetailView($item)
586
+ {
587
+ $this->getEmosECPageArray($item, "view");
588
+ }
589
+
590
+ /* adds a removeFromBasket to the preScript */
591
+ public function removeFromBasket($item)
592
+ {
593
+ $this->getEmosECPageArray($item, "c_rmv");
594
+ }
595
+
596
+ /* adds a addToBasket to the preScript */
597
+ public function addToBasket($item)
598
+ {
599
+ $this->getEmosECPageArray($item, "c_add");
600
+ }
601
+
602
+ /* constructs a emosBillingPageArray of given $event type */
603
+ public function addEmosBillingPageArray($billingID = "", $customerNumber = "", $total = 0, $country = "", $cip = "", $city = "")
604
+ {
605
+ $out = $this->getEmosBillingArray($billingID, $customerNumber, $total, $country, $cip, $city, "emosBillingPageArray");
606
+ $this->appendPreScript($out);
607
+ }
608
+
609
+ /* gets a emosBillingArray for a given ArrayName
610
+ * md5 the customer id to to fullfilll german datenschutzgesetz
611
+ */
612
+ public function getEmosBillingArray($billingID = "", $customerNumber = "", $total = 0, $country = "", $cip = "", $city = "", $arrayName = "")
613
+ {
614
+ $customerNumber = md5($customerNumber);
615
+ $country = $this->emos_DataFormat($country);
616
+ $cip = $this->emos_DataFormat($cip);
617
+ $city = $this->emos_DataFormat($city);
618
+
619
+ /* get a / separated location string for later drilldown */
620
+ $ort = "";
621
+ if ($country) {
622
+ $ort .= "$country/";
623
+ }
624
+ if ($cip) {
625
+ $ort .= substr($cip, 0, 1) . "/" . substr($cip, 0, 2) . "/";
626
+ }
627
+ if ($city) {
628
+ $ort .= "$city/";
629
+ }
630
+ if ($cip) {
631
+ $ort .= $cip;
632
+ }
633
+ if(!$this->anchorTags){
634
+ $out = " emospro.billing = [['".$billingID."','".$customerNumber."','".$ort."','".$total."']];\n";
635
+ }
636
+ else { //anchor tags
637
+ $out = "<script type=\"text/javascript\">\n//<![CDATA[\n" .
638
+ " var ".$arrayName." = new Array();\n" .
639
+ " ".$arrayName."[0] = '".$billingID."';\n" .
640
+ " ".$arrayName."[1] = '".$customerNumber."';\n" .
641
+ " ".$arrayName."[2] = '".$ort."';\n" .
642
+ " ".$arrayName."[3] = '".$total."';\n" .
643
+ "//]]>\n</script>\n";
644
+ }
645
+
646
+ return $out;
647
+ }
648
+
649
+ /* adds a emosBasket Page Array*/
650
+ public function addEmosBasketPageArray($basket)
651
+ {
652
+ if(!$this->anchorTags){
653
+ $this->getEmosBasketPageArray($basket, "buy");
654
+ }
655
+ else {
656
+ $this->getEmosBasketPageArray($basket, "emosBasketPageArray");
657
+ }
658
+ }
659
+
660
+ /**
661
+ * Accepts item object an returns an assoc array as required in JavaScript output
662
+ */
663
+ private function getProductEventTrackingData($eventData, $eventName) {
664
+ $cleanEventData = $this->emos_ItemFormat($eventData);
665
+ return array(
666
+ 'type' => $eventName,
667
+ 'pid' => $cleanEventData->productID,
668
+ 'sku' => "".$cleanEventData->productSku,
669
+ 'name' => $cleanEventData->productName,
670
+ 'group' => $cleanEventData->productGroup,
671
+ 'price' => (float) $cleanEventData->price,
672
+ 'count' => (int) $cleanEventData->quantity,
673
+ 'var1' => $cleanEventData->variant1 === 'NULL' ? null : $cleanEventData->variant1,
674
+ 'var2' => $cleanEventData->variant2 === 'NULL' ? null : $cleanEventData->variant2,
675
+ 'var3' => $cleanEventData->variant3 === 'NULL' ? null : $cleanEventData->variant3,
676
+ );
677
+ }
678
+
679
+ /* returns a emosBasketArray of given Name */
680
+ public function getEmosBasketPageArray($basket, $event)
681
+ {
682
+ if(!$this->anchorTags){
683
+ if($this->ecString == "") {
684
+ $this->ecString .= " emospro.ec_Event = [\n";
685
+ }
686
+ foreach ($basket as $item) {
687
+ $this->ecString .= sprintf("%s, \n", json_encode(
688
+ $this->getProductEventTrackingData($item, $event))
689
+ );
690
+ }
691
+ }
692
+ else {
693
+ $out = "<script type=\"text/javascript\">\n//<![CDATA[\n" .
694
+ " var ".$event." = new Array();\n";
695
+ $count = 0;
696
+ foreach ($basket as $item) {
697
+ $item = $this->emos_ItemFormat($item);
698
+ $out .= " ".$event."[".$count."]=new Array();\n";
699
+ $out .= " ".$event."[".$count."][0]='".$item->productID."';\n";
700
+ $out .= " ".$event."[".$count."][1]='".$item->productName."';\n";
701
+ $out .= " ".$event."[".$count."][2]='".$item->price."';\n";
702
+ $out .= " ".$event."[".$count."][3]='".$item->productGroup."';\n";
703
+ $out .= " ".$event."[".$count."][4]='".$item->quantity."';\n";
704
+ $out .= " ".$event."[".$count."][5]='".$item->variant1."';\n";
705
+ $out .= " ".$event."[".$count."][6]='".$item->variant2."';\n";
706
+ $out .= " ".$event."[".$count."][7]='".$item->variant3."';\n";
707
+ $count++;
708
+ }
709
+ $out .= "//]]>\n</script>\n";
710
+ $this->appendPreScript($out);
711
+ }
712
+ }
713
+
714
+ /*
715
+ * constructs a generic EmosCustomPageArray from a PHP Array
716
+ */
717
+ public function getEmosCustomPageArray($listOfValues)
718
+ {
719
+ $out = "";
720
+ if(!$this->anchorTags){
721
+ $counter = 0;
722
+ foreach ($listOfValues as $value) {
723
+ $value = $this->emos_DataFormat($value);
724
+ if($counter == 0) {
725
+ $out .= " emospro.".$value." = [[";
726
+ }
727
+ else {
728
+ $out .= "'".$value."',";
729
+ }
730
+ $counter += 1;
731
+ }
732
+ $out = substr($out,0,-1);
733
+ $out .= "]];\n";
734
+ }
735
+ else {
736
+ $out .= "<script type=\"text/javascript\">\n";
737
+ $out .= " window.emosCustomPageArray = [";
738
+ foreach ($listOfValues as $value) {
739
+ $value = $this->emos_DataFormat($value);
740
+ $out .= "'".$value."',";
741
+ }
742
+ $out = substr($out,0,-1);
743
+ $out .= "];\n";
744
+ $out .= "</script>\n";
745
+ }
746
+ $this->appendPreScript($out);
747
+ }
748
+
749
+ /* constructs a emosCustomPageArray with 8 Variables and shortcut
750
+ * @param $cType Type of this event - shortcut in config
751
+ * @param $cVar1 first variable of this custom event (optional)
752
+ * @param $cVar2 second variable of this custom event (optional)
753
+ * @param $cVar3 third variable of this custom event (optional)
754
+ * @param $cVar4 fourth variable of this custom event (optional)
755
+ * @param $cVar5 fifth variable of this custom event (optional)
756
+ * @param $cVar6 sixth variable of this custom event (optional)
757
+ * @param $cVar7 seventh variable of this custom event (optional)
758
+ * @param $cVar8 eighth variable of this custom event (optional)
759
+ * @param $cVar9 nineth variable of this custom event (optional)
760
+ * @param $cVar10 tenth variable of this custom event (optional)
761
+ * @param $cVar11 eleventh variable of this custom event (optional)
762
+ * @param $cVar12 twelveth variable of this custom event (optional)
763
+ * @param $cVar13 thirteenth variable of this custom event (optional)
764
+ */
765
+ public function addEmosCustomPageArray($cType=0, $cVar1=0, $cVar2=0, $cVar3=0, $cVar4=0, $cVar5=0, $cVar6=0, $cVar7=0, $cVar8=0, $cVar9=0, $cVar10=0, $cVar11=0, $cVar12=0, $cVar13=0)
766
+ {
767
+ $values[0] = $cType;
768
+ if($cVar1) $values[1] = $cVar1;
769
+ if($cVar2) $values[2] = $cVar2;
770
+ if($cVar3) $values[3] = $cVar3;
771
+ if($cVar4) $values[4] = $cVar4;
772
+ if($cVar5) $values[5] = $cVar5;
773
+ if($cVar6) $values[6] = $cVar6;
774
+ if($cVar7) $values[7] = $cVar7;
775
+ if($cVar8) $values[8] = $cVar8;
776
+ if($cVar9) $values[9] = $cVar9;
777
+ if($cVar10) $values[10] = $cVar10;
778
+ if($cVar11) $values[11] = $cVar11;
779
+ if($cVar12) $values[12] = $cVar12;
780
+ if($cVar13) $values[13] = $cVar13;
781
+ $this->getEmosCustomPageArray($values);
782
+ }
783
+ }
app/code/local/Mage/Econda/Helper/Data.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/local/Mage/Econda/Model/Base.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
app/code/local/Mage/Econda/Model/Basket.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
@@ -231,10 +231,12 @@ class Mage_Econda_Model_Basket extends Mage_Core_Model_Abstract
231
  $eItem->productName = trim($item->getName());
232
 
233
  if($isSku == '1' && trim($item->getSku()) != "") {
234
- $eItem->productID = $item->getSku();
 
235
  }
236
  else{
237
  $eItem->productID = $item->getproductId();
 
238
  }
239
 
240
  // calculate tax
@@ -291,10 +293,14 @@ class Mage_Econda_Model_Basket extends Mage_Core_Model_Abstract
291
  $eItem = Mage::getModel('econda/item');
292
  $eItem->productName = trim($item->getName());
293
  if($isSku == '1' && trim($item->getSku()) != "") {
294
- $eItem->productID = $item->getSku();
 
 
295
  }
296
  else{
297
- $eItem->productID = $item->getproductId();
 
 
298
  }
299
  if(Mage::getStoreConfig($billingOption, $storeId) == '1') {
300
  if(Mage::helper('tax')->getPrice($item, $item->getFinalPrice(), true, null, null, $item->getTaxClassId(), $storeId, true) != 0) {
@@ -366,10 +372,12 @@ class Mage_Econda_Model_Basket extends Mage_Core_Model_Abstract
366
  $eItem = Mage::getModel('econda/item');
367
  $eItem->productName = trim($row['name']);
368
  if(Mage::getStoreConfig('econda/econda_settings/product_id', $storeId) == '1' && trim($row['sku']) != "") {
369
- $eItem->productID = trim($row['sku']);
 
370
  }
371
  else{
372
  $eItem->productID = $row['product_id'];
 
373
  }
374
  $eItem->quantity = number_format($row['qty'],0);
375
  $discount = $row['product_id'];
@@ -436,9 +444,8 @@ class Mage_Econda_Model_Basket extends Mage_Core_Model_Abstract
436
  $entityId = $quote->getData('entity_id');
437
  // fallback if there is no result
438
  if(empty($entityId)) {
439
- $table = $prefix.'sales_flat_quote';
440
- $result = $db->fetchRow("SELECT entity_id FROM $table WHERE reserved_order_id = '".$lastOrder."'");
441
- $entityId = $result['entity_id'];
442
  }
443
  }
444
  else{//multipage
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
 
231
  $eItem->productName = trim($item->getName());
232
 
233
  if($isSku == '1' && trim($item->getSku()) != "") {
234
+ $eItem->productID = Mage::getModel('catalog/product') ->load($item->getproductId())->getSku();
235
+ $eItem->productSku = $item->getSku();
236
  }
237
  else{
238
  $eItem->productID = $item->getproductId();
239
+ $eItem->productSku = Mage::getModel('catalog/product') ->loadByAttribute('sku', $item->getSku())->getId();
240
  }
241
 
242
  // calculate tax
293
  $eItem = Mage::getModel('econda/item');
294
  $eItem->productName = trim($item->getName());
295
  if($isSku == '1' && trim($item->getSku()) != "") {
296
+ $conf_sku = Mage::getModel('catalog/product') ->load($item->getproductId()) ->getSku();
297
+ $eItem->productID = $conf_sku ;
298
+ $eItem->productSku = $item->getSku();
299
  }
300
  else{
301
+ $conf_id = Mage::getModel('catalog/product') ->loadByAttribute('sku', $item->getSku())->getId();
302
+ $eItem->productID = $item->getproductId();
303
+ $eItem->productSku =$conf_id ;
304
  }
305
  if(Mage::getStoreConfig($billingOption, $storeId) == '1') {
306
  if(Mage::helper('tax')->getPrice($item, $item->getFinalPrice(), true, null, null, $item->getTaxClassId(), $storeId, true) != 0) {
372
  $eItem = Mage::getModel('econda/item');
373
  $eItem->productName = trim($row['name']);
374
  if(Mage::getStoreConfig('econda/econda_settings/product_id', $storeId) == '1' && trim($row['sku']) != "") {
375
+ $eItem->productID = Mage::getModel('catalog/product') ->load( $row['product_id'])->getSku();
376
+ $eItem->productSku = trim($row['sku']);
377
  }
378
  else{
379
  $eItem->productID = $row['product_id'];
380
+ $eItem->productSku = Mage::getModel('catalog/product') ->loadByAttribute('sku',$row['sku'] )->getId();
381
  }
382
  $eItem->quantity = number_format($row['qty'],0);
383
  $discount = $row['product_id'];
444
  $entityId = $quote->getData('entity_id');
445
  // fallback if there is no result
446
  if(empty($entityId)) {
447
+ $order = Mage::getModel('sales/order')->loadByIncrementId($lastOrderId);
448
+ $entityId = $order->getQuoteId();
 
449
  }
450
  }
451
  else{//multipage
app/code/local/Mage/Econda/Model/Item.php CHANGED
@@ -14,52 +14,51 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_Item extends Mage_Core_Model_Abstract
21
  {
22
 
23
- /*
24
- * @var unique Identifier of a product e.g. article number
25
  */
26
-
27
- var $productID = "NULL";
28
 
29
- /*
30
- * @var the name of a product
31
  */
 
32
 
33
- var $productName = "NULL";
 
 
 
34
 
35
- /*
36
  * @var the price of the product, it is your choice wether its gross or net
37
  */
38
-
39
- var $price = "NULL";
40
 
41
- /*
42
  * @var the product group for this product, this is a drill down dimension
43
  * or tree-like structure
44
  * so you might want to use it like this:
45
  * productgroup/subgroup/subgroup/product
46
  */
 
47
 
48
- var $productGroup = "NULL";
49
-
50
- /*
51
  * @var the quantity / number of products viewed/bought etc..
52
  */
53
-
54
- var $quantity = "NULL";
55
 
56
- /*
57
  * @var variant of the product e.g. size, color, brand ....
58
  * remember to keep the order of theses variants allways the same
59
  * decide which variant is which feature and stick to it
60
  */
61
-
62
- var $variant1 = "NULL";
63
- var $variant2 = "NULL";
64
- var $variant3 = "NULL";
65
  }
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_Item extends Mage_Core_Model_Abstract
21
  {
22
 
23
+ /**
24
+ * SKU / article number. Always SKU of main product. Ignore variants here.
25
  */
26
+ public $productID = "NULL";
 
27
 
28
+ /**
29
+ * SKU / article number. Variants SKU if article is a variant of a main product.
30
  */
31
+ public $productSku = null;
32
 
33
+ /**
34
+ * Name of product without variant extensions
35
+ */
36
+ public $productName = "NULL";
37
 
38
+ /**
39
  * @var the price of the product, it is your choice wether its gross or net
40
  */
41
+ public $price = "NULL";
 
42
 
43
+ /**
44
  * @var the product group for this product, this is a drill down dimension
45
  * or tree-like structure
46
  * so you might want to use it like this:
47
  * productgroup/subgroup/subgroup/product
48
  */
49
+ public $productGroup = "NULL";
50
 
51
+ /**
 
 
52
  * @var the quantity / number of products viewed/bought etc..
53
  */
54
+ public $quantity = "NULL";
 
55
 
56
+ /**
57
  * @var variant of the product e.g. size, color, brand ....
58
  * remember to keep the order of theses variants allways the same
59
  * decide which variant is which feature and stick to it
60
  */
61
+ public $variant1 = "NULL";
62
+ public $variant2 = "NULL";
63
+ public $variant3 = "NULL";
 
64
  }
app/code/local/Mage/Econda/Model/System/Config/Source/Billing.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Billing
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Billing
app/code/local/Mage/Econda/Model/System/Config/Source/Langid.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Langid
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Langid
app/code/local/Mage/Econda/Model/System/Config/Source/Language.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Language
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Language
app/code/local/Mage/Econda/Model/System/Config/Source/Product.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Product
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Product
app/code/local/Mage/Econda/Model/System/Config/Source/Siteid.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Siteid
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Mage_Econda_Model_System_Config_Source_Siteid
app/code/local/Mage/Econda/etc/config.xml CHANGED
@@ -6,12 +6,12 @@
6
  receive a copy of the license and are unable to * obtain it through the world-wide-web,
7
  please send an email * to license@magentocommerce.com so we can send you
8
  a copy immediately. * * @category Mage * @package Mage_Econda * @copyright
9
- Copyright (c) 2013 econda GmbH (http://www.econda.de) * @license http://opensource.org/licenses/osl-3.0.php
10
  Open Software License (OSL 3.0) */ -->
11
  <config>
12
  <modules>
13
  <Mage_Econda>
14
- <version>1.6.1</version>
15
  </Mage_Econda>
16
  </modules>
17
  <frontend>
6
  receive a copy of the license and are unable to * obtain it through the world-wide-web,
7
  please send an email * to license@magentocommerce.com so we can send you
8
  a copy immediately. * * @category Mage * @package Mage_Econda * @copyright
9
+ Copyright (c) 2015 econda GmbH (http://www.econda.de) * @license http://opensource.org/licenses/osl-3.0.php
10
  Open Software License (OSL 3.0) */ -->
11
  <config>
12
  <modules>
13
  <Mage_Econda>
14
+ <version>1.6.4</version>
15
  </Mage_Econda>
16
  </modules>
17
  <frontend>
app/code/local/Mage/Econda/etc/system.xml CHANGED
@@ -1,274 +1,238 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- /**
4
- * Magento
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * @category Mage
17
- * @package Mage_Econda
18
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
- -->
22
- <config>
23
- <sections>
24
- <econda module="econda">
25
- <label>econda Web Shop Controlling</label>
26
- <tab>sales</tab>
27
- <frontend_type>text</frontend_type>
28
- <sort_order>335</sort_order>
29
- <show_in_default>1</show_in_default>
30
- <show_in_website>1</show_in_website>
31
- <show_in_store>1</show_in_store>
32
- <groups>
33
- <info translate="label">
34
- <label>Info</label>
35
- <sort_order>10</sort_order>
36
- <frontend_type>text</frontend_type>
37
- <show_in_default>1</show_in_default>
38
- <show_in_website>1</show_in_website>
39
- <show_in_store>1</show_in_store>
40
- <comment><![CDATA[
41
- <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
42
- <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
43
- <tr>
44
- <td style="width:320px;padding-bottom:20px;">
45
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">High-End Web-Analyse für Magento-Shops</p>Mit econda verfügt Market Ready Germany<br />über eine datenschutzkonforme High-End<br />Web-Analyse Lösung. Optimal abgestimmt<br />auf die Erfordernisse deutscher Online-Shop-<br />Betreiber und perfekt verzahnt mit Magento.
46
- </td>
47
- <td style="vertical-align:middle;">
48
- <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/01_econda_logo" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/econda_logo.jpg" width="173" height="63" border="0" /></a><p>&nbsp;</p>
49
- </td>
50
- </tr>
51
- <tr>
52
- <td>
53
- <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/02_aktionsbanner" target="_blank"><img style="padding-bottom:15px;" src="http://www.econda.de/fileadmin/content/Aktionen/MRG/aktionsbanner.jpg" width="252" height="283" border="0" /></a>
54
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Umsatz hoch, Marketingkosten runter</p>econda ist bei über 1000 E-Commerce<br />Unternehmen erfolgreich im Einsatz und liefert<br />die Zahlen für nachhaltige Erfolgsoptimierung<br />und dauerhafte Umsatzsteigerung.
55
- </td>
56
- <td>
57
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">Einfachste Aktivierung, sofort Ergebnisse</p>Jetzt integrieren und nach 5 Minuten eigene<br />Analysen sehen! Die Reporting-Kapitel sind<br />von Anfang an automatisch mit Ihren Daten<br />gefüllt.
58
- <p>&nbsp;</p>
59
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">TÜV zertifizierter Datenschutz</p>&quot;econda ist eines der wenigen Webanalyse-Tools,<br />die laut einer Studie dem Kriterienkatalog der obersten<br />Datenschutzbehörden entsprechen und somit daten-<br />schutzkonform in Deutschland eingesetzt werden<br />können.&quot;<br /><em style="font-size:12px;">Thomas Karst, Geschäftsführer der Trusted Shops GmbH</em>
60
- <p>&nbsp;</p>
61
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">Sonderaktion für Magento mit Market Ready Germany</p>Jetzt 2 Wochen gratis testen und bei Buchung<br />die Einrichtungsgebühr sparen!
62
- <p>&nbsp;</p>
63
- <button style="" class="scalable" type="button" onclick="window.open('http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/03_testbutton_1')"><span>Jetzt kostenlos testen!</span></button>
64
- </td>
65
- </tr>
66
- </table>
67
- </div>
68
- <script type="text/javascript">
69
- document.observe('dom:loaded', function(){
70
- $('econda_info').style.display='block';
71
- });
72
- </script>
73
- ]]></comment>
74
- </info>
75
- <econda_details translate="label">
76
- <label>Features</label>
77
- <frontend_type>text</frontend_type>
78
- <sort_order>11</sort_order>
79
- <show_in_default>1</show_in_default>
80
- <show_in_website>1</show_in_website>
81
- <show_in_store>1</show_in_store>
82
- <comment><![CDATA[
83
- <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
84
- <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
85
- <tr>
86
- <td style="width:320px;padding-bottom:20px;">
87
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">econda Shop Monitor</p>Der econda Shop Monitor ist eine High-End<br />Web-Analyse Lösung, die exakt auf die An-<br />forderungen deutscher Online-Shop-Betreiber<br />und auf Magento zugeschnitten ist. Basierend<br />auf der wegweisenden econda r.a.c.e. technology<br />liefern die Web Controlling Lösungen rasante<br />Analyseauswertungen in Echtzeit bei maximaler<br />Flexibilität.
88
- </td>
89
- <td style="vertical-align:middle;">
90
- <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/04_screenshot_shop" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/screenshot_shop.jpg" width="307" height="136" border="0" /></a>
91
- </td>
92
- </tr>
93
- <tr>
94
- <td colspan="2" style="padding-bottom:20px;">
95
- <p>Zielführende Analysen liefern den Shop- und Marketingverantwortlichen die Zahlen für dauerhafte<br />Umsatzsteigerung und nachhaltiges und erfolgsorientiertes Marketing.</p>
96
- </td>
97
- </tr>
98
- <tr>
99
- <td style="padding-bottom:20px;">
100
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">econda Shop Monitor Features</p>
101
- <ul style="list-style-type: disc;margin-left:14px">
102
- <li>Realtime Tracking</li>
103
- <li>High Performance Messung</li>
104
- <li>Customer Journey Analyse</li>
105
- <li>Online-Marketing Kontrolle</li>
106
- <li>Freie Segmentierung nach Besuchergruppen</li>
107
- <li>Multichannel Marketing Tracking</li>
108
- <li>Umfassendes on-site Tracking</li>
109
- <li>Detaillierte Bestellprozess-Analyse</li>
110
- <li>TÜV geprüfter Datenschutz</li>
111
- <li>A/B und Multivariates Testing</li>
112
- <li>Automatische Alerts und Reports</li>
113
- <li>Zahlreiche E-Commerce Plug-Ins</li>
114
- </ul>
115
- <p style="font-family:Arial;color:#000000;font-size:10pt;font-weight:bold;padding-top:10px;">Mehr infos finden Sie hier: <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/06_Info-Link" target="_blank">www.econda.de/mrg</a></p>
116
- </td>
117
- <td style="vertical-align:middle;">
118
- <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/05_screenshot_click" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/screenshot_click.jpg" width="252" height="180" border="0" /></a>
119
- </td>
120
- </tr>
121
- <tr>
122
- <td style="padding-bottom:20px;">
123
- <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/07_TUEV" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/tuev.jpg" width="176" height="141" border="0" /></a>
124
- </td>
125
- <td>
126
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">TÜV zertifizierter Datenschutz</p>Als erster Anbieter hat econda das TÜV Siegel<br />&quot;Geprüfter Datenschutz&quot; des TÜV Saarland für<br />den Bereich Web Shop Controlling erhalten und<br />bietet seinen Kunden damit höchste Sicherheit<br />und Professionalität im Umgang mit Daten.
127
- </td>
128
- </tr>
129
- <tr>
130
- <td colspan="2">
131
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Web-Analyse Expertenwissen und Beratung</p>Das econda-Experten-Team steht Kunden mit Web Analytics Expertise aus hunderten erfolgreichen Projekten beratend zur Seite.
132
- <p>&nbsp;</p>
133
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Kostenlos testen – Sonderaktion für Magento mit Market Ready Germany</p>Jetzt 2 Wochen gratis testen und bei Buchung die Einrichtungsgebühr sparen!
134
- <p>&nbsp;</p>
135
- <button style="" class="scalable" type="button" onclick="window.open('http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/08_testbutton_2')"><span>Jetzt kostenlos testen!</span></button>
136
- </td>
137
- </tr>
138
- </table>
139
- </div>
140
- ]]></comment>
141
- </econda_details>
142
- <econda_order translate="label">
143
- <label>Test it for free</label>
144
- <frontend_type>text</frontend_type>
145
- <sort_order>12</sort_order>
146
- <show_in_default>1</show_in_default>
147
- <show_in_website>1</show_in_website>
148
- <show_in_store>1</show_in_store>
149
- <comment><![CDATA[
150
- <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
151
- <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
152
- <tr>
153
- <td style="padding-bottom:20px;">
154
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">econda Web-Analyse – jetzt 2 Wochen gratis testen und Preisvorteil sichern</p>econda bietet Ihnen einen unverbindlichen und kostenlosen Test inklusive eines persönlichen Optimierungsgesprächs am Ende der Testphase an. Die econda Web-Controlling Experten stehen Ihnen während Ihrer Testphase gerne beratend zur Seite. Entscheiden Sie sich nach dem Test für die dauerhafte Nutzung des Shop Monitor, sparen Sie darüber hinaus als Magento Market Ready Germany Nutzer die Einrichtungsgebühr!
155
- </td>
156
- </tr>
157
- <tr>
158
- <td style="padding-bottom:20px;">
159
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Jetzt integrieren und nach 5 Minuten eigene Analysen sehen!</p>Testen Sie jetzt den Shop Monitor, die Datenzentrale für Ihren Erfolg im E-Commerce. Und erhalten Sie schon nach kürzester Zeit einen völlig neuen Blick auf das Potenzial Ihres Online-Shops! Über 1000 Kunden, darunter zahlreiche Unternehmen aus den Top 100 des deutschen Versandhandels, vertrauen bereits auf econda. Testen auch Sie jetzt!
160
- </td>
161
- </tr>
162
- <tr>
163
- <td>
164
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Kostenlos testen - Sonderaktion für Magento mit Market Ready Germany</p>Jetzt 2 Wochen gratis testen und bei Buchung die Einrichtungsgebühr sparen!
165
- <p>&nbsp;</p>
166
- <button style="" class="scalable" type="button" onclick="window.open('http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/09_testbutton_3')"><span>Jetzt kostenlos testen!</span></button>
167
- </td>
168
- </tr>
169
- </table>
170
- </div>
171
- ]]></comment>
172
- </econda_order>
173
- <econda_activation translate="label">
174
- <label>Activation</label>
175
- <frontend_type>text</frontend_type>
176
- <sort_order>13</sort_order>
177
- <show_in_default>1</show_in_default>
178
- <show_in_website>1</show_in_website>
179
- <show_in_store>1</show_in_store>
180
- <comment><![CDATA[
181
- <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
182
- <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
183
- <tr>
184
- <td style="padding-bottom:20px;">
185
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">Nach der Bestellung Ihres <a href="http://www.econda.de/web-analyse/landing-pages/partneraktionen/market_ready_germany/?campaign=partner/MRG/10_Info-Link_2" target="_blank">econda Shop Monitor Testzugangs</a> erhalten Sie eine Aktivierungs-E-Mail mit den Informationen zur Aktivierung. Im Anhang der E-Mail finden Sie eine gepackte Datei, die die econda Tracking-Bibliothek &quot;emos2.js&quot; enthält. Zur Aktivierung kopieren diese &quot;emos2.js&quot; einfach in das Verzeichnis &quot;/js/tracker&quot; Ihres Magento Systems. Ab diesem Zeitpunkt werden bereits Daten von Ihrem Shop an econda übermittelt und sind innerhalb weniger Minuten in Ihrem econda Shop Monitor einsehbar.</p>
186
- </td>
187
- </tr>
188
- <tr>
189
- <td style="padding-bottom:20px;">
190
- <p>Nach Wunsch können Sie ergänzend innerhalb des Abschnittes &quot;Einstellungen&quot; auf dieser Seite folgende Anpassungen vornehmen:</p>
191
- </td>
192
- </tr>
193
- <tr>
194
- <td style="padding-bottom:20px;">
195
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Verwendete Sprache&quot;</p>Hier können Sie festlegen, ob bestimmte Begriffe innerhalb Ihrer econda Auswertungen in deutscher oder englischer Sprache aufgeführt werden sollen. So kann zum Beispiel der Begriff &quot;Warenkorb&quot; auf Englisch als &quot;Shopping Cart&quot; angezeigt werden.
196
- </td>
197
- </tr>
198
- <tr>
199
- <td style="padding-bottom:20px;">
200
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Siteid&quot;</p>Wenn Sie mehrere verschiedene Shops auf unterschiedlichen Shopsystemen mit econda messen möchten, kann hier eine eindeutige Bezeichnung eingetragen werden, damit dieser Shop eindeutig identifiziert werden kann. In Verbindung mit einem alleinstehenden Magento oder Magento Multishop-System lassen Sie dieses Feld einfach leer, da hiermit dieser Wert automatisch ermittelt wird.
201
- </td>
202
- </tr>
203
- <tr>
204
- <td>
205
- <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Rechnung und Preise&quot;</p>Hier können Sie bestimmen, ob die Rechnungspreise in Netto, Brutto oder in Brutto inklusive der Versandkosten an econda übermittelt werden und in die Konversionen einfließen sollen.
206
- </td>
207
- </tr>
208
- </table>
209
- </div>
210
- ]]></comment>
211
- </econda_activation>
212
- <econda_settings translate="label">
213
- <label>Settings</label>
214
- <sort_order>14</sort_order>
215
- <show_in_default>1</show_in_default>
216
- <show_in_website>1</show_in_website>
217
- <show_in_store>1</show_in_store>
218
- <fields>
219
- <tracking_language>
220
- <label>Used Language</label>
221
- <comment>Select only the language, which at the time of initial activation of your econda product has been selected.</comment>
222
- <frontend_type>select</frontend_type>
223
- <source_model>econda/system_config_source_language</source_model>
224
- <sort_order>1</sort_order>
225
- <show_in_default>1</show_in_default>
226
- <show_in_website>1</show_in_website>
227
- <show_in_store>0</show_in_store>
228
- </tracking_language>
229
- <tracking_siteid>
230
- <label>Siteid</label>
231
- <comment>Set Siteid manually. Only change this in agreement with econda. Leave empty, if not used.</comment>
232
- <frontend_type>text</frontend_type>
233
- <source_model>econda/system_config_source_siteid</source_model>
234
- <sort_order>3</sort_order>
235
- <show_in_default>1</show_in_default>
236
- <show_in_website>1</show_in_website>
237
- <show_in_store>1</show_in_store>
238
- </tracking_siteid>
239
- <tracking_langid>
240
- <label>Langid</label>
241
- <comment>Set Langid manually. Only change this in agreement with econda. Leave empty, if not used.</comment>
242
- <frontend_type>text</frontend_type>
243
- <source_model>econda/system_config_source_langid</source_model>
244
- <sort_order>4</sort_order>
245
- <show_in_default>1</show_in_default>
246
- <show_in_website>1</show_in_website>
247
- <show_in_store>1</show_in_store>
248
- </tracking_langid>
249
- <billing_total>
250
- <label>Billing and Prices</label>
251
- <comment>Get Billing and Prices with or without Tax and Shipping</comment>
252
- <frontend_type>select</frontend_type>
253
- <source_model>econda/system_config_source_billing</source_model>
254
- <sort_order>5</sort_order>
255
- <show_in_default>1</show_in_default>
256
- <show_in_website>1</show_in_website>
257
- <show_in_store>0</show_in_store>
258
- </billing_total>
259
- <product_id>
260
- <label>Product ID</label>
261
- <comment>Use the Magento product ID or SKU for product tracking.</comment>
262
- <frontend_type>select</frontend_type>
263
- <source_model>econda/system_config_source_product</source_model>
264
- <sort_order>6</sort_order>
265
- <show_in_default>1</show_in_default>
266
- <show_in_website>1</show_in_website>
267
- <show_in_store>0</show_in_store>
268
- </product_id>
269
- </fields>
270
- </econda_settings>
271
- </groups>
272
- </econda>
273
- </sections>
274
- </config>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @category Mage
17
+ * @package Mage_Econda
18
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ -->
22
+ <config>
23
+ <sections>
24
+ <econda module="econda">
25
+ <label>econda Web Analytics</label>
26
+ <tab>sales</tab>
27
+ <frontend_type>text</frontend_type>
28
+ <sort_order>335</sort_order>
29
+ <show_in_default>1</show_in_default>
30
+ <show_in_website>1</show_in_website>
31
+ <show_in_store>1</show_in_store>
32
+ <groups>
33
+ <info translate="label">
34
+ <label>Info</label>
35
+ <sort_order>10</sort_order>
36
+ <frontend_type>text</frontend_type>
37
+ <show_in_default>1</show_in_default>
38
+ <show_in_website>1</show_in_website>
39
+ <show_in_store>1</show_in_store>
40
+ <comment><![CDATA[
41
+ <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
42
+ <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
43
+ <tr>
44
+ <td style="width:320px;padding-bottom:20px;">
45
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">High-End Web-Analyse für Magento-Shops</p>Mit econda verfügen Sie <br />über eine datenschutzkonforme High-End<br />Web-Analyse Lösung. Optimal abgestimmt<br />auf die Erfordernisse deutscher Online-Shop-<br />Betreiber und perfekt verzahnt mit Magento.
46
+ </td>
47
+ <td style="vertical-align:middle;">
48
+ <a href="http://www.econda.de/partner/partneruebersicht/technologiepartner/plattformpartner/magento/" target="_blank"><img src="http://www.econda.de/fileadmin/templates/img/layout/headerlogo.gif" width="161" height="31" border="0" /></a><p>&nbsp;</p>
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td>
53
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Umsatz hoch, Marketingkosten runter</p>econda ist bei über 1000 E-Commerce<br />Unternehmen erfolgreich im Einsatz und liefert<br />die Zahlen für nachhaltige Erfolgsoptimierung<br />und dauerhafte Umsatzsteigerung.
54
+ </td>
55
+ <td>
56
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">Einfachste Aktivierung, sofort Ergebnisse</p>Jetzt integrieren und nach 5 Minuten eigene<br />Analysen sehen! Die Reporting-Kapitel sind<br />von Anfang an automatisch mit Ihren Daten<br />gefüllt.
57
+ <p>&nbsp;</p>
58
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">TÜV zertifizierter Datenschutz</p>&quot;econda ist eines der wenigen Webanalyse-Tools,<br />die laut einer Studie dem Kriterienkatalog der obersten<br />Datenschutzbehörden entsprechen und somit daten-<br />schutzkonform in Deutschland eingesetzt werden<br />können.&quot;<br /><em style="font-size:12px;">Thomas Karst, Geschäftsführer der Trusted Shops GmbH</em>
59
+ <p>&nbsp;</p>
60
+ </td>
61
+ </tr>
62
+ </table>
63
+ </div>
64
+ <script type="text/javascript">
65
+ document.observe('dom:loaded', function(){
66
+ $('econda_info').style.display='block';
67
+ });
68
+ </script>
69
+ ]]></comment>
70
+ </info>
71
+ <econda_details translate="label">
72
+ <label>Features</label>
73
+ <frontend_type>text</frontend_type>
74
+ <sort_order>11</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ <comment><![CDATA[
79
+ <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
80
+ <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
81
+ <tr>
82
+ <td style="width:320px;padding-bottom:20px;">
83
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">econda Shop Monitor</p>Der econda Shop Monitor ist eine High-End<br />Web-Analyse Lösung, die exakt auf die An-<br />forderungen deutscher Online-Shop-Betreiber<br />und auf Magento zugeschnitten ist. Basierend<br />auf der wegweisenden econda r.a.c.e. technology<br />liefern die Web Controlling Lösungen rasante<br />Analyseauswertungen in Echtzeit bei maximaler<br />Flexibilität.
84
+ </td>
85
+ </tr>
86
+ <tr>
87
+ <td colspan="2" style="padding-bottom:20px;">
88
+ <p>Zielführende Analysen liefern den Shop- und Marketingverantwortlichen die Zahlen für dauerhafte<br />Umsatzsteigerung und nachhaltiges und erfolgsorientiertes Marketing.</p>
89
+ </td>
90
+ </tr>
91
+ <tr>
92
+ <td style="padding-bottom:20px;">
93
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">econda Shop Monitor Features</p>
94
+ <ul style="list-style-type: disc;margin-left:14px">
95
+ <li>Realtime Tracking</li>
96
+ <li>High Performance Messung</li>
97
+ <li>Customer Journey Analyse</li>
98
+ <li>Online-Marketing Kontrolle</li>
99
+ <li>Freie Segmentierung nach Besuchergruppen</li>
100
+ <li>Multichannel Marketing Tracking</li>
101
+ <li>Umfassendes on-site Tracking</li>
102
+ <li>Detaillierte Bestellprozess-Analyse</li>
103
+ <li>TÜV geprüfter Datenschutz</li>
104
+ <li>A/B und Multivariates Testing</li>
105
+ <li>Automatische Alerts und Reports</li>
106
+ <li>Zahlreiche E-Commerce Plug-Ins</li>
107
+ </ul>
108
+ <p style="font-family:Arial;color:#000000;font-size:10pt;font-weight:bold;padding-top:10px;">Mehr infos finden Sie hier: <a href="http://www.econda.de/partner/partneruebersicht/technologiepartner/plattformpartner/magento/?campaign=partner/Magento_extension/config" target="_blank">www.econda.de</a></p>
109
+ </td>
110
+ <td style="vertical-align:middle;">
111
+ <a href="http://www.econda.de/partner/partneruebersicht/technologiepartner/plattformpartner/magento/?campaign=partner/Magento_extension/config" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/screenshot_click.jpg" width="252" height="180" border="0" /></a>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td style="padding-bottom:20px;">
116
+ <a href="http://www.econda.de/partner/partneruebersicht/technologiepartner/plattformpartner/magento/?campaign=partner/Magento_extension/config" target="_blank"><img src="http://www.econda.de/fileadmin/content/Aktionen/MRG/tuev.jpg" width="176" height="141" border="0" /></a>
117
+ </td>
118
+ <td>
119
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">TÜV zertifizierter Datenschutz</p>Als erster Anbieter hat econda das TÜV Siegel<br />&quot;Geprüfter Datenschutz&quot; des TÜV Saarland für<br />den Bereich Web Shop Controlling erhalten und<br />bietet seinen Kunden damit höchste Sicherheit<br />und Professionalität im Umgang mit Daten.
120
+ </td>
121
+ </tr>
122
+ <tr>
123
+ <td colspan="2">
124
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight: bold;">Web-Analyse Expertenwissen und Beratung</p>Das econda-Experten-Team steht Kunden mit Web Analytics Expertise aus hunderten erfolgreichen Projekten beratend zur Seite.
125
+ <p>&nbsp;</p>
126
+ </td>
127
+ </tr>
128
+ </table>
129
+ </div>
130
+ ]]></comment>
131
+ </econda_details>
132
+ <econda_activation translate="label">
133
+ <label>Activation</label>
134
+ <frontend_type>text</frontend_type>
135
+ <sort_order>13</sort_order>
136
+ <show_in_default>1</show_in_default>
137
+ <show_in_website>1</show_in_website>
138
+ <show_in_store>1</show_in_store>
139
+ <comment><![CDATA[
140
+ <div style="font-family:Arial,sans-serif;background-color:white;color:#000000;font-size:13px;">
141
+ <table border="0" cellpadding="0" cellspacing="0" style="width:640px;padding:2px;margin:4px;">
142
+ <tr>
143
+ <td style="padding-bottom:20px;">
144
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">Nach der Bestellung Ihres econda Shop Monitor Accounts erhalten Sie eine Aktivierungs-E-Mail mit den Informationen zur Aktivierung. Zur Aktivierung kopieren Sie die Tracking-Bibliothek einfach in das Verzeichnis &quot;/js/tracker&quot; Ihres Magento Systems. Ab diesem Zeitpunkt werden bereits Daten von Ihrem Shop an econda übermittelt und sind innerhalb weniger Minuten in Ihrem econda Shop Monitor einsehbar.</p>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td style="padding-bottom:20px;">
149
+ <p>Nach Wunsch können Sie ergänzend innerhalb des Abschnittes &quot;Einstellungen&quot; auf dieser Seite folgende Anpassungen vornehmen:</p>
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <td style="padding-bottom:20px;">
154
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Verwendete Sprache&quot;</p>Hier können Sie festlegen, ob bestimmte Begriffe innerhalb Ihrer econda Auswertungen in deutscher oder englischer Sprache aufgeführt werden sollen. So kann zum Beispiel der Begriff &quot;Warenkorb&quot; auf Englisch als &quot;Shopping Cart&quot; angezeigt werden.
155
+ </td>
156
+ </tr>
157
+ <tr>
158
+ <td style="padding-bottom:20px;">
159
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Siteid&quot;</p>Wenn Sie mehrere verschiedene Shops auf unterschiedlichen Shopsystemen mit econda messen möchten, kann hier eine eindeutige Bezeichnung eingetragen werden, damit dieser Shop eindeutig identifiziert werden kann. In Verbindung mit einem alleinstehenden Magento oder Magento Multishop-System lassen Sie dieses Feld einfach leer, da hiermit dieser Wert automatisch ermittelt wird.
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td style="padding-bottom:20px;">
164
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Rechnung und Preise&quot;</p>Hier können Sie bestimmen, ob die Rechnungspreise in Netto, Brutto oder in Brutto inklusive der Versandkosten an econda übermittelt werden und in die Konversionen einfließen sollen.
165
+ </td>
166
+ </tr>
167
+ <tr>
168
+ <td style="padding-bottom:20px;">
169
+ <p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;">&quot;Produkt ID&quot;</p>Hier können Sie bestimmen, ob die Magento Produkt ID oder die SKU übertragen werden soll.
170
+ </td>
171
+ </tr>
172
+ </table>
173
+ </div>
174
+ ]]></comment>
175
+ </econda_activation>
176
+ <econda_settings translate="label">
177
+ <label>Settings</label>
178
+ <sort_order>14</sort_order>
179
+ <show_in_default>1</show_in_default>
180
+ <show_in_website>1</show_in_website>
181
+ <show_in_store>1</show_in_store>
182
+ <fields>
183
+ <tracking_language>
184
+ <label>Used Language</label>
185
+ <comment>Select only the language, which at the time of initial activation of your econda product has been selected.</comment>
186
+ <frontend_type>select</frontend_type>
187
+ <source_model>econda/system_config_source_language</source_model>
188
+ <sort_order>1</sort_order>
189
+ <show_in_default>1</show_in_default>
190
+ <show_in_website>1</show_in_website>
191
+ <show_in_store>0</show_in_store>
192
+ </tracking_language>
193
+ <tracking_siteid>
194
+ <label>Siteid</label>
195
+ <comment>Set Siteid manually. Only change this in agreement with econda. Leave empty, if not used.</comment>
196
+ <frontend_type>text</frontend_type>
197
+ <source_model>econda/system_config_source_siteid</source_model>
198
+ <sort_order>3</sort_order>
199
+ <show_in_default>1</show_in_default>
200
+ <show_in_website>1</show_in_website>
201
+ <show_in_store>1</show_in_store>
202
+ </tracking_siteid>
203
+ <tracking_langid>
204
+ <label>Langid</label>
205
+ <comment>Set Langid manually. Only change this in agreement with econda. Leave empty, if not used.</comment>
206
+ <frontend_type>text</frontend_type>
207
+ <source_model>econda/system_config_source_langid</source_model>
208
+ <sort_order>4</sort_order>
209
+ <show_in_default>1</show_in_default>
210
+ <show_in_website>1</show_in_website>
211
+ <show_in_store>1</show_in_store>
212
+ </tracking_langid>
213
+ <billing_total>
214
+ <label>Billing and Prices</label>
215
+ <comment>Get Billing and Prices with or without Tax and Shipping</comment>
216
+ <frontend_type>select</frontend_type>
217
+ <source_model>econda/system_config_source_billing</source_model>
218
+ <sort_order>5</sort_order>
219
+ <show_in_default>1</show_in_default>
220
+ <show_in_website>1</show_in_website>
221
+ <show_in_store>0</show_in_store>
222
+ </billing_total>
223
+ <product_id>
224
+ <label>Product ID</label>
225
+ <comment>Use the Magento product ID or SKU for product tracking.</comment>
226
+ <frontend_type>select</frontend_type>
227
+ <source_model>econda/system_config_source_product</source_model>
228
+ <sort_order>6</sort_order>
229
+ <show_in_default>1</show_in_default>
230
+ <show_in_website>1</show_in_website>
231
+ <show_in_store>0</show_in_store>
232
+ </product_id>
233
+ </fields>
234
+ </econda_settings>
235
+ </groups>
236
+ </econda>
237
+ </sections>
238
+ </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/layout/econda.xml CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
app/design/frontend/base/default/template/econda/tracker.phtml CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  echo $this->getEmos();
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  echo $this->getEmos();
app/design/frontend/default/default/layout/econda.xml CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
app/design/frontend/default/default/template/econda/tracker.phtml CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  echo $this->getEmos();
14
  *
15
  * @category Mage
16
  * @package Mage_Econda
17
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  echo $this->getEmos();
app/etc/modules/Mage_Econda.xml CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
- * @copyright Copyright (c) 2013 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
15
  *
16
  * @category Mage
17
  * @package Mage_Econda
18
+ * @copyright Copyright (c) 2015 econda GmbH (http://www.econda.de)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  -->
app/locale/de_AT/Mage_Econda.csv CHANGED
File without changes
app/locale/de_CH/Mage_Econda.csv CHANGED
File without changes
app/locale/de_DE/Mage_Econda.csv CHANGED
File without changes
app/locale/en_US/Mage_Econda.csv CHANGED
File without changes
js/tracker/emos2.js CHANGED
@@ -1 +1 @@
1
- // dummy version of emos2.js //
1
+ // dummy version of emos2.js . Please replace with your own file, which can be downloaded within the econda Shop Monitor.//
js/tracker/emosop.js CHANGED
@@ -1,5 +1,5 @@
1
  // econda one page checkout helper
2
- // Copyright 2009-2012 econda GmbH
3
  var sendOne = 1;
4
  var orderProcess = '';
5
  var contentLabel = '';
1
  // econda one page checkout helper
2
+ // Copyright 2009-2015 econda GmbH
3
  var sendOne = 1;
4
  var orderProcess = '';
5
  var contentLabel = '';
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Econda</name>
4
- <version>1.6.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Bindet econda Web Shop Controlling in Magento ein. Inserts econda Web Shop Contolling into Magento.</summary>
10
- <description>Bindet econda Web Shop Controlling in Magento ein. Weitere Informationen unter http://www.econda.de. Inserts econda Web Shop Contolling into Magento. For further information visit http://www.econda.de/</description>
11
- <notes>Integration of econda Web Controlling functions. Fixed small Bug</notes>
12
  <authors><author><name>ecdev</name><user>ecmagento</user><email>reinecke@econda.de</email></author></authors>
13
- <date>2013-12-16</date>
14
- <time>14:51:46</time>
15
- <contents><target name="magelocal"><dir name="Mage"><dir name="Econda"><dir name="Block"><file name="Econda.php" hash="3a2f494ae2397af30b26b924c9dcc821"/><file name="EcondaOp.php" hash="c4a0d1347ba9910fcb0f5bbc8a471064"/><file name="Emos.php" hash="fc857c5d0ac70a63aa0a84d51b660b5f"/></dir><dir name="Helper"><file name="Data.php" hash="53b39a193afd5eeb78852b682c0013b9"/></dir><dir name="Model"><file name="Base.php" hash="7823e30a0ff7459d9131da65c58a0f39"/><file name="Basket.php" hash="baead184b06d7e8f9030ae661697efbf"/><file name="Item.php" hash="6ad4786183d500fca3dfb456da9056c2"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Billing.php" hash="03f7f0618942aee0ee398acc8aee6048"/><file name="Langid.php" hash="d2a90f53493868fb2ca6e21fc6511f99"/><file name="Language.php" hash="5df9d83c7dd49ec2adec794e4c6e0717"/><file name="Product.php" hash="02a36307fbf0e9cf0cdb39bcb16d1de6"/><file name="Siteid.php" hash="5195f5da25d8294534ea1872a9d1811b"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="db08128458a5f9df6776d568a032b9c1"/><file name="system.xml" hash="62a2f8ff114045d1a5c8fa6ee81020c9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="econda"><file name="tracker.phtml" hash="5d944a20040b315a240e116395c7ec3f"/></dir></dir><dir name="layout"><file name="econda.xml" hash="dbc34ca3bf40c6ade7de4b0c392ae75c"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="econda"><file name="tracker.phtml" hash="5d944a20040b315a240e116395c7ec3f"/></dir></dir><dir name="layout"><file name="econda.xml" hash="dbc34ca3bf40c6ade7de4b0c392ae75c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Econda.xml" hash="79932112712d2f11848a146b206f0426"/></dir></target><target name="mageweb"><dir name="js"><dir name="tracker"><file name="emosop.js" hash="228bdef1308a698a0c864f43aac4a717"/><file name="emos2.js" hash="9063366f40aa9cb4065d5f1091a47f6a"/></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="de_AT"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="de_CH"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="en_US"><file name="Mage_Econda.csv" hash="66a03ed8c951ee3c7f413d7e5c8419fc"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mage_Econda</name>
4
+ <version>1.6.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Bindet econda Web Analytics in Magento ein. Inserts econda Web Analytics into Magento.</summary>
10
+ <description>Bindet econda Web Analytics in Magento ein. Weitere Informationen unter http://www.econda.de. Inserts econda Web Analytics into Magento. For further information visit http://www.econda.de/</description>
11
+ <notes>Integration of econda Web Controlling functions.</notes>
12
  <authors><author><name>ecdev</name><user>ecmagento</user><email>reinecke@econda.de</email></author></authors>
13
+ <date>2016-01-04</date>
14
+ <time>16:07:21</time>
15
+ <contents><target name="magelocal"><dir name="Mage"><dir name="Econda"><dir name="Block"><file name="Econda.php" hash="1ae2d0fb73204b80056f3973dfea6778"/><file name="EcondaOp.php" hash="bb539330882621af25fc31e457a12c4a"/><file name="Emos.php" hash="c90acb2969f5f1a6f574079066f2a761"/></dir><dir name="Helper"><file name="Data.php" hash="5d0bdb6c2bb055f98710c9243ff2a066"/></dir><dir name="Model"><file name="Base.php" hash="58a963458d95a6af0c004a0ad432d9ac"/><file name="Basket.php" hash="cfeae19fbc2182fb1fd66f77454c0265"/><file name="Item.php" hash="5168097bd776dd2a99b316c0bd4e2b72"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Billing.php" hash="1ee0416a4aa84b0a082ba3807bf0e785"/><file name="Langid.php" hash="e3790bd42d325eadf5259f78f66fa3e0"/><file name="Language.php" hash="9e7a6599cb7cfadb542c32555e12a009"/><file name="Product.php" hash="1c1c1e5e4a050f0f9a87f5f658898fd3"/><file name="Siteid.php" hash="6e58bb6a4987a2e3010a9df539983a25"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="fb51c7df9ac510e66d339a4f45b4fe6f"/><file name="system.xml" hash="f583217cb09d6e8ebe089c8ebced5735"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="econda"><file name="tracker.phtml" hash="41023910444c55f23650384493d5008c"/></dir></dir><dir name="layout"><file name="econda.xml" hash="e87b667bf12976bac91829ffe64f288e"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="econda"><file name="tracker.phtml" hash="41023910444c55f23650384493d5008c"/></dir></dir><dir name="layout"><file name="econda.xml" hash="e87b667bf12976bac91829ffe64f288e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Econda.xml" hash="ac45b7219b3a8ca3d1e6f849093cf7eb"/></dir></target><target name="mageweb"><dir name="js"><dir name="tracker"><file name="emosop.js" hash="da04fb13b0756a0737c78247c73863bb"/><file name="emos2.js" hash="d713d9622d62e4374b16e4af0771c476"/></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="de_AT"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="de_CH"><file name="Mage_Econda.csv" hash="942312acf13a4c973a47566b5ca37b1d"/></dir><dir name="en_US"><file name="Mage_Econda.csv" hash="66a03ed8c951ee3c7f413d7e5c8419fc"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>