diff --git a/changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_trustedstore.tpl b/changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_trustedstore.tpl index db12d4b..e19732e 100644 --- a/changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_trustedstore.tpl +++ b/changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_trustedstore.tpl @@ -7,7 +7,9 @@ gts.push(["badge_position", "BOTTOM_RIGHT"]); gts.push(["locale", "[{$sD3CurrentGTSLang}]"]); [{if $oD3GASettings->getValue('sD3GATSShoppingActive')}] - gts.push(["google_base_offer_id", "[{$sD3GATSProdId}]"]); + [{if $sD3GATSProdId}] + gts.push(["google_base_offer_id", "[{$sD3GATSProdId}]"]); + [{/if}] gts.push(["google_base_subaccount_id", "[{$oD3GASettings->getValue('sD3GATSShoppingAccountId')}]"]); gts.push(["google_base_country", "[{$oD3GASettings->getValue('sD3GATSShoppingCountry')|upper}]"]); gts.push(["google_base_language", "[{$oD3GASettings->getValue('sD3GATSShoppingLanguage')|lower}]"]); @@ -51,8 +53,8 @@ [{math equation="fi + se + th + fo" fi=$oOrder->getFieldData('oxartvatprice1') se=$oOrder->getFieldData('oxartvatprice2') th=$oOrder->getFieldData('oxpayvat') fo=$oOrder->getFieldData('oxdelvat') format="%.2f"}] [{$oView->d3GAgetEstimatedDeliveryDate()|date_format:"%Y-%m-%d"}] [{$oView->d3GAgetEstimatedShippingDate()|date_format:"%Y-%m-%d"}] - [{$oView->d3GAhasBackorderPreorder()}] - [{$oView->d3GAhasDigitalGoods()}] + [{$oView->d3GAhasBackorderPreorder()}] + [{$oView->d3GAhasDigitalGoods()}] diff --git a/copy_this/modules/d3/d3_googleanalytics/modules/components/d3_oxcmp_utils_googleanalytics.php b/copy_this/modules/d3/d3_googleanalytics/modules/components/d3_oxcmp_utils_googleanalytics.php index 3ae7db2..9f431e3 100644 --- a/copy_this/modules/d3/d3_googleanalytics/modules/components/d3_oxcmp_utils_googleanalytics.php +++ b/copy_this/modules/d3/d3_googleanalytics/modules/components/d3_oxcmp_utils_googleanalytics.php @@ -336,7 +336,7 @@ class d3_oxcmp_utils_googleanalytics extends d3_oxcmp_utils_googleanalytics_pare if (count($aArticleIds)) { return $aArticleIds[array_keys($aArticleIds)[0]]; } else { - return ""; + return "not_set"; } }