first commit

This commit is contained in:
sujan
2024-08-06 18:06:00 +05:45
commit a2fa49071a
2745 changed files with 391199 additions and 0 deletions

View File

@ -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>

View 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>

View 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>

View 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/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>