{strip} {$_is_success = ( $checkout_current_step == "success" )} {$wa->globals("simplified", true)} {$wa->globals("hideCrumbs", true)} {$wa->globals("htmlClass", "is-checkout-page")} {if empty($_is_success)} {$wa->globals("globalHeader", "[`Checkout`]")} {/if} {$_storage = $wa->storage('shop/checkout')} {if isset($checkout_steps)} {$steps = []} {$step = 0} {$_steps_keys = array_keys($checkout_steps)} {foreach $_steps_keys as $step_id} {$_step = $checkout_steps[$step_id]} {$_step.id = $step_id} {$_step.index = $step_id@index} {$_step.frontend_uri = "`$wa->getUrl('/frontend/checkout')``$step_id`"} {if $step_id == $checkout_current_step} {$step = $_step} {/if} {$steps[] = $_step} {/foreach} {/if}
{if isset($checkout_steps)}
{/if} {if !empty($steps)} {$cart_total = $wa->shop->cart->total()} {if $cart_total > 0} {/if} {$_after_current = false} {$_is_current = false} {foreach $steps as $_step} {$_item_class = "is-done"} {if !empty($_is_current)} {$_after_current = true} {/if} {if !empty($_after_current)} {$_item_class = "is-next"} {$_link_href = "javascript:void(0);"} {/if} {if $_step.id == $step.id} {$_is_current = true} {$_item_class = "is-current"} {$_link_href = "javascript:void(0);"} {/if} {if $_step.index < $step.index}
{if !empty($_step)}
{$_step.index + 2}. {$_step.name} {if empty($_after_current) && empty($_is_current)} {$_text = []} {if $_step.id === "shipping"} {if !empty($_storage[$_step.id].name)} {$_text[] = $_storage[$_step.id].name} {/if} {/if} {if !empty($_text)} : {$_text|join:" "} {/if} {/if}
{/if}
{/if} {/foreach} {/if}
{if !empty($step)}
{$step.index + 2}. {$step.name}
{else}

{if !empty($payment_success) && !empty($theme_settings["checkout_payment_success_title"])} {$theme_settings["checkout_payment_success_title"]} {else} [`Thank you!`] {/if}

{/if}
{if !empty($step) && !($step.index > 0) && $wa->isAuthEnabled()} {include file="checkout.auth.html" inline} {/if}
{include file="checkout.`$checkout_current_step`.html" inline}
{if !$_is_success}
{if !empty($step.id) && $step.id === "confirmation"}
{else} {/if}
{/if}
{if !empty($steps)} {$_after_current = false} {$_is_current = false} {foreach $steps as $_step} {$_item_class = "is-done"} {if !empty($_is_current)} {$_after_current = true} {/if} {if !empty($_after_current)} {$_item_class = "is-next"} {$_link_href = "javascript:void(0);"} {/if} {if $_step.id == $step.id} {$_is_current = true} {$_item_class = "is-current"} {$_link_href = "javascript:void(0);"} {/if} {if $_step.index > $step.index} {if !empty($_step)}
{$_step.index + 2}. {$_step.name}
{/if} {/if} {/foreach} {/if} {if isset($checkout_steps)}
{/if}
{/strip}