first commit
This commit is contained in:
@ -0,0 +1,39 @@
|
||||
<fieldset>
|
||||
<legend>{{ text_instruction }}</legend>
|
||||
<p><b>{{ text_description }}</b></p>
|
||||
<div class="border rounded p-3 mb-2">
|
||||
<p>{{ bank }}</p>
|
||||
<p>{{ text_payment }}</p>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<button type="button" id="button-confirm" class="btn btn-primary">{{ button_confirm }}</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<script type="text/javascript"><!--
|
||||
$('#button-confirm').on('click', function () {
|
||||
var element = this;
|
||||
|
||||
$.ajax({
|
||||
url: 'index.php?route=extension/opencart/payment/bank_transfer.confirm&language={{ language }}',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
$(element).button('loading');
|
||||
},
|
||||
complete: function () {
|
||||
$(element).button('reset');
|
||||
},
|
||||
success: function (json) {
|
||||
if (json['error']) {
|
||||
$('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fa-solid fa-circle-exclamation"></i> ' + json['error'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
//--></script>
|
42
extension/opencart/catalog/view/template/payment/cheque.twig
Normal file
42
extension/opencart/catalog/view/template/payment/cheque.twig
Normal file
@ -0,0 +1,42 @@
|
||||
<fieldset>
|
||||
<legend>{{ text_instruction }}</legend>
|
||||
<div class="border rounded p-3 mb-2">
|
||||
<p><b>{{ text_payable }}</b></p>
|
||||
<p>{{ payable }}</p>
|
||||
<b>{{ text_address }}</b>
|
||||
<br/>
|
||||
<p>{{ address }}</p>
|
||||
<p>{{ text_payment }}</p>
|
||||
</div>
|
||||
<div class="text-end">
|
||||
<button type="button" id="button-confirm" class="btn btn-primary">{{ button_confirm }}</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<script type="text/javascript"><!--
|
||||
$('#button-confirm').on('click', function () {
|
||||
var element = this;
|
||||
|
||||
$.ajax({
|
||||
url: 'index.php?route=extension/opencart/payment/cheque.confirm&language={{ language }}',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
$(element).button('loading');
|
||||
},
|
||||
complete: function () {
|
||||
$(element).button('reset');
|
||||
},
|
||||
success: function (json) {
|
||||
if (json['error']) {
|
||||
$('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fa-solid fa-circle-exclamation"></i> ' + json['error'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
//--></script>
|
31
extension/opencart/catalog/view/template/payment/cod.twig
Normal file
31
extension/opencart/catalog/view/template/payment/cod.twig
Normal file
@ -0,0 +1,31 @@
|
||||
<div class="text-end">
|
||||
<button type="button" id="button-confirm" class="btn btn-primary">{{ button_confirm }}</button>
|
||||
</div>
|
||||
<script type="text/javascript"><!--
|
||||
$('#button-confirm').on('click', function () {
|
||||
var element = this;
|
||||
|
||||
$.ajax({
|
||||
url: 'index.php?route=extension/opencart/payment/cod.confirm&language={{ language }}',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
$(element).button('loading');
|
||||
},
|
||||
complete: function () {
|
||||
$(element).button('reset');
|
||||
},
|
||||
success: function (json) {
|
||||
if (json['error']) {
|
||||
$('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fa-solid fa-circle-exclamation"></i> ' + json['error'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
//--></script>
|
@ -0,0 +1,31 @@
|
||||
<div class="text-end">
|
||||
<button type="button" id="button-confirm" class="btn btn-primary">{{ button_confirm }}</button>
|
||||
</div>
|
||||
<script type="text/javascript"><!--
|
||||
$('#button-confirm').on('click', function() {
|
||||
var element = this;
|
||||
|
||||
$.ajax({
|
||||
url: 'index.php?route=extension/opencart/payment/free_checkout.confirm&language={{ language }}',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
$(element).button('loading');
|
||||
},
|
||||
complete: function () {
|
||||
$(element).button('reset');
|
||||
},
|
||||
success: function (json) {
|
||||
if (json['error']) {
|
||||
$('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fa-solid fa-circle-exclamation"></i> ' + json['error'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function (xhr, ajaxOptions, thrownError) {
|
||||
console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
//--></script>
|
Reference in New Issue
Block a user