first commit
This commit is contained in:
61
web/templates/x/ordering/ordering.btns.sidebar.tpl
Normal file
61
web/templates/x/ordering/ordering.btns.sidebar.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{$submitName = 'OrderNext'}
|
||||
{$valueNext = 'delivery'}
|
||||
|
||||
{if $body.stepName == 'delivery'}
|
||||
{$valueNext = 'user'}
|
||||
{elseif $body.stepName == 'user'}
|
||||
{$isLastStep = true}
|
||||
{$submitName = 'SubmitOrder'}
|
||||
{$valueNext = "{t price=$body->getPurchaseState()->getTotalPrice()|format_price:"ceil=no;decimal=dynamic"}Koupit za {price}{/t}"}
|
||||
{/if}
|
||||
|
||||
<div {if $body.stepName == 'cart'}data-reload="cart_btns"{/if}>
|
||||
<div class="cart-btns">
|
||||
{block "submit-btn"}
|
||||
{if $body.products|count}
|
||||
<div class="cart-nextstep-wrapper">
|
||||
<button type="submit" name="{$submitName}" value="{$submitName}"
|
||||
class="btn btn-nextstep btn-block {if $isLastStep}last{/if}">
|
||||
{if $isLastStep}
|
||||
{t price=$body->getPurchaseState()->getTotalPrice()|format_price:"ceil=no;decimal=dynamic"}Koupit za {price}{/t}
|
||||
{elseif $body.stepName == 'cart'}
|
||||
{t}Přejít k pokladně{/t}
|
||||
{elseif $body.stepName == 'delivery'}
|
||||
{t}Pokračovat na kontaktní údaje{/t}
|
||||
{else}
|
||||
{t}Pokračovat na další krok{/t}
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
{if $isLastStep}
|
||||
<p>{t}Odesíláte objednávku s povinností platby{/t}</p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{ifmodule ORDER_DISCOUNT}
|
||||
{insert_discounts_triggers}
|
||||
{/ifmodule}
|
||||
|
||||
{if $showVoucher}
|
||||
{include "ordering/ordering.voucher.tpl" hidden=1}
|
||||
{/if}
|
||||
|
||||
{if $body.stepName == 'cart'}
|
||||
{get_referer assign='referer'}
|
||||
{if !$referer|stripos:'_z'}{$referer = '/'}{/if}
|
||||
<a href="{$referer}" class="btn-prevstep">{t}Zpět k nákupu{/t}</a>
|
||||
{else}
|
||||
{$step = $body->findPreviousStep($body.stepName)}
|
||||
<a href="{$cfg.Addr.rel}{$step.url}" class="btn-prevstep">
|
||||
{if $body.stepName == 'delivery'}
|
||||
{t}Zpět do košíku{/t}
|
||||
{elseif $body.stepName == 'user'}
|
||||
{t}Zpět na výběr dopravy a platby{/t}
|
||||
{else}
|
||||
{t}Předchozí krok{/t}
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user