Skip to content

Commit

Permalink
include :
Browse files Browse the repository at this point in the history
# 254
# -----------------------------------------------------------------------------------
# Include
  • Loading branch information
sinalalebakhsh committed Dec 3, 2024
1 parent 2429d75 commit 4c1da2f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 45 deletions.
1 change: 1 addition & 0 deletions Offline_Developing/offline_developing_Django_App.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,7 @@ django-admin compilemessages

# 254
# -----------------------------------------------------------------------------------
# Include



Expand Down
48 changes: 48 additions & 0 deletions cart/templates/cart/cart_sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% load static %}
{% load i18n %}


<!-- Mini Cart Start -->
<aside class="mini-cart" id="miniCart">
<div class="mini-cart-wrapper">
<a href="" class="btn-close"><i class="flaticon flaticon-cross"></i></a>
<div class="mini-cart-inner">
<h3 class="mini-cart__heading mb--40 mb-lg--30 text-right">{% translate "Cart" %}</h3>
<div class="mini-cart__content">
<ul class="mini-cart__list text-right">
{% for item in cart %}
<li class="mini-cart__product d-flex justify-content-between">
<div class="mini-cart__product__image">
<a href="#">
<img src="assets/img/products/prod-1-100x100.jpg" alt="products">
</a>
</div>
<div class="mini-cart__product__content pt-2">
<span class="mini-cart__product__title d-flex flex-row justify-content-between">
<a href="#">{{ item.product_obj.title }}</a>
<a href="#" class="">
&#10060;
</a>
</span>
<span class="mini-cart__product__quantity">
<span>{{ item.product_obj.price }}</span> &#215; <span>{{ item.quantity }}</span>
</span>
</div>
</li>

{% endfor %}

</ul>
<div class="mini-cart__total">
<span>{% translate "Total" %}</span>
<span class="ammount">{{ cart.get_total_price }} تومان</span>
</div>
<div class="mini-cart__buttons">
<a href="{% url 'cart:cart_detail' %}" class="btn btn-fullwidth btn-bg-sand mb--20">{% translate "Go to cart" %}</a>
<a href="checkout.html" class="btn btn-fullwidth btn-bg-sand">{% translate "Checkout" %}</a>
</div>
</div>
</div>
</div>
</aside>
<!-- Mini Cart End -->
46 changes: 1 addition & 45 deletions templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,51 +206,7 @@
<!-- Search form Popup End -->


<!-- Mini Cart Start -->
<aside class="mini-cart" id="miniCart">
<div class="mini-cart-wrapper">
<a href="" class="btn-close"><i class="flaticon flaticon-cross"></i></a>
<div class="mini-cart-inner">
<h3 class="mini-cart__heading mb--40 mb-lg--30 text-right">{% translate "Cart" %}</h3>
<div class="mini-cart__content">
<ul class="mini-cart__list text-right">
{% for item in cart %}
<li class="mini-cart__product d-flex justify-content-between">
<div class="mini-cart__product__image">
<a href="#">
<img src="assets/img/products/prod-1-100x100.jpg" alt="products">
</a>
</div>
<div class="mini-cart__product__content pt-2">
<span class="mini-cart__product__title d-flex flex-row justify-content-between">
<a href="#">{{ item.product_obj.title }}</a>
<a href="#" class="">
&#10060;
</a>
</span>
<span class="mini-cart__product__quantity">
<span>{{ item.product_obj.price }}</span> &#215; <span>{{ item.quantity }}</span>
</span>
</div>
</li>

{% endfor %}

</ul>
<div class="mini-cart__total">
<span>{% translate "Total" %}</span>
<span class="ammount">{{ cart.get_total_price }} تومان</span>
</div>
<div class="mini-cart__buttons">
<a href="{% url 'cart:cart_detail' %}" class="btn btn-fullwidth btn-bg-sand mb--20">{% translate "Go to cart" %}</a>
<a href="checkout.html" class="btn btn-fullwidth btn-bg-sand">{% translate "Checkout" %}</a>
</div>
</div>
</div>
</div>
</aside>
<!-- Mini Cart End -->

{% include "cart/cart_sidebar.html" %}


<!-- JS Files -->
Expand Down

0 comments on commit 4c1da2f

Please sign in to comment.