This commit is contained in:
Roman Pyrih
2024-12-12 15:57:01 +01:00
parent 2e7c3943e4
commit e75fa515f5
62 changed files with 4916 additions and 42 deletions

View File

@@ -0,0 +1,16 @@
<script>
function getPrice() {
let price = '{$this_cena}';
let priceObj = document.querySelectorAll('.cart-total .value');
if (priceObj.length > 0) {
price = priceObj[priceObj.length - 1].textContent;
}
return parseFloat(price.replace(',', '.').replace(/[^\d.]/g, ""));
}
</script>
<div id="oblicz-rate" style="text-align:center;bottom:-4px;right: 400px">
<a onclick="window.open('{$this_kalkulator}' + getPrice())" target="_blank">
<img src="{$this_path_raty}/alior-kalkulator-guzik.gif"/>
</a>
</div>