blob: 53963ae6d5f87014e6c6cf77420b9558da528ef5 (
plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
[tmp page_title]__COMPANY__ -- [L]Checkout[/L][/tmp]
[tmp display_class]noleft[/tmp]
[tmpn onepage]1[/tmpn]
[include include/checkout/initialization]
@_TOP_@
<!-- BEGIN CONTENT -->
<div class="container p-4">
<!-- Hero Section-->
<div class="py-5">
<h2>[L]Checkout form[/L]</h2>
[if session logged_in]
<p class="lead">[L]Please verify the information below and click the <b>'Place Order'</b> button to process your order.[/L]</p>
[include include/checkout/login_form][/else][/if][if !variable NO_TAX_POPUP]
[include include/checkout/tax_popup][/if]
[edisplay show_label=1 show_var=0 keep=1]
</div>
<!-- End Hero section-->
<div class="g-5">
<form action="[area href=@@MV_PAGE@@ secure=1]" method="POST" name="checkout">
[form-session-id]
<input type="hidden" name="mv_action" value="refresh"/>
<div>
<h4 class="d-flex justify-content-between align-items-center mb-3">[L]Order review[/L]</h4>
<ul class="list-group mb-3">
<!-- Product Item -->
[if items][then][item-list][item-calc]
#Log("Checking master item $master");
$row_class = ++$count % 2 ? 'cartnorm' : 'cartalt';
my $item = '[item-increment]';
my $up = q{[item-data merchandising upsell_to]};
my $cr = q{[item-data merchandising cross_sell]};
$upsell_remove{'[item-code]'} = 1;
$cross_remove{'[item-code]'} = 1;
my %seen = ( '' => 1 );
$Scratch->{upsell} .= " $up" if $up;
$Scratch->{cross_codes} .= " $cr" if $cr;
my @up = split /\s+/, $Scratch->{upsell};
my @cr = split /\s+/, $Scratch->{cross_codes};
@up = grep ( (!$seen{$_}++ && ! $upsell_remove{$_}), @up);
@cr = grep ( (!$seen{$_}++ && ! $cross_remove{$_}), @cr);
$Scratch->{upsell} = join " ", @up;
$Scratch->{cross_codes} = join " ", @cr;
return;
[/item-calc]
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<a href="[area href="[item-sku]"]"><h6 class="my-0">[item-description]</h6></a>
<small class="text-muted">[item-discount-price]</small>
<small class="text-muted">x [item-quantity]</small>
</div>
<span class="text-muted">[item-discount-subtotal]</</span>
</li>
[/item-list]
<!-- End of Product Item -->
<li class="list-group-item d-flex justify-content-between">
<span>Subtotal</span>
<strong>[subtotal]</strong>
</li>
[/then][/if]
</ul>
</div>
<!-- Shipping Address -->
<div>
<h4 class="mb-3">Shipping</h4>
[include include/checkout/shipping_address]
</div>
<!-- End of Shipping Address -->
<!-- Billing Address -->
[include include/checkout/billing_address]
<!-- End of Billing Address -->
<!-- Delivery Method -->
<div>
<h4>Delivery method</h4>
<!-- Delivery option-->
<div class="row">
<div class="form-group col-md-6 d-flex align-items-center">
<input type="radio" name="mv_shipmode" id="option0" value="cpa" checked/>
<label class="ml-3" for="option0">
<strong class="d-block text-uppercase mb-2">[shipping-desc]</strong>
<span class="text-muted text-sm">
[L]Get it right on next day - fastest option possible.[/L]
</span>
</label>
</div>
</div>
<!-- End of delivery option -->
</div>
<!-- End of Delivery Method -->
<!-- Payment Method -->
<div>
<h4 class="mb-3">Payment method</h4>
<!-- Payment Option-->
<div class="row">
<div class="form-group col-md-6 d-flex align-items-center">
<input type="radio" name="mv_order_profile" value="purchase_order" id="payment-method-1" checked/>
<label class="ml-3" for="payment-method-1">
<strong class="d-block text-uppercase mb-2">[L]Manual Transfer[/L]</strong>
<span class="text-muted text-sm">[L]Please make payments by using the bank transfer method to BCA 12345678 a/n ABCDEFG.[/L]</span>
</label>
</div>
</div>
<!-- /Payment Option-->
</div>
<!-- End of Payment Method -->
<!-- Order summary -->
<div>
<h4 class="mb-3">Order Summary</h4>
<div>
<p class="text-sm">Shipping and additional costs are calculated based on values you have entered.</p>
<ul class="order-summary mb-0 list-unstyled">
<li class="order-summary-item"><span>[L]Subtotal[/L]</span><span>[subtotal]</span></li>
<li class="order-summary-item"><span>[L]Shipping[/L]</span><span>[shipping]</span></li>
<li class="order-summary-item border-0"><span>[L]Total[/L]</span><strong class="order-summary-total">[total-cost]</strong></li>
</ul>
</div>
</div>
<!-- End of Order Summary -->
<div class="d-grid gap-2 d-md-block mb-5">[if items]
[button
text="[L]Place Order[/L]"
wait-text="-- [L]Wait[/L] --"
class="btn btn-primary btn-lg btn-block"
] mv_todo=submit
[/button][else]
<b>[L]No items in your shopping cart![/L]</b>[/else][/if]
</div>
</form>
</div>
[tmp clear_errors][error all=1 comment="Clear errors"][/tmp]
</div>
<!-- END CONTENT -->
__BOTTOM__
|