This commit is contained in:
Kerim 2023-06-22 00:55:17 +05:00
parent 012038b26a
commit d7cdbf5a45
2 changed files with 4 additions and 10 deletions

View File

@ -4,7 +4,7 @@ code = "top-menu"
[session]
[localePicker]
forceUrl = 1
forceUrl = 0
==
<?php
function onStart(){

View File

@ -64,7 +64,7 @@ title = "Checkout"
<div class="ltn__payment-note mt-30 mb-30">
</div>
<button {% if nurgulToken != "" %} onclick="saveOrder();" {% endif %} class="btn theme-btn-1 btn-effect-1 text-uppercase"
<button {% if nurgulToken != "" %} data-request="onSaveOrder" {% endif %} class="btn theme-btn-1 btn-effect-1 text-uppercase"
type="button">{{'place.order'|_}}</button>
</div>
</div>
@ -167,13 +167,7 @@ title = "Checkout"
})
}
function saveOrder() {
oc.ajax('onSaveOrder', {
success: function (data) {
console.log(data);
}
})
}
</script>
{% endput %}
{% endif %}
{% endif %}