Save
This commit is contained in:
16
modules/raty/views/templates/hook/raty_cart.tpl
Normal file
16
modules/raty/views/templates/hook/raty_cart.tpl
Normal 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>
|
||||
Reference in New Issue
Block a user