first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,150 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awarded by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*/
.form-tab-item {
cursor: pointer;
}
.list-group-item i {
margin-right: 8px;
}
input[type="range"] {
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
margin:0;
outline:none;
background-color:inherit;
background-size:0;
cursor:pointer;
padding:0;
width:100%;
vertical-align:middle;
}
input[type="range"]::-moz-range-track {
-moz-appearance:none;
appearance:none;
margin:10.5px 0;
border-radius:5px;
border-color:transparent;
background-color:#eee;
background-image:linear-gradient(#30aabc,#30aabc);
background-repeat:repeat-y;
background-size:0;
width:99.8%;
height:5px;
color:transparent;
box-sizing:border-box;
}
input[type="range"]::-ms-track {
appearance:none;
margin:10.5px 0;
border-radius:5px;
border-color:transparent;
background-color:#eee;
background-image:linear-gradient(#30aabc,#30aabc);
background-repeat:repeat-y;
background-size:0;
width:99.8%;
height:5px;
color:transparent;
box-sizing:border-box;
}
input[type="range"]::-webkit-slider-runnable-track {
-webkit-appearance:none;
appearance:none;
margin:10.5px 0;
border-radius:5px;
border-color:transparent;
background-color:#eee;
background-image:-webkit-gradient(linear,left top,left bottom,from(#30aabc),to(#30aabc));
background-image:linear-gradient(#30aabc,#30aabc);
background-repeat:repeat-y;
background-size:0;
width:99.8%;
height:5px;
color:transparent;
-webkit-box-sizing:border-box;
box-sizing:border-box;
}
input[type="range"]::-moz-range-thumb {
-moz-appearance:none;
appearance:none;
margin:-7.5px 0;
border:3px solid #30aabc;
border-radius:100%;
box-shadow:0 4px 8px 0 rgba(36,83,107,.15);
background-color:#30aabc;
width:20px;
height:20px;
box-sizing:border-box;
}
input[type="range"]::-ms-thumb {
appearance:none;
margin:-7.5px 0;
border:3px solid #30aabc;
border-radius:100%;
box-shadow:0 4px 8px 0 rgba(36,83,107,.15);
background-color:#30aabc;
width:20px;
height:20px;
box-sizing:border-box;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance:none;
appearance:none;
margin:-7.5px 0;
border:3px solid #30aabc;
border-radius:100%;
-webkit-box-shadow:0 4px 8px 0 rgba(36,83,107,.15);
box-shadow:0 4px 8px 0 rgba(36,83,107,.15);
background-color:#30aabc;
width:20px;
height:20px;
-webkit-box-sizing:border-box;
box-sizing:border-box;
}
input[type="range"]::-moz-range-progress {
border-top-left-radius:5px;
border-bottom-left-radius:5px;
background-color:#30aabc;
height:5px;
}
input[type="range"]::-ms-fill-lower {
border-top-left-radius:5px;
border-bottom-left-radius:5px;
background-color:#30aabc;
height:5px;
}
input[type="range"]::-moz-focus-outer {
border:0;
}
input[type="range"]::-ms-tooltip {
display:none;
}
input[type="range"]::-webkit-slider-container,
input[type="range"]::-webkit-slider-runnable-track {
background-size:inherit;
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,157 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*/
(function() {
'use strict';
// Initialize all user events when DOM ready
document.addEventListener('DOMContentLoaded', initCommonForm, false);
function initCommonForm() {
var formTabs;
var inputsWithSelectInput;
var inputsWithSelectMenu;
formTabs = document.querySelector('#js-form-tabs');
if (formTabs) {
formTabs.addEventListener('click', toggleTabs, false);
}
inputsWithSelectInput = document.querySelectorAll('.js-inputwithselect-input');
if (inputsWithSelectInput) {
inputsWithSelectInput.forEach(function (inputWithSelectNode) {
if (inputWithSelectNode.min || inputWithSelectNode.max) {
inputWithSelectNode.addEventListener('change', inputWithSelectInput, false);
}
});
}
inputsWithSelectMenu = document.querySelectorAll('.js-inputwithselect-menu');
if (inputsWithSelectMenu) {
inputsWithSelectMenu.forEach(function (inputWithSelectNode) {
inputWithSelectNode.addEventListener('click', inputWithSelectMenu, false);
});
}
}
// toggle form tabs
function toggleTabs(event) {
var tabSelectors = ['.js-tab-item'];
var target = delegateEvents(tabSelectors, event.target);
var targetClassList;
var tabsList;
var tabsContent;
if (event.button === 0 && target) {
targetClassList = target.classList;
if (targetClassList.contains('reachable') && !targetClassList.contains('active')) {
tabsList = document.querySelectorAll('.js-tab-item');
tabsContent = document.querySelectorAll('.js-tab-content');
// handle tab column
tabsList.forEach(function (tab) {
if (tab.id === target.id) {
tab.classList.add('active');
} else {
tab.classList.remove('active');
}
});
// handle form values
tabsContent.forEach(function (content) {
if (content.id !== 'js-tab-content-' + target.id) {
content.classList.add('hidden');
} else {
content.classList.remove('hidden');
}
});
}
}
}
// handle imputs with select options
function inputWithSelectMenu(event) {
var optionSelector = ['.js-inputwithselect-option'];
var target = delegateEvents(optionSelector, event.target);
var mainSelector = ['.input-group-btn'];
var mainNode;
var inputNode;
var labelNode;
if (event.button === 0 && target) {
event.preventDefault();
mainNode = delegateEvents(mainSelector, target);
inputNode = mainNode.querySelector('input');
inputNode.value = target.dataset.value;
labelNode = mainNode.querySelector('.js-inputwithselect-label');
labelNode.innerText = target.innerText.trim();
}
}
// handle input limits
function inputWithSelectInput(event) {
var winnerInputNode = event.target;
if (winnerInputNode.max) {
if (Number(winnerInputNode.value) > Number(winnerInputNode.max)) {
winnerInputNode.value = winnerInputNode.max;
}
}
if (winnerInputNode.min) {
if (Number(winnerInputNode.value) < Number(winnerInputNode.min)) {
winnerInputNode.value = winnerInputNode.min;
}
}
}
// JS TOOLS - LIKE JQ CLOSEST
function delegateEvents(selectors, target) {
var matchMode;
if (target) {
// get available browser matches function
matchMode = target.matches || target.webkitMatchesSelector || target.msMatchesSelector;
// get function name (general browsers || iE9)
matchMode = matchMode.name || /function\s+([\w\$]+)\s*\(/.exec(matchMode.toString());
// on iE9 get the name value, empty value on anonymous fn
if (typeof matchMode !== 'string') {
matchMode = matchMode ? matchMode[1] : '';
}
// continue only if we get matches selector function
if (matchMode) {
while (target.parentNode !== null) {
if (target.nodeType === 1) {
// iterate all selectors
for (var i = 0; i < selectors.length; i++) {
// compare if node match with selector
if (target[matchMode](selectors[i])) {
// if match return target
return target;
}
}
}
// if no match or nodeType !== 1 go to parent
target = target.parentNode;
}
}
}
}
})();

View File

@@ -0,0 +1,68 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*/
(function(){
'use strict';
// Initialize all user events when DOM ready
document.addEventListener('DOMContentLoaded', initConfigForm, false);
function initConfigForm() {
var hidingTimeNode;
var eventValueNodes;
hidingTimeNode = document.querySelector('#RC_PGANALYTICS_SSSR');
hidingTimeNode.addEventListener('input', validateSiteSpeedSampleRate);
eventValueNodes = document.querySelectorAll('.js-event-value');
eventValueNodes.forEach(function(eventValueNode) {
eventValueNode.addEventListener('input', validateEventValue);
});
}
function validateSiteSpeedSampleRate(event) {
var min = 1;
var max = 100;
var isNumber = /^\d+$/;
var inputValue = event.target.value;
if (isNumber.test(inputValue)) {
if (Number(inputValue) > max) {
event.target.value = max;
} else if (Number(inputValue) < min) {
event.target.value = min;
}
} else {
event.target.value = min;
}
}
function validateEventValue(event) {
var min = 0;
var isNumber = /^\d+$/;
var inputValue = event.target.value;
if (isNumber.test(inputValue)) {
if (Number(inputValue) < min) {
event.target.value = min;
}
} else {
event.target.value = min;
}
}
})();

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,185 @@
/**
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*/
(function() {
'use strict';
// Initialize all user events when DOM ready
document.addEventListener('DOMContentLoaded', initRcGaContentOrder, false);
function initRcGaContentOrder() {
var orderDetailNode;
var detailSentNode;
var detailByNode;
var stStatusMessageNode;
var notSendMessageNode;
var sendButtonNode;
var removeButtonNode;
orderDetailNode = document.querySelector('.js-rcga-order-detail');
detailSentNode = document.querySelector('.js-rcga-detail-sent');
detailByNode = document.querySelector('.js-rcga-detail-by');
stStatusMessageNode = document.querySelector('.js-rcga-st-status');
notSendMessageNode = document.querySelector('.js-rcga-not-send');
sendButtonNode = document.querySelector('.js-rcga-send');
removeButtonNode = document.querySelector('.js-rcga-remove');
// bind action on node to handle it on event method
sendButtonNode.action = 'forceTransaction';
// bind event listener to button node
sendButtonNode.addEventListener('click', rcAjaxAction, false);
removeButtonNode.action = 'deleteFromControlTable';
removeButtonNode.addEventListener('click', rcAjaxAction, false);
// handle display depending actual status
if (rcTrackingReport) {
orderDetailNode.classList.remove('hidden');
detailSentNode.innerText = rcTrackingReport.sent_at;
detailByNode.innerText = rcTrackingStatuses[rcTrackingReport.sent_from];
removeButtonNode.classList.remove('hidden');
if (rcTrackingReport.sent_from === 'st') {
stStatusMessageNode.classList.remove('hidden');
}
} else {
notSendMessageNode.classList.remove('hidden');
sendButtonNode.classList.remove('hidden');
}
}
function rcAjaxAction(event) {
var req = new XMLHttpRequest();
var url = rcGaModuleUrl + 'rc_pganalytics-ajax.php';
var action = event.target.action;
var data = {
'action': action,
'id_order': rcOrderId,
'id_shop': rcOrderIdShop
};
var formData;
formData = new FormData();
formData.append('data', JSON.stringify(data));
formData.append('token', rcGaToken);
animateIcon('refresh');
req.open('POST', url, true);
req.onreadystatechange = function () {
var response;
var type;
if (req.readyState === 4 && req.status === 200) {
type = req.getResponseHeader('Content-Type');
if (type === 'application/json') {
response = JSON.parse(req.responseText);
if (typeof response === 'object') {
if (action === 'deleteFromControlTable') {
afterDeleteInControlTable(response);
} else if (action === 'forceTransaction') {
afterForceTransaction(response);
}
}
}
}
};
req.send(formData);
}
function animateIcon(action) {
var iconNode;
iconNode = document.querySelector('.js-rcga-icon i');
if (action === 'refresh') {
iconNode.className = 'icon-refresh icon-spin';
} else if (action === 'ok') {
iconNode.className = 'icon-check-circle';
} else if (action === 'ko') {
iconNode.className = 'icon-times-circle';
}
}
function afterDeleteInControlTable(response) {
var orderDetailNode;
var detailSentNode;
var detailByNode;
var stStatusMessageNode;
var notSendMessageNode;
var sendButtonNode;
var removeButtonNode;
if (response && response.result) {
// get all nodes
orderDetailNode = document.querySelector('.js-rcga-order-detail');
detailSentNode = document.querySelector('.js-rcga-detail-sent');
detailByNode = document.querySelector('.js-rcga-detail-by');
stStatusMessageNode = document.querySelector('.js-rcga-st-status');
notSendMessageNode = document.querySelector('.js-rcga-not-send');
sendButtonNode = document.querySelector('.js-rcga-send');
removeButtonNode = document.querySelector('.js-rcga-remove');
// wipe old data from detail
detailSentNode.innerText = '';
detailByNode.innerText = '';
// hidden all other nodes
orderDetailNode.classList.add('hidden');
stStatusMessageNode.classList.add('hidden');
removeButtonNode.classList.add('hidden');
// display required nodes
notSendMessageNode.classList.remove('hidden');
sendButtonNode.classList.remove('hidden');
animateIcon('ko');
}
}
function afterForceTransaction(response) {
var orderDetailNode;
var detailSentNode;
var detailByNode;
var stStatusMessageNode;
var notSendMessageNode;
var sendButtonNode;
var removeButtonNode;
if (response) {
// get all nodes
orderDetailNode = document.querySelector('.js-rcga-order-detail');
detailSentNode = document.querySelector('.js-rcga-detail-sent');
detailByNode = document.querySelector('.js-rcga-detail-by');
stStatusMessageNode = document.querySelector('.js-rcga-st-status');
notSendMessageNode = document.querySelector('.js-rcga-not-send');
sendButtonNode = document.querySelector('.js-rcga-send');
removeButtonNode = document.querySelector('.js-rcga-remove');
// wipe old data from detail
detailSentNode.innerText = response.sent_at;
detailByNode.innerText = rcTrackingStatuses[response.sent_from];
// hidden all other nodes
notSendMessageNode.classList.add('hidden');
sendButtonNode.classList.add('hidden');
stStatusMessageNode.classList.add('hidden');
// display required nodes
orderDetailNode.classList.remove('hidden');
removeButtonNode.classList.remove('hidden');
animateIcon('ok');
}
}
})();

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,52 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awarded by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*}
{addJsDef rcGaToken=$rcToken}
{addJsDef rcGaModuleUrl=$moduleUrl}
{addJsDef rcOrderId=$rc_order_id}
{addJsDef rcOrderIdShop=$rc_order_id_shop}
{addJsDef rcTrackingReport=$tracking_report}
{addJsDef rcTrackingStatuses=$tracking_statuses}
<div class="tab-pane" id="rcga-tracking">
<h4 class="visible-print">
{l s='Tracking Status' mod='rc_pganalytics'}
{if $tracking_report}
<i class="icon-check-circle-o"></i>
{else}
<i class="icon-times-circle-o"></i>
{/if}
</h4>
<div class="well">
<div class="rc-messages">
<p class="js-rcga-st-status alert alert-warning hidden">
{l s='This order has been included in the control table at installation process to avoid duplicates with old tracking modules, so maybe the transaction is not registered on GA' mod='rc_pganalytics'}.<br>
<strong>{l s='If you want to send this order to GA, click on' mod='rc_pganalytics'} "{l s='Remove from Control Table' mod='rc_pganalytics'}" {l s='button to enable the manual send' mod='rc_pganalytics'}</strong>
</p>
<p class="js-rcga-not-send alert alert-danger hidden">
{l s='This order has not been sent to GA' mod='rc_pganalytics'}.<br>
<strong>{l s='Change the order status to send it automatically or click the' mod='rc_pganalytics'} "{l s='Force Send to GA' mod='rc_pganalytics'}" {l s='button' mod='rc_pganalytics'}</strong>
</p>
</div>
<dl class="js-rcga-order-detail list-detail hidden">
<dt>Transaction sent</dt>
<dd class="js-rcga-detail-sent"></dd>
<dt>Sent By</dt>
<dd class="js-rcga-detail-by"></dd>
</dl>
</div>
<div class="tracking-options">
<button type="button" class="js-rcga-send btn btn-primary hidden">{l s='Force Send to GA' mod='rc_pganalytics'}</button>
<button type="button" class="js-rcga-remove btn btn-danger hidden">{l s='Remove from Control Table' mod='rc_pganalytics'}</button>
</div>
</div>

View File

@@ -0,0 +1,22 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awarded by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*}
<li>
<a href="#rcga-tracking">
<i class="icon-area-chart"></i> {l s='Tracking Status' mod='rc_pganalytics'}
<span class="js-rcga-icon badge">
<i class="{if $tracking_report}icon-check-circle{else}icon-times-circle{/if}"></i>
</span>
</a>
</li>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,184 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*}
<script type="text/javascript">
// Instantiate the tracking class
var rcAnalyticsEvents = new RcAnalyticsEvents();
// page controller
var controllerName = '{$controller_name}';
var compliantModules = {$compliant_modules|json_encode nofilter};
var compliantModuleName = '{$compliant_module_name}';
var skipCartStep = '{$skip_cart_step}';
var isOrder = '{$is_order}';
var isCheckout = '{$is_checkout}';
var isClientId = {$is_client_id};
var gaOrder;
var gaProducts;
////////////////////////////
// set tracking features
rcAnalyticsEvents.trackingFeatures = {$gtag_tracking_features|json_encode nofilter};
// set checkout values
rcAnalyticsEvents.controllerName = controllerName;
rcAnalyticsEvents.isCheckout = isCheckout;
rcAnalyticsEvents.compliantModuleName = compliantModuleName;
rcAnalyticsEvents.skipCartStep = skipCartStep;
// list names
rcAnalyticsEvents.lists = {$lists|json_encode nofilter};
// Google remarketing - page type
rcAnalyticsEvents.ecommPageType = '{$ecomm_pagetype}';
{if isset($products_list_cache)}
// get products list to cache
rcAnalyticsEvents.productsListCache = {$products_list_cache|json_encode nofilter};
{/if}
// Listing products
{if isset($ga_products)}
// checkout pages
gaProducts = {$ga_products|json_encode nofilter};
{/if}
{if isset($ga_order)}
// Order complete
gaOrder = {$ga_order|json_encode nofilter};
{/if}
/////////////////////////////////
// init gtag
rcAnalyticsEvents.sendGtagConfig('analyticsId');
rcAnalyticsEvents.sendGtagConfig('adwordsId');
///////////////////////////////////////////////
// Initialize all user events when DOM ready
document.addEventListener('DOMContentLoaded', initTrackingEvents, false);
window.addEventListener('pageshow', fireEventsOnPageShow, false);
///////////////////////////////////////////////
function initTrackingEvents() {
// Events binded on all pages
// Events binded to document.body to avoid firefox fire events on right/central click
document.body.addEventListener('click', rcAnalyticsEvents.eventClickPromotionItem, false);
// bind prestashop events with tracking events
prestashop.on(
'updateCart',
function (event) {
rcAnalyticsEvents.eventAddCartProduct(event);
}
);
prestashop.on(
'clickQuickView',
function (event) {
rcAnalyticsEvents.eventProductView(event)
}
);
prestashop.on(
'updatedProduct',
function (event) {
rcAnalyticsEvents.eventProductView(event)
}
);
if (!isCheckout && !isOrder) {
// init first scroll action for those products all ready visible on screen
rcAnalyticsEvents.eventScrollList();
// bind event to scroll
window.addEventListener('scroll', rcAnalyticsEvents.eventScrollList, false);
// init Event Listeners
document.body.addEventListener('click', rcAnalyticsEvents.eventClickProductList, false);
if (rcAnalyticsEvents.trackingFeatures.goals.socialAction) {
document.body.addEventListener('click', rcAnalyticsEvents.eventSocialShareProductView, false);
}
////////////////////////
// SEARCH PAGE
if (controllerName === 'search') {
rcAnalyticsEvents.onSearchResults();
}
////////////////////////
// PRODUCT PAGE
if (controllerName === 'product') {
// send product detail view
rcAnalyticsEvents.eventProductView();
}
}
////////////////////////
// CHECKOUT PROCESS
if (isCheckout) {
// SUMMARY CART
if (controllerName === 'cart') {
// events on summary Cart
document.body.addEventListener('click', rcAnalyticsEvents.eventCartQuantityDelete, false);
document.body.addEventListener('click', rcAnalyticsEvents.eventCartQuantityUp, false);
document.body.addEventListener('click', rcAnalyticsEvents.eventCartQuantityDown, false);
}
////////////////////////
// CHECKOUT
if (!compliantModuleName && controllerName === 'order') {
// Events on Checkout Process
document.body.addEventListener('click', rcAnalyticsEvents.eventPrestashopCheckout, false);
} else if (
compliantModuleName === 'supercheckout'
&& controllerName === compliantModules[compliantModuleName]
) {
// Compatible with super-checkout by Knowband
document.body.addEventListener('click', rcAnalyticsEvents.eventOpcSuperCheckout, false);
document.body.addEventListener('click', rcAnalyticsEvents.eventCartOpcSuperCheckout, false);
} else if (
compliantModuleName === 'onepagecheckoutps'
&& controllerName === compliantModules[compliantModuleName]
) {
// compatible with OPC by PrestaTeamShop
document.body.addEventListener('click', rcAnalyticsEvents.eventOpcPrestaTeam, false);
document.body.addEventListener('click', rcAnalyticsEvents.eventCartOpcPrestaTeam, false);
} else if (
compliantModuleName === 'thecheckout'
&& controllerName === compliantModules[compliantModuleName]
) {
// Compatible with thecheckout by Zelarg
document.body.addEventListener('click', rcAnalyticsEvents.eventOpcTheCheckout, false);
document.body.addEventListener('click', rcAnalyticsEvents.eventCartOpcTheCheckout, false);
}
}
}
function fireEventsOnPageShow(event){
// fixes safari back cache button
if (event.persisted) {
window.location.reload()
}
// Sign up feature
if (rcAnalyticsEvents.trackingFeatures.goals.signUp && rcAnalyticsEvents.trackingFeatures.isNewSignUp) {
rcAnalyticsEvents.onSignUp();
}
if (isClientId) {
rcAnalyticsEvents.setClientId();
}
// Checkout and order complete
if (isCheckout && gaProducts) {
rcAnalyticsEvents.onCheckoutProducts(gaProducts);
} else if (isOrder && gaOrder && gaProducts) {
rcAnalyticsEvents.onAddOrder(gaOrder, gaProducts, rcAnalyticsEvents.trackingFeatures.idShop);
}
}
</script>

View File

@@ -0,0 +1,38 @@
{*
* NOTICE OF LICENSE
*
* This source file is subject to a trade license awared by
* Garamo Online L.T.D.
*
* Any use, reproduction, modification or distribution
* of this source file without the written consent of
* Garamo Online L.T.D It Is prohibited.
*
* @author ReactionCode <info@reactioncode.com>
* @copyright 2015-2020 Garamo Online L.T.D
* @license Commercial license
*}
{if isset($optimize_id, $optimize_class_name) && $optimize_id && $optimize_class_name}
<!-- Google Optimize Page Hiding-->
<style>.{$optimize_class_name} {ldelim}opacity: 0 !important{rdelim} </style>
<script data-keepinline>
{literal}
(function(a,s,y,n,c,h,i,d,e){
s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);
h.timeout=c;
})
{/literal}
(window,document.documentElement,'{$optimize_class_name}','dataLayer',{$optimize_time_out},{ldelim}'{$optimize_id}':true{rdelim});
</script>
{/if}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src='https://www.googletagmanager.com/gtag/js?id={$analytics_id}' data-keepinline></script>
<script data-keepinline>
{literal}
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
{/literal}
</script>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;