bugfix: article titles were escaped
This commit is contained in:
parent
e61bb002bf
commit
1f60e936d9
@ -138,7 +138,7 @@
|
|||||||
|
|
||||||
_gaq.push(['_addTrans',
|
_gaq.push(['_addTrans',
|
||||||
'[{$order->oxorder__oxordernr->value}]', [{* // order ID - required *}]
|
'[{$order->oxorder__oxordernr->value}]', [{* // order ID - required *}]
|
||||||
'[{$oxcmp_shop->oxshops__oxname->value}]', [{* // affiliation or store name *}]
|
'[{$oxcmp_shop->oxshops__oxname->value|escape:"quotes"}]', [{* // affiliation or store name *}]
|
||||||
[{if $oD3GASettings->getValue('blD3GAUseNetto')}]
|
[{if $oD3GASettings->getValue('blD3GAUseNetto')}]
|
||||||
'[{math equation="s / r" s=$order->getOrderNetSum() r=$currate format="%.2f"}]', [{* // total - required - has to be gross sum *}]
|
'[{math equation="s / r" s=$order->getOrderNetSum() r=$currate format="%.2f"}]', [{* // total - required - has to be gross sum *}]
|
||||||
[{else}]
|
[{else}]
|
||||||
@ -146,17 +146,17 @@
|
|||||||
[{/if}]
|
[{/if}]
|
||||||
'[{math equation="s - r" s=$order->getTotalOrderSum() r=$order->getOrderNetSum() format="%.2f"}]', [{* // tax *}]
|
'[{math equation="s - r" s=$order->getTotalOrderSum() r=$order->getOrderNetSum() format="%.2f"}]', [{* // tax *}]
|
||||||
'[{math equation="s / r" s=$order->oxorder__oxdelcost->value r=$currate format="%.2f"}]', [{* // shipping *}]
|
'[{math equation="s / r" s=$order->oxorder__oxdelcost->value r=$currate format="%.2f"}]', [{* // shipping *}]
|
||||||
'[{$order->oxorder__oxbillcity->value}]', [{* // city *}]
|
'[{$order->oxorder__oxbillcity->value|escape:"quotes"}]', [{* // city *}]
|
||||||
'[{$order->oxorder__oxbillstate->value}]', [{* // state or province *}]
|
'[{$order->oxorder__oxbillstate->value|escape:"quotes"}]', [{* // state or province *}]
|
||||||
'[{$order->oxorder__oxbillcountry->value}]' [{* // country *}]
|
'[{$order->oxorder__oxbillcountry->value|escape:"quotes"}]' [{* // country *}]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
[{foreach from=$order->getOrderArticles() item=oOrderArticle}]
|
[{foreach from=$order->getOrderArticles() item=oOrderArticle}]
|
||||||
_gaq.push(['_addItem',
|
_gaq.push(['_addItem',
|
||||||
'[{$order->oxorder__oxordernr->value}]', [{* // order ID - required *}]
|
'[{$order->oxorder__oxordernr->value}]', [{* // order ID - required *}]
|
||||||
'[{$oOrderArticle->oxorderarticles__oxartnum->value}]', [{* // SKU/code *}]
|
'[{$oOrderArticle->oxorderarticles__oxartnum->value|escape:"quotes"}]', [{* // SKU/code *}]
|
||||||
'[{$oOrderArticle->oxorderarticles__oxtitle->value}]', [{* // product name *}]
|
'[{$oOrderArticle->oxorderarticles__oxtitle->value|escape:"quotes"}]', [{* // product name *}]
|
||||||
'[{$oOrderArticle->oxorderarticles__d3_galocator->value}]', [{* // category or variation *}]
|
'[{$oOrderArticle->oxorderarticles__d3_galocator->value|escape:"quotes"}]', [{* // category or variation *}]
|
||||||
[{*'[{$oOrderArticle->oxorderarticles__oxselvariant->value}]', [{* // category or variation *}]
|
[{*'[{$oOrderArticle->oxorderarticles__oxselvariant->value}]', [{* // category or variation *}]
|
||||||
[{if $oD3GASettings->getValue('blD3GAUseNetto')}]
|
[{if $oD3GASettings->getValue('blD3GAUseNetto')}]
|
||||||
[{assign var="oPrice" value=$oOrderArticle->getPrice()}]
|
[{assign var="oPrice" value=$oOrderArticle->getPrice()}]
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
ga('ecommerce:addTransaction', {
|
ga('ecommerce:addTransaction', {
|
||||||
'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaction ID. Required *}]
|
'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaction ID. Required *}]
|
||||||
'affiliation': '[{$oxcmp_shop->oxshops__oxname->value}]', [{* Affiliation or store name *}]
|
'affiliation': '[{$oxcmp_shop->oxshops__oxname->value|escape:"quotes"}]', [{* Affiliation or store name *}]
|
||||||
'revenue': '[{$sTotal}]', [{* Gesamtwert *}]
|
'revenue': '[{$sTotal}]', [{* Gesamtwert *}]
|
||||||
'shipping': '[{$sShipping}]', [{* Versand *}]
|
'shipping': '[{$sShipping}]', [{* Versand *}]
|
||||||
'tax': '[{$sTax}]' [{* Steuer *}]
|
'tax': '[{$sTax}]' [{* Steuer *}]
|
||||||
@ -31,9 +31,9 @@
|
|||||||
|
|
||||||
ga('ecommerce:addItem', {
|
ga('ecommerce:addItem', {
|
||||||
'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaktions-ID *}]
|
'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaktions-ID *}]
|
||||||
'name': '[{$oOrderArticle->oxorderarticles__oxtitle->value}]', [{* Produktname *}]
|
'name': '[{$oOrderArticle->oxorderarticles__oxtitle->value|escape:"quotes"}]', [{* Produktname *}]
|
||||||
'sku': '[{$oOrderArticle->oxorderarticles__oxartnum->value}]', [{* SKU/Code *}]
|
'sku': '[{$oOrderArticle->oxorderarticles__oxartnum->value|escape:"quotes"}]', [{* SKU/Code *}]
|
||||||
'category': '[{$oOrderArticle->oxorderarticles__d3_galocator->value}]', [{* Kategorie oder Ausführung *}]
|
'category': '[{$oOrderArticle->oxorderarticles__d3_galocator->value|escape:"quotes"}]', [{* Kategorie oder Ausführung *}]
|
||||||
[{*'category': '[{$oOrderArticle->oxorderarticles__oxselvariant->value}]', [{* Kategorie oder Ausführung *}]
|
[{*'category': '[{$oOrderArticle->oxorderarticles__oxselvariant->value}]', [{* Kategorie oder Ausführung *}]
|
||||||
'price': '[{$sPrice}]', [{* Preis pro Einheit *}]
|
'price': '[{$sPrice}]', [{* Preis pro Einheit *}]
|
||||||
'quantity': '[{$oOrderArticle->oxorderarticles__oxamount->value}]' [{* Menge *}]
|
'quantity': '[{$oOrderArticle->oxorderarticles__oxamount->value}]' [{* Menge *}]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
=> ??
|
=> 3.2.0.0
|
||||||
- Tracking für gekaufte Artikel enthält Daten zur Kategorie / Seite, aus der die Artikel zuerst in den Warenkorb gelegt wurden
|
- Tracking für gekaufte Artikel enthält Daten zur Kategorie / Seite, aus der die Artikel zuerst in den Warenkorb gelegt wurden
|
||||||
|
- Bugfix: Artikeltitel werden escaped, sofern Quotes enthalten sind
|
||||||
|
|
||||||
=> 3.1.0.2
|
=> 3.1.0.2
|
||||||
- Bugfix: deaktiviertes Modul kann benötigtes Objekt nicht laden
|
- Bugfix: deaktiviertes Modul kann benötigtes Objekt nicht laden
|
||||||
|
Loading…
Reference in New Issue
Block a user