{$cart_total = $wa->shop->cart->total()} [`Order total`]: {shop_currency_html($cart_total, true)}

{$wa->shop->settings("name")}

{if isset($checkout_steps)} {foreach $checkout_steps as $step_id => $s}

{if $s@first} [`Back to the store`] {else} {/if} {$s@iteration}. {$s.name}

{if $s@first && $wa->isAuthEnabled()}
{if !$wa->user()->isAuth()}
post('wa_auth_login')} style="display:none"{/if}> {include file="`$wa_parent_theme_path`/login.html" without_form=true}
{else}

{sprintf("[`You are currently authorized as %s. Please verify or update your contact information using the form below. Your existing contact info will be automatically updated.`]", $wa->user('name'))}
[`If you want to place an order on behalf of another customer, log out from your current profile and proceed to checkout again.`]

{/if}
{/if}
{if $checkout_current_step == $step_id} {if in_array($step_id,['contactinfo', 'shipping', 'payment', 'confirmation'])} {include file="checkout.`$step_id`.html"} {else} {$s.content} {/if} {else}
{/if}
{if $s@last}
{else} {/if}
{/foreach} {else}
{include file="checkout.`$checkout_current_step`.html"}
{/if}