Files
sterivein/templates/frontOffice/default/order-failed.html
2020-11-19 15:36:28 +01:00

71 lines
2.3 KiB
HTML

{extends file="layout.tpl"}
{* Security *}
{block name="no-return-functions" prepend}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}
{block name="body-class"}page-order-payment{/block}
{* Breadcrumb *}
{block name='no-return-functions' append}
{$breadcrumbs = [
['title' => {intl l="Cart"}, 'url'=>{url path="/cart"}],
['title' => {intl l="Secure Payment"}, 'url'=>{url path="/order/pay"}]
]}
{/block}
{block name="main-content"}
<div class="main">
<article class="col-main clearfix" role="main" aria-labelledby="main-label">
<h1 id="main-label" class="page-header">{intl l="Your Cart"}</h1>
{hook name="order-failed.top"}
{include file="misc/checkout-progress.tpl" step="last"}
<div id="payment-failure" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{loop type="order" name="failed-order" id=$failed_order_id}
{intl l="You choose to pay by"} : <span class="payment-method label label-primary">{loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}</span>
{/loop}
{elseloop rel="failed-order"}
{intl l="Your order payment"}
{/elseloop}
</h3>
</div>
<div class="panel-body">
<h3>{intl l="We're sorry, a problem occured and your payment was not successful."}</h3>
{if null !== $failed_order_message}
<p>{$failed_order_message}</p>
{/if}
<a href="{url path="/order/invoice"}" role="button" class="btn btn-primary">{intl l="Try again"}</a>
</div>
</div>
{hook name="order-failed.bottom"}
<a href="{navigate to="index"}" role="button" class="btn btn-default">{intl l="Go home"}</a>
</article>
</div>
{/block}
{block name="stylesheet"}
{hook name="order-failed.stylesheet"}
{/block}
{block name="after-javascript-include"}
{hook name="order-failed.after-javascript-include"}
{/block}
{block name="javascript-initialization"}
{hook name="order-failed.javascript-initialization"}
{/block}