website

TJM's Biggest Black Friday
Sale Is Here!

Find Gear For Your 4X4 Vehicle

POPULAR 4x4 ACCESSORIES

Protection
Protection
Suspension
Suspension
Recovery
Recovery
Camping
Camping
Air and Tyre
Air and Tyre
Snorkels
Snorkels
Canopies
Canopies
Communications
Communications
Diff Locks
Diff Locks
Interior
Interior
Lighting
Lighting
Power
Power
Performance
Performance
Roof Racks
Roof Racks
Storage
Storage
Towing
Towing
Trays and Tubs
Trays and Tubs
Merch
Merch
Deals
Deals

SHOP BY POPULAR VEHICLE

4X4 ACCESSORIES, RECOVERY & CAMPING GEAR.

SEE IN STORE FOR LEADING BRANDS

JOIN CLUB TJM

Join Club TJM for exclusive features & offers only
available to Club TJM members.

  • Receive invites to the latest Club TJM special member days, store open days & more.
  • Find out about the latest TJM products before everyone else.
  • Receive exclusive special offers on TJM & our brands, straight to your inbox.
  • Be notified of the latest TJM competitions, exclusive to Club TJM.
  • Enable the ability to request a quote from your nearest TJM store.
  • Unlock VIP brochures, videos & more, exclusive to Club TJM.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
