-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathorder-steps.tpl
62 lines (59 loc) · 2.41 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
{*
* =|= Checkout (5-step) - Order Steps =========================
*
* Displays steps and position in order process during 5-step
* checkout.
* ==============================================================
*}
{* 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}
<!-- Steps -->
<ul class="step" id="order_step">
<li class="{if $current_step=='summary'}step_current{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}step_done{else}step_todo{/if}{/if}">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&multi-shipping={$multi_shipping}")}">
1. {l s='Summary'}
</a>
{else}
<span>1. {l s='Summary'}</span>
{/if}
</li>
<li class="{if $current_step=='login'}step_current{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}step_done{else}step_todo{/if}{/if}">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1&multi-shipping={$multi_shipping}")}">
2. {l s='Login'}
</a>
{else}
<span>2. {l s='Login'}</span>
{/if}
</li>
<li class="{if $current_step=='address'}step_current{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if}">
{if $current_step=='payment' || $current_step=='shipping'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1&multi-shipping={$multi_shipping}")}">
3. {l s='Address'}
</a>
{else}
<span>3. {l s='Address'}</span>
{/if}
</li>
<li class="{if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done{else}step_todo{/if}{/if}">
{if $current_step=='payment'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2&multi-shipping={$multi_shipping}")}">
4. {l s='Shipping'}
</a>
{else}
<span>4. {l s='Shipping'}</span>
{/if}
</li>
<li id="step_end" class="{if $current_step=='payment'}step_current{else}step_todo{/if}">
<span>5. {l s='Payment'}</span>
</li>
</ul>
<!-- /Steps -->
{/if}