This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,27 @@
<script>
function check(event) {
let checkbox = document.getElementById('alior_product_promotion');
value = event.target.checked ? 1 : 0;
checkbox.value = value;
}
</script>
<div id="caraty-product-promotion">
<h2>Raty Alior</h2>
<div class="row">
<div class="col-md-12">
<label>
<input type="checkbox" id="alior_product_promotion" name="alior_product_promotion" onclick="check(event)"/>
Włącz ofertę specjalną dla tego produktu
</label>
</div>
</div>
</div>
<script>
let checkbox = document.getElementById('alior_product_promotion');
checkbox.value = {$alior_product_promotion}
checkbox.checked = false;
if(checkbox.value === '1') {
checkbox.checked = true;
}
</script>