додано переклади

This commit is contained in:
O K
2025-06-01 20:19:08 +03:00
parent 7bd84d8582
commit 67ff82de5d
11 changed files with 836 additions and 488 deletions

View File

@@ -11,19 +11,16 @@
{extends "$layout"}
{block name="content"}
{if isset($hutko_response)}
{l s='You will be redirected to the website in a few seconds.' d='Modules.Hutko.Shop'}
<div class="form-group">
<form id="hutko_redirect" method="POST" action="{$hutko_url}" accept-charset="utf-8">
<h5>{l s='Payment failure. ' d='Modules.Hutko.Shop'}</h5>
<a class="btn btn-primary"
href="{$link->getPageLink('order-history')}">{l s='Please try again' d='Modules.Hutko.Shop'}</a>
{else}
<h5>{l s='Order validation failure' d='Modules.Hutko.Shop'}</h5>
<a class="btn btn-primary" href="{$link->getPageLink('order')}">{l s='Please try again' d='Modules.Hutko.Shop'}</a>
{/if}
{foreach from=$hutko_inputs item=item key=key name=name}
<input type="hidden" name="{$key|escape:'htmlall'}" value="{$item|escape:'htmlall'}" />
{/foreach}
<button class="btn btn-primary"
type="submit">{l s='Go to payment (if auto redirect doesn`t work)' d='Modules.Hutko.Shop'}</button>
</form>
<div>
<script>
document.getElementById("hutko_redirect").submit();
</script>
{/block}