add translations + add currency

This commit is contained in:
MaxBUhe 2022-12-20 11:52:25 +01:00
parent 4c08f58777
commit 6bfe8b90e6
3 changed files with 13 additions and 8 deletions

View File

@ -25,7 +25,11 @@ input.confinput:hover {outline:3px solid #ff3600;}
</style>'; </style>';
$aLang = [ $aLang = [
'charset' => 'UTF-8', 'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_vt_gtm_settings' => $style . 'Einstellungen',
'SHOP_MODULE_vt_gtm_sContainerID' => 'Container ID', 'SHOP_MODULE_vt_gtm_sContainerID' => 'Container ID',
'SHOP_MODULE_vt_gtm_promotionlistids' => 'Promotion Produktlisten IDs <div>Weitere Infos zu dieser Einstellung: <b><u><a href="https://github.com/vanilla-thunder/oxid-module-gtm/wiki/Promotion-Produktlisten" target="_blank">Modui-Wiki</a></u></b></div>', 'SHOP_MODULE_GROUP_vt_gtm_settings' => 'Einstellungen',
'SHOP_MODULE_vt_gtm_blGA4enab' => 'GA4 Aktivieren',
'SHOP_MODULE_vt_gtm_blUAenabled' => 'UA Aktivieren',
'SHOP_MODULE_vt_gtm_sMpapisecret' => 'Map ist Geheim??',
'SHOP_MODULE_vt_gtm_aPromotionlistIDs' => 'Promotion Produktlisten IDs <div>Weitere Infos zu dieser Einstellung: <b><u><a href="https://github.com/vanilla-thunder/oxid-module-gtm/wiki/Promotion-Produktlisten" target="_blank">Modui-Wiki</a></u></b></div>',
'SHOP_MODULE_vt_gtm_blEnableDebug' => 'Debug-Modus aktivieren',
]; ];

View File

@ -14,8 +14,8 @@
'affiliation':'[{$oxcmp_shop->oxshops__oxname->value}]', 'affiliation':'[{$oxcmp_shop->oxshops__oxname->value}]',
'revenue':'[{$_gtmOrder->oxorder__oxtotalordersum->value}]', 'revenue':'[{$_gtmOrder->oxorder__oxtotalordersum->value}]',
'tax':'[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]', 'tax':'[{math equation="x+y" x=$_gtmOrder->oxorder__oxartvatprice1->value y=$_gtmOrder->oxorder__oxartvatprice2->value }]',
'shipping':'[{$_gtmOrder->oxorder__oxdelcost->value}]' 'shipping':'[{$_gtmOrder->oxorder__oxdelcost->value}]',
/*'coupon':'CANO25' //if a coupon code was used for this order*/ 'currency': "[{$_gtmOrder->getFieldData('oxcurrency')}]"
}, },
'products':[ 'products':[
[{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}] [{foreach from=$_gtmArticles item="_gtmArticle" name="gtmArticles"}]

View File

@ -129,7 +129,7 @@ $aModule = [
], ],
[ [
'group' => 'vt_gtm_settings', 'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_blGA4enabled', 'name' => 'vt_gtm_blGA4enab',
'type' => 'bool', 'type' => 'bool',
'value' => true, 'value' => true,
'position' => 1 'position' => 1
@ -141,13 +141,14 @@ $aModule = [
'value' => true, 'value' => true,
'position' => 2 'position' => 2
], ],
[ /*[
I have no idea what this is
'group' => 'vt_gtm_settings', 'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_sMpapisecret', 'name' => 'vt_gtm_sMpapisecret',
'type' => 'str', 'type' => 'str',
'value' => '', 'value' => '',
'position' => 3 'position' => 3
], ],*/
[ [
'group' => 'vt_gtm_settings', 'group' => 'vt_gtm_settings',
'name' => 'vt_gtm_aPromotionlistIDs', 'name' => 'vt_gtm_aPromotionlistIDs',