Skip to content

Commit 5ff5823

Browse files
committed
Merge remote-tracking branch 'origin/master'
Conflicts: app/design/frontend/base/default/template/piwikanalytics/piwik.phtml package.xml
2 parents 7a47dcb + 28e3172 commit 5ff5823

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

app/design/frontend/base/default/template/piwikanalytics/piwik.phtml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,30 @@
1919

2020
if ($siteId) {
2121

22+
<<<<<<< HEAD
2223
/*remove https or https*/
2324
$installPath = preg_replace('#^https?:#', '', $installPath);
2425

26+
=======
27+
/*path for noscript should take unaltered path*/
28+
$bugPath = $installPath;
29+
30+
if (strpos($installPath, 'https://') !== false) {
31+
$secureInstallPath = $installPath;
32+
$installPath = str_replace('https://', 'http://', $installPath);
33+
}
34+
if (strpos($installPath, 'http://') === false) {
35+
$installPath = 'http://' . $installPath;
36+
$secureInstallPath = str_replace('http://', 'https://', $installPath);
37+
}
38+
39+
$last = $installPath[strlen($installPath) - 1];
40+
41+
if ($last != '/') {
42+
$installPath .= '/';
43+
$secureInstallPath .= '/';
44+
}
45+
>>>>>>> origin/master
2546

2647
// 0 Search Results
2748
if($this->getRequest()->getControllerName()=='result') {
@@ -38,9 +59,14 @@
3859
<script type="text/javascript">
3960
//<![CDATA[
4061
var _paq = _paq || [];
62+
<<<<<<< HEAD
4163
(function(){
4264
var u="<?php echo $installPath ?>";
4365
_paq.push(['setSiteId', <?php echo $siteId ?>]);
66+
=======
67+
(function(){ var u=(("https:" == document.location.protocol) ? "<?php echo $secureInstallPath ?>" : "<?php echo $installPath ?>");
68+
_paq.push(['setSiteId', <?php echo $siteId ?>]);
69+
>>>>>>> origin/master
4470
_paq.push(['setTrackerUrl', u+'piwik.php']);
4571
<?php echo $this->_getEcommerceCartUpdate()?>
4672
<?php echo $this->_getOrdersTrackingCode()?>

package.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ Version 1.1.6 Refactor tracker&#xD;
4040
access to the Piwik iframe***&#xD;
4141
&#xD;
4242
&lt;p&gt;After install, make sure you clear your cache. Click &lt;strong&gt;&lt;a href="http://www.statstory.com/piwik-ecommerce-extension-for-magento/"&gt;here&lt;/a&gt;&lt;/strong&gt; for more details on how it works and how to install.&lt;/p&gt;</description>
43+
<<<<<<< HEAD
4344
<notes>Source code Available at: https://github.com/adriansonline/Piwik-for-Magento&#xD;
45+
=======
46+
<notes>Piwik Search "No Search" results data in Piwik via noroute&#xD;
47+
&#xD;
48+
Source code Available at: https://github.com/adrianspeyer/Piwik-for-Magento&#xD;
49+
>>>>>>> origin/master
4450
&#xD;
4551
</notes>
4652
<authors><author><name>Adrian Speyer</name><user>AdrianSpeyer</user><email>[email protected]</email></author></authors>

0 commit comments

Comments
 (0)