first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<!--<button class="btn btn-default inbank-calculate" data-title="{__ text='RATY Inbank'}" data-amount="{$amount}">{__ text="Oblicz"}</button>-->
<img src="/plugins/stInBankPlugin/images/inbank_raty_v1.png" style="max-height: 27px; margin-left: 5px">
<!--
{literal}
<script>
jQuery(function($) {
$('.inbank-calculate').click(function() {
var btn = $(this);
var current = $('.payment-radio:checked');
var title = current.length ? current.data('payment-name') : btn.data('title');
var amount = btn.data('amount');
if ($.inBank.validateAmount(amount, title)) {
var modal = $('#inbank-modal-message');
$.inBank.showMessage(title, '<iframe src="https://brandwise.cloud/dev/inbank/calc/?price=' + amount + '" style="height: 826px; border: none;"></iframe>', true);
}
return false;
});
});
</script>
{/literal}
-->

View File

@@ -0,0 +1,15 @@
{set layout="one_column"}
<div id="payment">
<div class="panel panel-default center-block">
<div class="panel-heading">
{__ text="Blue Media"}
</div>
<div class="panel-body text-center">
<p>
<img src="/plugins/stInBankPlugin/images/logo.svg" alt="" style="max-width: 150px" />
</p>
<p>{__ text="Płatność anulowana przez klienta"}</p>
<a href="{$homepage_url}" class="btn btn-primary">{__ text="Wróć do zakupów" langCatalogue="stBasket"}</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="panel panel-default center-block">
<div id="payu-panel-body" class="panel-body text-center">
<p>
<img src="/plugins/stInBankPlugin/images/logo.svg" alt="" style="max-width: 150px" />
</p>
<p>
{__ text="Wystąpił problem podczas realizacji płatności"}<br/>
</p>
{if $contact_url}
<p>
<a href="{$contact_url}" class="btn btn-primary">
{__ text="Skontaktuj się z nami"}
</a>
</p>
{/if}
</div>
</div>

View File

@@ -0,0 +1,70 @@
<div id="inbank-modal-message" class="modal fade modal-vertical-centered" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body text-center"></div>
<div class="modal-footer">
<div class="text-center">
<button type="button" class="btn btn-default" data-dismiss="modal">{__ text="Zamknij"}</button>
</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{literal}
<script>
jQuery(function($) {
var form = $('#user_delivery_form');
var messages = {
{/literal}
minBasketAmount: '{__ text="Minimalna kwota zamówienia to _amount_" _amount_=100|st_currency_format}',
maxBasketAmount: '{__ text="Maksymalna kwota zamówienia to _amount_" _amount_=12000|st_currency_format}'
{literal}
};
$.inBank = {
showMessage: function(title, message, iframe = false) {
var modal = $('#inbank-modal-message');
modal.find('.modal-title').html(title);
var body = modal.find('.modal-body').html(message);
if (iframe) {
body.css({ 'padding': '0px' });
modal.find('.modal-dialog').css({ 'width': '302px' });
}
modal.modal('show');
},
validateAmount: function(amount, title) {
if (amount < 100) {
this.showMessage(title, messages.minBasketAmount);
return false;
}
if (amount > 12000) {
this.showMessage(title, messages.maxBasketAmount);
return false;
}
return true;
},
}
form.submit(function() {
var current = $('.payment-radio:checked');
if (current.data('payment-type') == 'stInBank') {
var title = current.data('payment-name');
var amount = current.find('.inbank-calculate').data('amount');
return $.inBank.validateAmount(amount, title);
}
});
});
</script>
{/literal}

View File

@@ -0,0 +1,12 @@
{set layout="one_column"}
<div id="payment">
<div class="panel panel-default center-block">
<div class="panel-body text-center">
<p>
<img src="/plugins/stInBankPlugin/images/logo.svg" alt="" style="max-width: 150px" />
</p>
<p>{__ text="Dziękujemy za skorzystanie z Inbank. Zamówienie zostanie zrealizowane po pozytywnym rozpatrzeniu wniosku."}</p>
<a href="{$homepage_url}" class="btn btn-primary">{__ text="Wróć do zakupów" catalogue="stBasket"}</a>
</div>
</div>
</div>