require(['jquery'],function($){ $(document).ready(function() { $('.mgz-element-single_image').parent().parent().addClass('mgz-element-single_image_column'); //$('.mgz-element-single_image').parent().parent().parent().addClass('mgz-element-single_image_container'); }); }); window.cookiesConfig = window.cookiesConfig || {}; window.cookiesConfig.secure = true; require.config({ map: { '*': { wysiwygAdapter: 'mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter' } } }); require.config({ paths: { googleMaps: 'https\u003A\u002F\u002Fmaps.googleapis.com\u002Fmaps\u002Fapi\u002Fjs\u003Fv\u003D3\u0026key\u003D' }, config: { 'Magento_PageBuilder/js/utils/map': { style: '' }, 'Magento_PageBuilder/js/content-type/map/preview': { apiKey: '', apiKeyErrorMessage: 'You\u0020must\u0020provide\u0020a\u0020valid\u0020\u003Ca\u0020href\u003D\u0027https\u003A\u002F\u002Fmarketing.tjm.com.au\u002Fadminhtml\u002Fsystem_config\u002Fedit\u002Fsection\u002Fcms\u002F\u0023cms_pagebuilder\u0027\u0020target\u003D\u0027_blank\u0027\u003EGoogle\u0020Maps\u0020API\u0020key\u003C\u002Fa\u003E\u0020to\u0020use\u0020a\u0020map.' }, 'Magento_PageBuilder/js/form/element/map': { apiKey: '', apiKeyErrorMessage: 'You\u0020must\u0020provide\u0020a\u0020valid\u0020\u003Ca\u0020href\u003D\u0027https\u003A\u002F\u002Fmarketing.tjm.com.au\u002Fadminhtml\u002Fsystem_config\u002Fedit\u002Fsection\u002Fcms\u002F\u0023cms_pagebuilder\u0027\u0020target\u003D\u0027_blank\u0027\u003EGoogle\u0020Maps\u0020API\u0020key\u003C\u002Fa\u003E\u0020to\u0020use\u0020a\u0020map.' }, } }); require.config({ shim: { 'Magento_PageBuilder/js/utils/map': { deps: ['googleMaps'] } } }); require([ 'jquery' ], function ($) { $(document).ready(function(){ $('.mini-quickquote').parents('.page-header').addClass('header-quickquote--mod'); if (window.innerWidth <= 767) { $('.mini-quickquote').insertAfter('.header-content-right'); } $('.mini-quickquote__link').on('click', function(e) { e.preventDefault(); $(this).parent().toggleClass('mini-quickquote__open'); $('.mini-quickquote__content').slideToggle(); }); $('.mini-quickquote__close').on('click', function(e) { e.preventDefault(); $('.mini-quickquote').removeClass('mini-quickquote__open'); $('.mini-quickquote__content').slideUp(); }); $("body").on('click', function(e) { if(!$(e.target).closest('.mini-quickquote').length) { $('.mini-quickquote').removeClass('mini-quickquote__open'); $('.mini-quickquote__content').slideUp(); } }); }); } ); require([ 'jquery' ], function ($) { $(document).mouseup(function (e) { var container = $('.located-store'); if (!container.is(e.target) && container.has(e.target).length === 0) { $('.located-store__overlay').removeClass('located-store__expand'); $('.located-store__overlay').slideUp(); } }); } ); require([ 'jquery' ], function($) { $(document).ready(function() { // Optimalisation: Store the references outside the event handler: var $window = $(window); // Execute on load checkWidth(); // Bind event listener $(window).resize(checkWidth); function checkWidth() { var windowsize = $window.width(); if(windowsize < 660) { $('.header.links.extra').hide(); } } }); } ); require([ 'jquery', 'zozomegamenu' ], function($) { $(document).ready(function() { $(".zozo-megamenu").zozoMegamenu(); $('.navigation-main__has-children > a').click(function(e) { e.stopPropagation(); let $this = $(this); if ($this.hasClass('selected-nav')) { $this.removeClass('selected-nav'); $this.next().slideUp(); } else { $this.parent().siblings().find('a').removeClass('selected-nav'); $this.parent().parent().find('.navigation-main__sub-wrapper').slideUp(); $this.toggleClass('selected-nav'); $this.next().slideToggle(); } }); $(document).click(function (e) { if ( !$(e.target).closest('.navigation-main').length ) { $(".navigation-main__has-children > a").removeClass('selected-nav'); $('.navigation-main__sub-wrapper').slideUp(); } }); }); }); require(['jquery'],function($){ $(document).ready(function() { $('.section-item-content-1').show(); $('.section-item-back').on("click",function(e){ $('html').removeClass('nav-open'); $('body').removeClass('nav-open'); }); $('.nav-toggle').on("click",function(e){ $('html').toggleClass('nav-before-open nav-open'); $('body').toggleClass('nav-before-open nav-open'); }); $('.nav-sections .nav-sections-item-title a').on("click",function(e){ $(this).toggleClass('nav-account-open'); $('.section-item-content-2').slideToggle(); }); }); }); require(['jquery'],function($){ $(document).ready(function(){ $('.scrolltosection .mgz-element-separator-wrapper').append('
Prev
'); $('.scrolltosection .mgz-element-separator-wrapper').each(function (index,element){ var nextHeading = $(element).parents('.mgz-element-row').next().find('.mgz-element-heading').first().text(); if(nextHeading) $(element).append('
'+nextHeading+'
'); }) $('.mgz-element-separator.scrolltosection').each(function() { var $this = $(this), $href = $this.find('.title'), $target = $this.find('.nextsection span'); $href.insertBefore($target); }); if ($('.scrolltosection').parents('.mgz-element-row').prev().length){ $('.prevsection').click(function () { $('html, body').animate({ scrollTop: $(this).parents('.mgz-element-row').prev().offset().top - 80 }, 800); return false; }); } if ($('.scrolltosection').parents('.mgz-element-row').next().length){ $('.nextsection').click(function () { $('html, body').animate({ scrollTop: $(this).parents('.mgz-element-row').next().offset().top - 80 }, 800); return false; }); } }); });
require(['jquery', 'jquery/jquery-storageapi'], function($) { var storage = $.initNamespaceStorage('mage-cache-storage').localStorage; storage.remove('messages'); }); console.log('Please go to "Stores => Settings => Configuration" and configure your LiveChat account.'); require([ 'jquery', ], function($){ // }); require(['jquery', 'slickjs'], function ($,LazyLoad) { $('#1730935788672bfbecc66ad').slick({ dots: 0, arrows: 0, autoplay: 1, autoplaySpeed: 8000, infinite:false, pauseOnHover: false, speed: 300, slidesToShow: 1, slidesToScroll: 1 }); }); require(['jquery'],function($){ $(document).ready(function(){ $("#loadMore").on("click", function(e){ e.preventDefault(); $(this).toggleClass("loadMoreLess"); $('.home-categories-grid__item:nth-child(n+7)').slideToggle('100'); if(!$(this).hasClass("loadMoreLess")){ $(this).text("Load More"); $('html, body').animate({ scrollTop: $(".categories__grid").offset().top - 50 }, 100); }else{ $(this).text("Load Less"); } }); }); }) prodImageContainers = document.querySelectorAll(".product-image-container-22965"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-22965 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-22986"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-22986 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-35823"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-35823 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-43428"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-43428 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-45102"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-45102 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-45103"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-45103 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-45294"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-45294 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-45483"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-45483 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-45498"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-45498 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-46143"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-46143 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-46144"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-46144 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-46550"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-46550 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; }prodImageContainers = document.querySelectorAll(".product-image-container-46551"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-46551 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; } require(['jquery', 'Magezon_Builder/js/carousel'], function ($) { $('#1730894441672b5a694fe46').carousel({"item_xl":"6","item_lg":"4","item_md":"3","item_sm":"2","item_xs":"2","nav":true,"dots":true,"autoplayHoverPause":true,"autoplay":true,"autoplayTimeout":"5000","lazyLoad":true,"loop":false,"margin":0,"autoHeight":false,"rtl":false,"center":false,"slideBy":"1","animateIn":"","animateOut":"","stagePadding":0}); }) require(['jquery', 'slickjs'], function ($,LazyLoad) { $('#1730935796672bfbf46823d').slick({ dots: 1, arrows: 1, autoplay: 0, autoplaySpeed: 5000, infinite:false, pauseOnHover: false, speed: 300, slidesToShow: 1, slidesToScroll: 1 }); }); require(['jquery', 'carouseljs'], function ($) { $('.section-brands__carousel > .inner-content').owlCarousel({ loop: false, margin: 0, items: 5, responsiveClass: true, responsive: { 0: { items: 2, nav: false, dots: true, }, 600: { items: 3, nav: false, dots: true, }, 767: { items: 5, nav: true, dots: false, } } }) }); prodImageContainers = document.querySelectorAll(".product-image-container-79328"); for (var i = 0; i < prodImageContainers.length; i++) { prodImageContainers[i].style.width = "280px"; } prodImageContainersWrappers = document.querySelectorAll( ".product-image-container-79328 span.product-image-wrapper" ); for (var i = 0; i < prodImageContainersWrappers.length; i++) { prodImageContainersWrappers[i].style.paddingBottom = "150%"; } require(['jquery', 'Magezon_Builder/js/carousel'], function ($) { $('#1730894443672b5a6b66255').carousel({"item_xl":"5","item_lg":"4","item_md":"3","item_sm":"2","item_xs":"2","nav":false,"dots":true,"autoplayHoverPause":false,"autoplay":false,"autoplayTimeout":"5000","lazyLoad":true,"loop":false,"margin":0,"autoHeight":true,"rtl":false,"center":false,"slideBy":"1","animateIn":"","animateOut":"","stagePadding":0}); }) require(['jquery'],function($){ $(document).ready(function(){ $('.footer__backtotop a').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); }); require(['jquery'], function($) { $('.rfq-addnote').click(function() { var $parent = $(this).parent(); $parent.find('textarea').toggle(); $(this).hide(); }); }) require(['jquery', 'LazyLoad'], function ($,LazyLoad) { $(document).ready(function () { let images = document.querySelectorAll(".lazy"); new LazyLoad(images); }); }); require(['jquery', "Ves_All/lib/bootstrap/js/bootstrap.min" ], function ($) { if($(".ves-megamenu").length > 0) { $(".ves-megamenu").each(function(){ if($(this).find('.nav-anchor').length > 0){ $(this).find('.nav-anchor').each(function(index, el) { if ($(this).attr('href') == 'https://marketing.tjm.com.au') { $(this).parent().addClass('active'); $(this).parents(".nav-item.parent").addClass('active'); $(this).parents(".nav-item.dropdown-submenu").addClass('active'); if($(this).find(".ves-caret.fa.fa-plus").length > 0){ var caret_obj = $(this).find(".ves-caret").first(); $(caret_obj).removeClass("fa-plus").addClass("fa-minus").addClass("item-active"); } if($(this).parents(".nav-item.parent").length > 0){ $(this).parents(".nav-item.parent").each(function(index2, el2){ if($(this).children(".nav-anchor").length >0 && $(this).children(".nav-anchor").children(".ves-caret.fa.fa-plus").length > 0){ var caret_obj2 = $(this).children(".nav-anchor").children(".ves-caret.fa.fa-plus").first(); $(caret_obj2).removeClass("fa-plus").addClass("fa-minus").addClass("item-active"); } }) } if($(this).parents(".nav-item.dropdown-submenu").length > 0){ $(this).parents(".nav-item.dropdown-submenu").each(function(index2, el2){ if($(this).children(".dropdown-menu").length > 0) { $(this).addClass("current"); } if($(this).children(".nav-anchor").length >0 && $(this).children(".nav-anchor").children(".ves-caret.fa.fa-plus").length > 0){ var caret_obj2 = $(this).children(".nav-anchor").children(".ves-caret.fa.fa-plus").first(); $(caret_obj2).removeClass("fa-plus").addClass("fa-minus").addClass("item-active"); } }) } } }); } }) } $(document).ready(function() { if (jQuery(".megamenuowl-play").length > 0 ) { require([ 'jquery', 'Ves_All/lib/owl.carousel/owl.carousel.min' ], function ($) { $(".ves-megamenu .nav-item.level0").hover(function() { $(this).find('.megamenuowl-play').each(function() { if (!$(this).hasClass('hasOwl')) { var owlCarousel = jQuery(this).find(".owl-carousel"); var owlId = jQuery(owlCarousel).attr("id"); jQuery(this).addClass("hasOwl"); var config = []; if (typeof(jQuery(owlCarousel).data('nav'))!='undefined') { config['nav'] = jQuery(owlCarousel).data('nav'); } if (typeof(jQuery(owlCarousel).data('dot'))!='undefined') { config['dot'] = jQuery(owlCarousel).data('dot'); } if (typeof(jQuery(owlCarousel).data('autoplay'))!='undefined') { config['autoplay'] = jQuery(owlCarousel).data('autoplay'); } if (jQuery(owlCarousel).data('autoplay-timeout')) { config['autoplayTimeout'] = jQuery(owlCarousel).data('autoplay-timeout'); } if (jQuery(owlCarousel).data('autoplay-pauonhover')) { config['autoplayHoverPause'] = jQuery(owlCarousel).data('autoplay-pauonhover'); } if (typeof(jQuery(owlCarousel).data('rtl'))!='undefined') { config['rtl'] = jQuery(owlCarousel).data('rtl'); } if (jQuery(owlCarousel).data('items')) { config['items'] = jQuery(owlCarousel).data('items'); } if (typeof(jQuery(owlCarousel).data('loop'))!='undefined') { config['loop'] = jQuery(owlCarousel).data('loop'); } if (typeof(jQuery(owlCarousel).data('mousedrag'))!='undefined') { config['mouseDrag'] = jQuery(owlCarousel).data('mousedrag'); } if (typeof(jQuery(owlCarousel).data('pulldrag'))!='undefined') { config['pullDrag'] = jQuery(owlCarousel).data('pulldrag'); } if (typeof(jQuery(owlCarousel).data('stagepadding'))!='undefined') { config['stagePadding'] = jQuery(owlCarousel).data('stagepadding'); } if (typeof(jQuery(owlCarousel).data('lazyload'))!='undefined') { config['lazyLoad'] = jQuery(owlCarousel).data('lazyload'); } if (jQuery(owlCarousel).data('margin')) { config['margin'] = jQuery(owlCarousel).data('margin'); } var mobile_items = 1; if (jQuery(owlCarousel).data('mobile-items')) { mobile_items = jQuery(owlCarousel).data('mobile-items'); } var tablet_small_items = 3; if (jQuery(owlCarousel).data('tablet-small-items')) { tablet_small_items = jQuery(owlCarousel).data('tablet-small-items'); } var tablet_items = 3; if (jQuery(owlCarousel).data('tablet-items')) { tablet_items = jQuery(owlCarousel).data('tablet-items'); } var portrait_items = 4; if (jQuery(owlCarousel).data('portrait-items')) { portrait_items = jQuery(owlCarousel).data('portrait-items'); } var large_items = 5; if (jQuery(owlCarousel).data('large-items')) { large_items = jQuery(owlCarousel).data('large-items'); } var large_max_items = 6; if (jQuery(owlCarousel).data('large-max-items')) { large_max_items = jQuery(owlCarousel).data('large-max-items'); } config['responsive'] = { 0 : {items: mobile_items}, 480 : {items: tablet_small_items}, 640 : {items: tablet_items}, 768 : {items: portrait_items}, 980 : {items: large_items}, 1200 : {items: large_max_items} }; jQuery(owlCarousel).owlCarousel(config); jQuery(".owl-left").click(function() { var owlCarousel = jQuery("#"+jQuery(this).data("owlid")); owlCarousel.trigger('prev.owl.carousel'); return false; }); jQuery(".owl-right").click(function() { var owlCarousel = jQuery("#"+jQuery(this).data("owlid")); owlCarousel.trigger('next.owl.carousel'); return false; }); } }); }); }); } }) }); document.addEventListener('DOMContentLoaded', function() { var pageTitleElement = document.querySelector('.catalog-product-view h1.page-title span'); if (pageTitleElement) { var pageTitleText = pageTitleElement.textContent; // Convert the text to lowercase var modifiedText = pageTitleText.toLowerCase(); // Transform "TJM" to uppercase modifiedText = modifiedText.replace(/\btjm\b/g, 'TJM'); // Transform "XGS" to uppercase modifiedText = modifiedText.replace(/\bxgs\b/g, 'XGS'); // Transform "AEROKLAS" to uppercase modifiedText = modifiedText.replace(/\baeroklas\b/g, 'AEROKLAS'); pageTitleElement.textContent = modifiedText; } }); require(['magezonBuilder']); require(['Magezon_PageBuilder/js/common']); var w = document.createElement("script"); w.type = "text/javascript"; w.src = "//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js"; w.async = true; document.head.appendChild(w); (function(w,d,s,r,n){w.TrustpilotObject=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)}; a=d.createElement(s);a.async=1;a.src=r;a.type='text/java'+s;f=d.getElementsByTagName(s)[0]; f.parentNode.insertBefore(a,f)})(window,document,'script', 'https://invitejs.trustpilot.com/tp.min.js', 'tp'); tp('register',''); function inIframe () { try { return window.self !== window.top; } catch (e) { return false; } } function tryParseJson(str) { if (typeof str === 'string') { try { return JSON.parse(str); } catch (e) { return false; } } return false; } if (inIframe()) { window.addEventListener('message', function(e) { var adminOrign = new URL(window.location).hostname; var eventOriginHostname = new URL(e.origin).hostname; if (!e.data || adminOrign !== eventOriginHostname) { return; } if (typeof TrustpilotPreview !== 'undefined') { if (typeof e.data === 'string' && e.data === 'submit') { TrustpilotPreview.sendTrustboxes(); } else { jsonData = tryParseJson(e.data); if (jsonData.trustbox) { TrustpilotPreview.setSettings(jsonData.trustbox); } else if (jsonData.customised) { TrustpilotPreview.updateActive(jsonData.customised); } } } else { var settings = tryParseJson(e.data); if (settings) { var p = document.createElement("script"); p.type = "text/javascript"; p.onload = function () { const iFrame = e.source.parent.document.getElementById('configuration_iframe').contentWindow; TrustpilotPreview.init(['//ecommplugins-scripts.trustpilot.com/v2.1/css/preview.min.css'], settings, iFrame, e.source); }; p.src = '//ecommplugins-scripts.trustpilot.com/v2.1/js/preview.min.js'; document.head.appendChild(p); } } }); } const trustpilot_trustbox_settings = {"trustboxes":[]}; if (trustpilot_trustbox_settings) { document.addEventListener('DOMContentLoaded', function() { tp('trustBox', trustpilot_trustbox_settings); }); }