Files
wyczarujprezent.pl/modules/ecsgtmpro/views/templates/admin/config-react.tpl
2024-10-28 22:14:22 +01:00

160 lines
9.0 KiB
Smarty

{*
* 2022 ECSoft
*
* 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 dev.ecsoft@gmail.com so we can send you a copy immediately.
*
*
* @author ECSoft <dev.ecsoft@gmail.com>
* @copyright 2022 ECSoft
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of ECSoft
*}
<div id="ar-plugin-root">
<div id="ar-react-plugin-root"></div>
</div>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap" rel="stylesheet">
<style>
#ar-react-plugin-root,
#ar-react-plugin{
height: 100%
}
#main.ar-react-plugin{
padding-bottom: 0;
}
#ar-react-plugin-root{
opacity: 0;
transition: 0.2s 0.5s all;
}
#ar-react-plugin-root.active{
opacity: 1;
}
</style>
<script type="text/javascript">
window.addEventListener('load', function(){
if (document.getElementById('ar-react-plugin-root')) {
document.getElementById('content').className = 'bootstrap-fix';
document.getElementById('main').className = 'ar-react-plugin';
}
document.getElementById('ar-react-plugin-root').className = 'active';
if (document.getElementById('ar-plugin-root')) {
document.getElementById('ar-plugin-root').style.height = document.querySelector('body').clientHeight - 170 + 'px';
}
});
window.addEventListener('resize', function() {
if (document.getElementById('ar-plugin-root')) {
document.getElementById('ar-plugin-root').style.height = document.querySelector('body').clientHeight - 170 + 'px';
}
});
</script>
<script>
var arReactPluginConfig = {
apiURL: '{$ajaxURL nofilter}',
ajaxURLHooks: '{$ajaxURLHooks nofilter}',
ajaxURLHooksInstall: '{$ajaxURLHooksInstall nofilter}',
logoURL: "{$logoURL|escape:'htmlall':'UTF-8'}",
author: '{$author|escape:'htmlall':'UTF-8'}',
authorLogoURL: '{$brandLogoURL|escape:'htmlall':'UTF-8'}',
name: '{$name|escape:'htmlall':'UTF-8'}',
description: '{$description|escape:'htmlall':'UTF-8'}',
version: '{$version|escape:'htmlall':'UTF-8'}',
ratingURL: '{$ratingURL nofilter}',
supportURL: '{$supportURL nofilter}',
defaultLang: {$defaultLang nofilter},
langs: {$langs nofilter},
lex: {
errorLoadingSetting: "{l s='Error loading setting' mod='ecsgtmpro'}",
errorSavingSetting: "{l s='Error saving settings' mod='ecsgtmpro'}",
successSavingSettings: "{l s='Settings saved' mod='ecsgtmpro'}",
hooks: {
'errorInstalling': "{l s='Error re-installing hooks' mod='ecsgtmpro'}",
'error': "{l s='Error fetching data' mod='ecsgtmpro'}",
'hooksOk': "{l s='All hooks are found on the page' mod='ecsgtmpro'}",
'hooksNotOk': "{l s='Some hooks are not found on the page' mod='ecsgtmpro'}",
'moduleRequiresHooks': "{l s='This module requires the following hooks to work properly' mod='ecsgtmpro'}",
'hooksNotOk2': "{l s='Some hooks are not found on the page. Please try to re-install those hooks.' mod='ecsgtmpro'}",
'hooksNotOk3': "{l s='Some hooks are not installed. Please find details below:' mod='ecsgtmpro'}",
'manuallyInstall': "{l s='Please refer this article to install them manually.' mod='ecsgtmpro'}",
'reInstallBtn': "{l s='Re-install hooks' mod='ecsgtmpro'}",
},
ordersTable: {
'noDL': "{l s='No DataLayer' mod='ecsgtmpro'}",
'logId': "{l s='Log ID' mod='ecsgtmpro'}",
'orderId': "{l s='Order ID' mod='ecsgtmpro'}",
'reference': "{l s='Reference' mod='ecsgtmpro'}",
'dlStatus': "{l s='DL Status' mod='ecsgtmpro'}",
'sent': "{l s='Sent' mod='ecsgtmpro'}",
'resent': "{l s='Re-sent' mod='ecsgtmpro'}",
'refund': "{l s='Refund' mod='ecsgtmpro'}",
'total': "{l s='Total' mod='ecsgtmpro'}",
'payment': "{l s='Payment' mod='ecsgtmpro'}",
'status': "{l s='Status' mod='ecsgtmpro'}",
'orderDate': "{l s='Order date' mod='ecsgtmpro'}",
'dlUpdateDate': "{l s='DL update date' mod='ecsgtmpro'}",
},
dlDialog: {
'generalTab': "{l s='General info' mod='ecsgtmpro'}",
'dlTab': "{l s='Datalayer' mod='ecsgtmpro'}",
'noDlAlert': "{l s='No DataLayer saved for this order' mod='ecsgtmpro'}",
'str1': "{l s='Sometimes, the datalayer is not generated.' mod='ecsgtmpro'}",
'str2': "{l s='There are main reasons and how you can fix it:' mod='ecsgtmpro'}",
'str3': "{l s='Why' mod='ecsgtmpro'}",
'str4': "{l s='How to fix' mod='ecsgtmpro'}",
'str5': "{l s='Customers are not redirected to your shop right after the payment' mod='ecsgtmpro'}",
'str6': "{l s='Contact your payment service provider to adjust the payment module configuration in order that the redirection to your shop is automatic and with no delay' mod='ecsgtmpro'}",
'str7': "{l s='The order confirmation page of the payment module is not recognized by the module.' mod='ecsgtmpro'}",
'str8': "{l s='If it is possible, please configure your payment module to redirect your customers to the standard PrestaShop "order confirmation" page.' mod='ecsgtmpro'}",
'str9': "{l s='If it is not possible, contact our customer service so we can analyze how to make your payment module compatible.' mod='ecsgtmpro'}",
'str10': "{l s='While your "missing order confirmation datalayer problem" is not solved, you can still generate and send the datalayer of this order from the backoffice.' mod='ecsgtmpro'}",
'str11': "{l s='It will send the same datalayer to Google Tag Manager as the one sent on the order confirmation page, the only difference will be the user context (browsing history, time on page ...) which is handled by Google Tag Manager and Google Analytics.' mod='ecsgtmpro'}",
'str12': "{l s='Warning about datalayer re-creation and re-send:' mod='ecsgtmpro'}",
'str13': "{l s="The date of the order won't be correct in GA, the current date will be used instead." mod='ecsgtmpro'}",
'str14': "{l s='The referrer will be set to null.' mod='ecsgtmpro'}",
'reGenerateBtn': "{l s='Generate and send order datalayer' mod='ecsgtmpro'}",
'reSendBtn': "{l s='Re-send order datalayer' mod='ecsgtmpro'}",
'viewOrderBtn': "{l s='View full order' mod='ecsgtmpro'}",
'dlSentMessage': "{l s='DataLayer sent. It should appear in Google Analytics within 48H' mod='ecsgtmpro'}",
'dlErrorMessage': "{l s='Error denerating order DataLayer' mod='ecsgtmpro'}",
'dlUpdateDate': "{l s='DataLayer update date' mod='ecsgtmpro'}",
'orderCreateDate': "{l s='Order create date' mod='ecsgtmpro'}",
},
mainTabs: {
'general': "{l s='General settings' mod='ecsgtmpro'}",
'googleCustomerReviews': "{l s='Google Customer Reviews' mod='ecsgtmpro'}",
'gtmOrders': "{l s='GTM Orders' mod='ecsgtmpro'}",
'checkRequiredHooks': "{l s='Check required hooks' mod='ecsgtmpro'}",
'about': "{l s='About the module' mod='ecsgtmpro'}",
'docs': "{l s='Documentation' mod='ecsgtmpro'}",
},
generalTabs: {
'tab1': "{l s='General settings' mod='ecsgtmpro'}",
'tab2': "{l s='Customize data format' mod='ecsgtmpro'}",
'tab3': "{l s='Google Analytics User ID' mod='ecsgtmpro'}",
'tab4': "{l s='Remarketing settings' mod='ecsgtmpro'}"
},
common: {
'ok': "{l s='OK' mod='ecsgtmpro'}",
'save': "{l s='Save' mod='ecsgtmpro'}",
'cancel': "{l s='Cancel' mod='ecsgtmpro'}",
'tryAgain': "{l s='Try again' mod='ecsgtmpro'}",
'close': "{l s='Close' mod='ecsgtmpro'}",
'refresh': "{l s='Refresh' mod='ecsgtmpro'}",
'days': "{l s='days' mod='ecsgtmpro'}",
}
}
};
</script>
<script src="{$path|escape:'htmlall':'UTF-8'}views/js/main.2e25bc13.js"></script>
{* <script src="http://localhost:3000/static/js/bundle.js"></script> *}
<div id="ecsgtmpro-bo-datalayer">
</div>