1{* Assign a value to 'current_step' to display current style *} 2{capture name="url_back"} 3 {if isset($back) && $back}back={$back}{/if} 4{/capture} 5 6{if !isset($multi_shipping)} 7 {assign var='multi_shipping' value='0'} 8{/if} 9 10{if !$opc && ((!isset($back) || empty($back)) || (isset($back) && preg_match("/[&?]step=/", $back)))} 11 12 {if $current_step=='summary'} 13 {$step_num = 1} 14 {elseif $current_step=='login'} 15 {$step_num = 2} 16 {elseif $current_step=='address'} 17 {$step_num = 3} 18 {elseif $current_step=='shipping'} 19 {$step_num = 4} 20 {elseif $current_step=='payment'} 21 {$step_num = 5} 22 {/if} 23 24 <ul id="order_step" class="nav nav-pills nav-justified"> 25 26 <li class="{if $step_num > 1}completed{elseif $step_num == 1}active{/if}"> 27 {if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'} 28 <a href="{$link->getPageLink('order', true)}"> 29 01. {l s='Summary'} 30 </a> 31 {else} 32 <a href="javascript:;">01. {l s='Summary'}</a> 33 {/if} 34 </li> 35 36 <li class="{if $step_num > 2}completed{elseif $step_num == 2}active{else}not-completed{/if}"> 37 {if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'} 38 <a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}"> 39 02. {l s='Sign in'} 40 </a> 41 {else} 42 <a href="javascript:;">02. {l s='Sign in'}</a> 43 {/if} 44 </li> 45 46 <li class="{if $step_num > 3}completed{elseif $step_num == 3}active{else}not-completed{/if}"> 47 {if $current_step=='payment' || $current_step=='shipping'} 48 <a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}"> 49 03. {l s='Address'} 50 </a> 51 {else} 52 <a href="javascript:;">03. {l s='Address'}</a> 53 {/if} 54 </li> 55 56 <li class="{if $step_num > 4}completed{elseif $step_num == 4}active{else}not-completed{/if}"> 57 {if $current_step=='payment'} 58 <a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}"> 59 04. {l s='Shipping'} 60 </a> 61 {else} 62 <a href="javascript:;">04. {l s='Shipping'}</a> 63 {/if} 64 </li> 65 <li class="{if $step_num == 5}active{else}not-completed{/if}"> 66 <a href="javascript:;">05. {l s='Payment'}</a> 67 </li> 68 69 </ul> 70 71{/if} 72