-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
executable file
·146 lines (144 loc) · 6.8 KB
/
checkout.html
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
139
140
141
142
143
144
145
146
{% extends 'layout.html' %}
{% load static %}
{% block page_title %}Checkout{% endblock page_title %}
{% block main_page_content %}
<section class="page-title centred">
<div class="pattern-layer" style="background-image: url({% static 'images/background/page-title.jpg' %})"></div>
<div class="auto-container">
<div class="content-box">
<h1>Checkout</h1>
<ul class="bread-crumb clearfix">
<li>
<i class="icon-home"></i><a href="{% url 'home' %}">Home</a>
</li>
<li>Checkout</li>
</ul>
</div>
</div>
</section>
<section class="checkout-section">
<div class="container">
{{errors}}
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12 left-column">
<div class="inner-box">
<div class="billing-info">
<h4 class="sub-title">Billing Details</h4>
<form action="{% url 'checkout' %}" method="post" class="billing-form">
{% csrf_token %}
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 form-group">
<label for="id_firstname">First Name*</label>
<div class="field-input">
<input id="id_firstname" type="text" name="first_name" value="{{user.first_name}}" />
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 form-group">
<label for="id_lastname">Last Name*</label>
<div class="field-input">
<input id="id_lastname" type="text" name="last_name" value="{{user.last_name}}" />
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 form-group">
<label for="id_mobile">Phone Number*</label>
<div class="field-input">
<input id="id_mobile" type="text" name="mobile" value="{{user.mobile}}" />
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 form-group">
<label for="id_zipcode">Zip Code*</label>
<div class="field-input">
<input id="id_zipcode" type="text" name="zipcode" />
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 form-group">
<label for="id_address">Address*</label>
<div class="field-input">
<input id="id_address" type="text" name="address" class="address" />
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 form-group">
<label for="id_city">Town/City*</label>
<div class="field-input">
<input id="id_city" type="text" name="city" />
</div>
</div>
</div>
<div class="btn-box" style="margin-top: 30px">
<button type="submit" class="theme-btn-two">
Place Your Order<i class="flaticon-right-1"></i>
</button>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 right-column">
<div class="inner-box">
<div class="order-info">
<h4 class="sub-title">Your Order</h4>
<div class="order-product">
<ul class="order-list clearfix">
<li class="title clearfix">
<p>Product</p>
<span>Total</span>
</li>
{% for item in cart %}
<li>
<div class="single-box clearfix">
<img src="{{item.product.image.url}}" alt="" />
<h6 class="line-clamp">{{item.product.title}}</h6>
<span>${{item.product.price}}</span>
</div>
</li>
{% endfor %}
<li class="order-total clearfix">
<h6>Order Total</h6>
<span>${{cart.get_total_cost}}</span>
</li>
</ul>
</div>
</div>
{% comment %} <div class="payment-info">
<h4 class="sub-title">Payment Proccess</h4>
<div class="payment-inner">
<div class="option-block">
<div class="custom-controls-stacked">
<label class="custom-control material-checkbox">
<input
type="checkbox"
class="material-control-input"
/>
<span class="material-control-indicator"></span>
<span class="description">Direct bank transfer</span>
</label>
</div>
<p>
Please send a check to Store Name, Store Street, Store
Town, Store State / County, Store Postcode.
</p>
</div>
<div class="option-block">
<div class="custom-controls-stacked">
<label class="custom-control material-checkbox">
<input
type="checkbox"
class="material-control-input"
/>
<span class="material-control-indicator"></span>
<span class="description"
>Paypal<a href="{% url 'checkout' %}"
>What is paypal?</a
></span
>
</label>
</div>
</div>
</div>
</div> {% endcomment %}
</div>
</div>
</div>
</div>
</section>
{% endblock main_page_content %}