https://perfectcasabg.com


Търси
menu

Sign Up

Login *:

Password *:
Password (confirmation) *:

Full name *:

Email address *:

Phone:

Date of birth: --

Your signature:
- Maximum 250 characters
- BB codes disabled

Privacy Policy *:


Security code *:

} function addEuroPrices() { // Взима всички елементи със стойност в лева в количката const priceSelectors = [ '.order-item-price', // цена на продукт '.order-item-sum', // междинна сума на продукт '.order-total', // общо '.order_topay_curr' // обща сума в дъното ]; priceSelectors.forEach(selector => { document.querySelectorAll(selector).forEach(el => { const txt = el.textContent.trim(); const match = txt.match(/^([\d.,]+)\s*лв$/); if (match && !el.innerHTML.includes("€")) { const bgn = parseFloat(match[1].replace(',', '.')); const eur = bgnToEur(bgn); el.innerHTML += `
(${eur})`; } }); }); } addEuroPrices(); } });