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