39 lines
1.7 KiB
Smarty
Executable File
39 lines
1.7 KiB
Smarty
Executable File
<script type="text/javascript">
|
|
{literal}(function () {
|
|
var _tsid = '{/literal}{$tsId}{literal}';
|
|
_tsConfig = {
|
|
'yOffset': '0', /* offset from page bottom */
|
|
'variant': 'custom_reviews', /* text, default, small, reviews, custom, custom_reviews */
|
|
'customElementId': 'customCheckoutDiv', /* required for variants custom and custom_reviews */
|
|
'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
|
|
'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
|
|
'customBadgeHeight': '70', /* for custom variants: 40 - 90 (in pixels) */
|
|
'disableResponsive': 'false', /* deactivate responsive behaviour */
|
|
'disableTrustbadge': 'false', /* deactivate trustbadge */
|
|
'customCheckoutElementId': 'customCheckoutDiv'
|
|
};
|
|
var _ts = document.createElement('script');
|
|
_ts.type = 'text/javascript';
|
|
_ts.charset = 'utf-8';
|
|
_ts.async = true;
|
|
_ts.src = 'https://widgets.trustedshops.com/js/' + _tsid + '.js';
|
|
var __ts = document.getElementsByTagName('script')[0];
|
|
__ts.parentNode.insertBefore(_ts, __ts);
|
|
})();
|
|
{/literal}
|
|
</script>
|
|
<script type="application/ld+json">
|
|
{literal}
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "LocalBusiness",
|
|
"name": "{/literal}{$shopName}{literal}",
|
|
"aggregateRating" : {
|
|
"@type": "AggregateRating",
|
|
"ratingValue" : "{/literal}{$result}{literal}",
|
|
"bestRating" : "{/literal}{$max}{literal}",
|
|
"ratingCount" : "{/literal}{$count}{literal}"
|
|
}
|
|
}
|
|
{/literal}
|
|
</script> |