function convertCurrencyToCzech() { $("[currency]").each(function () { //this is the target text string converted to a number var numprice = Number($(this).text()); // create a function to set the International number format var nprice = Intl.NumberFormat(`cs-CZ`, { style : 'currency', currency: 'CZK', useGrouping: true, currencyDisplay: 'narrowSymbol', minimumFractionDigits: 0 //maximumFractionDigits: 0 } ); // replace the current value for the new formatted value $(this).text(nprice.format(numprice)); }); } $(window).on('load', function() { convertCurrencyToCzech(); FWP.refresh(); }); document.addEventListener('facetwp-refresh', function(){ wtw_webflow_init(); convertCurrencyToCzech(); }); document.addEventListener('facetwp-loaded', function(){ wtw_webflow_init(); convertCurrencyToCzech(); });

Zásady ochrany osobních údajů