change cart

main
R-Murod 2024-01-17 18:59:48 +06:00
parent 450df46fc7
commit c1651614c3
1 changed files with 18 additions and 18 deletions

View File

@ -6,9 +6,9 @@
.section-padding{padding: 0px 0;} .section-padding{padding: 0px 0;}
.col-xs-12{padding-top: 20px;} .col-xs-12{padding-top: 20px;}
</style> </style>
<div class="pages-title section-padding"> <div class="pages-title section-padding" style="background:linear-gradient(0deg,rgba(36,36,36,.05) 0,rgba(36,36,36,.05) 100%),linear-gradient(97deg,#ed3cca .49%,#df34d2 14.88%,#d02bd9 29.27%,#bf22e1 43.14%,#ae1ae8 57.02%,#9a10f0 70.89%,#8306f7 84.76%,#7c1af8 99.15%);" >
<div class="container"> <div class="container">
<div style="background:#40394a" class="row"> <div style="background:linear-gradient(0deg,rgba(36,36,36,.05) 0,rgba(36,36,36,.05) 100%),linear-gradient(97deg,#ed3cca .49%,#df34d2 14.88%,#d02bd9 29.27%,#bf22e1 43.14%,#ae1ae8 57.02%,#9a10f0 70.89%,#8306f7 84.76%,#7c1af8 99.15%);" class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="pages-title-text text-center"> <div class="pages-title-text text-center">
<h2 style="color:#f4cca4; margin: 0; margin-bottom: 17px;">Корзина</h2> <h2 style="color:#f4cca4; margin: 0; margin-bottom: 17px;">Корзина</h2>
@ -21,24 +21,24 @@
<!-- cart content section start --> <!-- cart content section start -->
{% if not cart_items %} {% if not cart_items %}
<div style="font-size:18px; margin-bottom:300px;margin-top:30px" class="container alert alert-info text-center" role="alert"> <div style="font-size:18px; margin-bottom:300px;margin-top:30px" class="container alert alert-info text-center" role="alert">
<b>Your Cart Is Empty,&nbsp;&nbsp; <a href="{% url 'shop:shop' %}" style="color:#21094e;text-decoration: underline;">Go To Shop<a></b> <b>Корзина пусто,&nbsp;&nbsp; <a href="{% url 'shop:shop' %}" style="color:#21094e;text-decoration: underline;">Магазин<a></b>
</div> </div>
{% else %} {% else %}
<section style="background:#1c1427" class="pages cart-page section-padding"> <section style="background:#ffffff" class="pages cart-page section-padding">
<div class="container"> <div class="container">
<div class="row" > <div class="row" >
<div class="col-xs-12"> <div class="col-xs-12">
<div style="border-radius:20px;" class="table-responsive padding60"> <div style="border-radius:20px; background: #F5F5F5;" class="table-responsive padding60" >
<table class="wishlist-table text-center"> <table class="wishlist-table text-center">
<thead> <thead>
<tr> <tr>
<th style="border-radius:20px 0 0 20px;">Image</th> <th style="border-radius:20px 0 0 20px;">Картинка</th>
<th>Name</th> <th>Название</th>
<th>Price</th> <th>Цена</th>
<th>quantity</th> <th>Количество</th>
<th>Total Price</th> <th>Сумма</th>
<th style="border-radius:0 20px 20px 0;">Remove</th> <th style="border-radius:0 20px 20px 0;">Удалить</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -60,7 +60,7 @@
</div> </div>
</td> </td>
<td>${{cart_item.product.price}}</td> <td style="color: #3b3b3b">{{cart_item.product.price}} тг</td>
<td> <td>
<div class="plus-minus" > <div class="plus-minus" >
<form style="" action="{% url 'cart:add_cart' cart_item.product.id %}" method="POST"> <form style="" action="{% url 'cart:add_cart' cart_item.product.id %}" method="POST">
@ -85,7 +85,7 @@
</div> </div>
</td> </td>
<td > <td >
<strong style="color:#f4cca4">${{cart_item.sub_total}}</strong> <span style="color: #3b3b3b">{{cart_item.sub_total}} тг</span>
</td> </td>
<td ><a href="{% url 'cart:remove_cart_item' cart_item.product.id cart_item.id %}" ><i style="background:#ba135d;color:#f4cca4" onclick="return confirm('Are you really want delete this?')" class="mdi mdi-close"></i></a></td> <td ><a href="{% url 'cart:remove_cart_item' cart_item.product.id cart_item.id %}" ><i style="background:#ba135d;color:#f4cca4" onclick="return confirm('Are you really want delete this?')" class="mdi mdi-close"></i></a></td>
</tr> </tr>
@ -99,21 +99,21 @@
<tbody style="color:#f4cca4"> <tbody style="color:#f4cca4">
<tr> <tr>
<th style="font-size:18px">Cart Subtotal</th> <th style="font-size:18px">Cart Subtotal</th>
<td style="font-size:18px">${{total}}</td> <td style="font-size:18px">{{total}} тг</td>
</tr> </tr>
<tr> <tr>
<th style="font-size:18px">Shipping and Handing</th> <th style="font-size:18px">Shipping and Handing</th>
<td style="font-size:18px">${{handing}}</td> <td style="font-size:18px">{{handing}} тг</td>
</tr> </tr>
<tr> <tr>
<th style="font-size:18px">Vat</th> <th style="font-size:18px">Vat</th>
<td style="font-size:18px">${{vat}}</td> <td style="font-size:18px">{{vat}} тг</td>
</tr> </tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<th style="color:#d99879; font-size:22px" class="tfoot-padd">Order total</th> <th style="color:#d99879; font-size:22px" class="tfoot-padd">Order total</th>
<td style="color:#d99879; font-size:22px" class="tfoot-padd">${{order_total}}</td> <td style="color:#d99879; font-size:22px" class="tfoot-padd">{{order_total}} тг</td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>