show Trusted Store specific variables only, if Trusted Store is activated

This commit is contained in:
Daniel Seifert 2015-02-10 13:18:40 +00:00
parent d0a7d9a853
commit d760ff512b
1 changed files with 3 additions and 3 deletions

View File

@ -3,10 +3,10 @@
<script type="text/javascript">
var gts = gts || [];
gts.push(["id", "[{$oD3GASettings->getValue('sD3GATSId')}]"]);
gts.push(["badge_position", "BOTTOM_RIGHT"]);
gts.push(["locale", "[{$sD3CurrentGTSLang}]"]);
[{if $oD3GASettings->getValue('sD3GATSShoppingActive')}]
gts.push(["id", "[{$oD3GASettings->getValue('sD3GATSId')}]"]);
gts.push(["badge_position", "BOTTOM_RIGHT"]);
gts.push(["locale", "[{$sD3CurrentGTSLang}]"]);
[{if $sD3GATSProdId}]
gts.push(["google_base_offer_id", "[{$sD3GATSProdId}]"]);
[{/if}]