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 +1 -1
- app/code/local/Mage/Econda/Block/EcondaOp.php +1 -1
- app/code/local/Mage/Econda/Block/Emos.php +783 -759
- app/code/local/Mage/Econda/Helper/Data.php +1 -1
- app/code/local/Mage/Econda/Model/Base.php +1 -1
- app/code/local/Mage/Econda/Model/Basket.php +15 -8
- app/code/local/Mage/Econda/Model/Item.php +21 -22
- app/code/local/Mage/Econda/Model/System/Config/Source/Billing.php +1 -1
- app/code/local/Mage/Econda/Model/System/Config/Source/Langid.php +1 -1
- app/code/local/Mage/Econda/Model/System/Config/Source/Language.php +1 -1
- app/code/local/Mage/Econda/Model/System/Config/Source/Product.php +1 -1
- app/code/local/Mage/Econda/Model/System/Config/Source/Siteid.php +1 -1
- app/code/local/Mage/Econda/etc/config.xml +2 -2
- app/code/local/Mage/Econda/etc/system.xml +238 -274
- app/design/frontend/base/default/layout/econda.xml +1 -1
- app/design/frontend/base/default/template/econda/tracker.phtml +1 -1
- app/design/frontend/default/default/layout/econda.xml +1 -1
- app/design/frontend/default/default/template/econda/tracker.phtml +1 -1
- app/etc/modules/Mage_Econda.xml +1 -1
- app/locale/de_AT/Mage_Econda.csv +0 -0
- app/locale/de_CH/Mage_Econda.csv +0 -0
- app/locale/de_DE/Mage_Econda.csv +0 -0
- app/locale/en_US/Mage_Econda.csv +0 -0
- js/tracker/emos2.js +1 -1
- js/tracker/emosop.js +1 -1
- package.xml +7 -7
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)
|
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)
|
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 -
|
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 =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] 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->
|
201 |
-
$item->
|
202 |
-
$item->
|
203 |
-
$item->
|
204 |
-
$item->
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
$str =
|
221 |
-
$str =
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
$
|
226 |
-
$str = str_replace(
|
227 |
-
$str = str_replace("
|
228 |
-
$str = str_replace("
|
229 |
-
$str = str_replace("
|
230 |
-
$str = str_replace("
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
$
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
$str = str_replace(" /", "/", $str);
|
242 |
-
$str = str_replace("/
|
243 |
-
$str =
|
244 |
-
$str =
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
$str =
|
249 |
-
$str =
|
250 |
-
$str =
|
251 |
-
$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 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
*
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
*
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
* @param $
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
if($this->ecString == "") {
|
557 |
-
$this->ecString .= " emospro.ec_Event = [\n";
|
558 |
-
}
|
559 |
-
$this->ecString .= "
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
" emosECPageArray[".$this->ecCounter."]
|
570 |
-
" emosECPageArray[".$this->ecCounter."]['
|
571 |
-
" emosECPageArray[".$this->ecCounter."]['
|
572 |
-
" emosECPageArray[".$this->ecCounter."]['
|
573 |
-
" emosECPageArray[".$this->ecCounter."]['
|
574 |
-
" emosECPageArray[".$this->ecCounter."]['
|
575 |
-
" emosECPageArray[".$this->ecCounter."]['
|
576 |
-
" emosECPageArray[".$this->ecCounter."]['
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
$
|
615 |
-
|
616 |
-
|
617 |
-
$
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
if ($
|
622 |
-
$ort .=
|
623 |
-
}
|
624 |
-
if ($
|
625 |
-
$ort .= "$
|
626 |
-
}
|
627 |
-
if ($
|
628 |
-
$ort .= $
|
629 |
-
}
|
630 |
-
if(
|
631 |
-
$
|
632 |
-
}
|
633 |
-
|
634 |
-
$out = "
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
" ".$arrayName."
|
639 |
-
" ".$arrayName."[
|
640 |
-
"
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
$
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
$
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
$
|
707 |
-
|
708 |
-
|
709 |
-
$out .= "]]
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
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 =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] 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 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)
|
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)
|
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)
|
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 |
-
|
|
|
|
|
295 |
}
|
296 |
else{
|
297 |
-
|
|
|
|
|
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 |
-
|
|
|
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 |
-
|
440 |
-
|
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)
|
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 |
-
*
|
25 |
*/
|
26 |
-
|
27 |
-
var $productID = "NULL";
|
28 |
|
29 |
-
|
30 |
-
*
|
31 |
*/
|
|
|
32 |
|
33 |
-
|
|
|
|
|
|
|
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 |
-
|
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 |
-
|
63 |
-
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
10 |
Open Software License (OSL 3.0) */ -->
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Mage_Econda>
|
14 |
-
<version>1.6.
|
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)
|
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
|
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
|
46 |
-
</td>
|
47 |
-
<td style="vertical-align:middle;">
|
48 |
-
<a href="http://www.econda.de/
|
49 |
-
</td>
|
50 |
-
</tr>
|
51 |
-
<tr>
|
52 |
-
<td>
|
53 |
-
<
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
<p
|
58 |
-
<p>&
|
59 |
-
<p
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
</
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
<
|
77 |
-
<
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
<
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
<
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<
|
101 |
-
<
|
102 |
-
<li>
|
103 |
-
<li>
|
104 |
-
<li>
|
105 |
-
<li>
|
106 |
-
<li>
|
107 |
-
|
108 |
-
<
|
109 |
-
|
110 |
-
|
111 |
-
<
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
<tr>
|
153 |
-
<td style="padding-bottom:20px;">
|
154 |
-
<p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;
|
155 |
-
</td>
|
156 |
-
</tr>
|
157 |
-
<tr>
|
158 |
-
<td style="padding-bottom:20px;">
|
159 |
-
|
160 |
-
</td>
|
161 |
-
</tr>
|
162 |
-
<tr>
|
163 |
-
<td>
|
164 |
-
<p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
</
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
<
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
</
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
<
|
222 |
-
|
223 |
-
|
224 |
-
<
|
225 |
-
<
|
226 |
-
<
|
227 |
-
<
|
228 |
-
|
229 |
-
|
230 |
-
<
|
231 |
-
<
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
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> </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> </p>
|
58 |
+
<p style="font-family:Arial;color:#000000;font-size:10pt;line-height:1.3em;font-weight:bold;">TÜV zertifizierter Datenschutz</p>"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."<br /><em style="font-size:12px;">Thomas Karst, Geschäftsführer der Trusted Shops GmbH</em>
|
59 |
+
<p> </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 />"Geprüfter Datenschutz" 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> </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 "/js/tracker" 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 "Einstellungen" 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;">"Verwendete Sprache"</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 "Warenkorb" auf Englisch als "Shopping Cart" 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;">"Siteid"</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;">"Rechnung und Preise"</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;">"Produkt ID"</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)
|
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)
|
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)
|
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)
|
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)
|
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-
|
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.
|
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
|
10 |
-
<description>Bindet econda Web
|
11 |
-
<notes>Integration of econda Web Controlling functions
|
12 |
<authors><author><name>ecdev</name><user>ecmagento</user><email>reinecke@econda.de</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Mage"><dir name="Econda"><dir name="Block"><file name="Econda.php" hash="
|
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>
|