Skip to main content
Košík
Domů
E-shop
Galerie
Kontakt
Domů
E-shop
Galerie
Kontakt
Košík
Home
/
Podložky SPZ
/
S potiskem
/
Hotové návrhy
/ Rychlost
Rychlost
Showing the single result
Default sorting
Sort by popularity
Sort by latest
Sort by price: low to high
Sort by price: high to low
Podložka Racer #2
199,00
zł
s DPH (
161,79
zł
bez DPH)
Customize
(function () { function updatePriceSuffix(root = document) { // 1. pôvodný prípad (woocommerce-price-suffix) root.querySelectorAll('.woocommerce-price-suffix').forEach(el => { if (el.dataset.processed === 'true') return; const text = el.textContent.trim(); const match = text.match(/s DPH\s*\((.*)\s*bez DPH\)/); if (!match) return; const price = match[1]; el.innerHTML = `
s DPH
(${price} bez DPH)
`; el.dataset.processed = 'true'; }); // 2. nový prípad (tiered pricing) root.querySelectorAll('.tiered-pricing-dynamic-price-wrapper').forEach(el => { if (el.dataset.processed === 'true') return; // nájdi node s "bez DPH" const excluding = el.querySelector('.tiered-pricing-dynamic-price__excluding_tax'); if (!excluding) return; // cena bez DPH (zachová HTML!) const excludingHTML = excluding.innerHTML; // odstráň pôvodný text "s DPH (...)" // zachová len hlavnú cenu (prvý span) const mainPrice = el.querySelector('.woocommerce-Price-amount.amount')?.outerHTML; if (!mainPrice) return; el.innerHTML = ` ${mainPrice}
s DPH
(${excludingHTML} bez DPH)
`; el.dataset.processed = 'true'; }); } // init document.addEventListener('DOMContentLoaded', function () { updatePriceSuffix(); }); // WooCommerce variation document.body.addEventListener('found_variation', function () { setTimeout(() => updatePriceSuffix(), 50); }); // observer (AJAX / YOOtheme) const observer = new MutationObserver((mutations) => { mutations.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1) { updatePriceSuffix(node); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })();