-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
178 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
{% load static %} | ||
<link rel="stylesheet" href="{% static 'css/aos.css' %}"> | ||
<script src="{% static 'js/aos.js' %}"></script> | ||
|
||
<script> | ||
AOS.init(); | ||
</script> | ||
|
||
</div> | ||
</div> | ||
|
||
<section> | ||
<section class="h-100 h-custom" style="background-color: #eee;"> | ||
<div class="container py-5 h-100"> | ||
<div class="row d-flex justify-content-center align-items-center h-100"> | ||
<div class="col-12"> | ||
<div class="card card-registration card-registration-2" style="border-radius: 15px;"> | ||
<div class="card-body p-0"> | ||
<div class="row g-0"> | ||
<div class="col-lg-8"> | ||
<div class="p-5"> | ||
<div class="d-flex justify-content-between align-items-center mb-5"> | ||
<h1 class="fw-bold mb-0 text-black">Shopping Cart</h1> | ||
<h6 class="mb-0 text-muted">{{ total_item }} items</h6> | ||
</div> | ||
{% for order in prodlist %} | ||
<hr class="my-4"> | ||
|
||
<div class="row mb-4 d-flex justify-content-between align-items-center"> | ||
<div class="col-md-2 col-lg-2 col-xl-2"> | ||
<img | ||
src="/media/{{ order.image }}" | ||
class="img-fluid rounded-3" alt="Cotton T-shirt"> | ||
</div> | ||
<div class="col-md-3 col-lg-3 col-xl-3"> | ||
<a class="text-black mb-0" href="{{ order.prodlink }}"> | ||
<h6>{{ order.title }} {{ order.price }}฿</h6> | ||
</a> | ||
</div> | ||
<div class="col-md-3 col-lg-3 col-xl-2 d-flex"> | ||
<div class="col-md-3 col-lg-3 col-xl-3"> | ||
<a href="/product/addtocart/{{ order.title }}"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/></svg> | ||
</a> | ||
<h3 class="text-black mb-0">{{ order.quantity }}</h3> | ||
<a href="/product/removeonefromcart/{{ order.title }}"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"/></svg> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-md-3 col-lg-3 col-xl-2 d-flex"> | ||
<h6 class="mb-0">Total:{{ order.totalprice }}฿</h6> | ||
</div> | ||
<div class="col-md-3 col-lg-2 col-xl-2 offset-lg-1"> | ||
<a href="/product/removefromcart/{{ order.title }}" class="btn btn-danger add-to-cart"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"/></svg> | ||
</a> | ||
</div> | ||
<div class="col-md-1 col-lg-1 col-xl-1 text-end"> | ||
<a href="#" class="text-muted"><i class="fas fa-times"></i></a> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
<hr class="my-4"> | ||
|
||
<div class="pt-5"> | ||
<h6 class="mb-0"><a href="/" class="text-body"><i | ||
class="fas fa-long-arrow-alt-left me-2"></i>Back to shop</a></h6> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-lg-4 bg-grey"> | ||
<div class="p-5"> | ||
<h3 class="fw-bold mb-5 mt-2 pt-1">Summary</h3> | ||
<hr class="my-4"> | ||
|
||
<div class="d-flex justify-content-between mb-4"> | ||
<h5 class="text-uppercase">{{ total_item }} items</h5> | ||
<h5>{{ total_and_delivery_price }}</h5> | ||
</div> | ||
|
||
<h5 class="text-uppercase mb-3">Shipping</h5> | ||
|
||
<div class="mb-4 pb-2"> | ||
<select class="select"> | ||
<option value="1">Standard-Delivery- 50 ฿</option> | ||
<option value="2" disabled>Special Delivery 1</option> | ||
<option value="3" disabled>Special Delivery 2</option> | ||
</select> | ||
</div> | ||
|
||
<button type="button" class="btn btn-dark btn-block btn-lg" | ||
data-mdb-ripple-color="dark">Check out</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> | ||
|
||
{% endblock %} |