2016-01-01 11:53:12 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
2014-10-21 10:46:30 +00:00
|
|
|
{% block title %} {{ "Shopping Cart" }} {% endblock %}
|
|
|
|
|
2015-07-10 04:41:07 +00:00
|
|
|
{% block header %}<h2>{{ _("My Cart") }}</h2>{% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
2016-01-01 11:53:12 +00:00
|
|
|
{% block script %}
|
|
|
|
<script>{% include "templates/includes/cart.js" %}</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block style %}
|
|
|
|
<style>
|
|
|
|
{% include "templates/includes/cart.css" %}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
2015-09-16 13:22:52 +00:00
|
|
|
|
|
|
|
{% block header_actions %}
|
|
|
|
{% if doc.items %}
|
|
|
|
<button class="btn btn-primary btn-place-order btn-sm"
|
|
|
|
type="button">
|
|
|
|
{{ _("Place Order") }}</button>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-01-01 11:53:12 +00:00
|
|
|
{% block page_content %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
2015-09-16 13:22:52 +00:00
|
|
|
{% from "templates/includes/macros.html" import item_name_and_description %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
2014-10-21 10:46:30 +00:00
|
|
|
<div class="cart-content">
|
2015-09-11 13:19:59 +00:00
|
|
|
<div id="cart-container">
|
2015-09-16 13:22:52 +00:00
|
|
|
<div id="cart-error" class="alert alert-danger"
|
|
|
|
style="display: none;"></div>
|
2015-09-11 13:19:59 +00:00
|
|
|
<div id="cart-items">
|
2015-09-16 13:22:52 +00:00
|
|
|
<div class="row cart-item-header">
|
|
|
|
<div class="col-sm-8 col-xs-6">
|
|
|
|
Items
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
|
|
|
Qty
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
|
|
|
Amount
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-11 13:19:59 +00:00
|
|
|
{% if doc.items %}
|
2015-09-17 10:58:30 +00:00
|
|
|
<div class="cart-items">
|
|
|
|
{% include "templates/includes/cart/cart_items.html" %}
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<p>{{ _("Cart is Empty") }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2015-09-16 13:22:52 +00:00
|
|
|
{% if doc.items %}
|
|
|
|
<!-- taxes -->
|
|
|
|
<div class="cart-taxes row small">
|
|
|
|
<div class="col-sm-8"><!-- empty --></div>
|
2015-09-17 10:58:30 +00:00
|
|
|
<div class="col-sm-4 cart-tax-items">
|
2015-09-16 13:22:52 +00:00
|
|
|
{% include "templates/includes/order/order_taxes.html" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-11 13:19:59 +00:00
|
|
|
<div id="cart-totals">
|
|
|
|
</div>
|
2016-03-16 12:31:22 +00:00
|
|
|
{% if doc.tc_name %}
|
|
|
|
<div class="cart-terms" style="display: none;" title={{doc.tc_name}}>
|
|
|
|
{{doc.tc_name}}
|
|
|
|
{{doc.terms}}
|
|
|
|
</div>
|
|
|
|
<div class="cart-link">
|
|
|
|
<a href="#" onclick="show_terms();return false;">*Terms and Conditions</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2015-09-16 13:22:52 +00:00
|
|
|
<div class="cart-addresses">
|
|
|
|
{% include "templates/includes/cart/cart_address.html" %}
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
|
|
|
<p class="cart-footer text-right">
|
|
|
|
<button class="btn btn-primary btn-place-order btn-sm" type="button">
|
|
|
|
{{ _("Place Order") }}</button></p>
|
2015-09-16 13:22:52 +00:00
|
|
|
{% endif %}
|
2015-09-11 13:19:59 +00:00
|
|
|
</div>
|
2014-10-21 10:46:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- no-sidebar -->
|
|
|
|
{% endblock %}
|