2016-01-01 11:53:12 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
2017-03-23 11:18:24 +00:00
|
|
|
{% block title %} {{ _("Shopping Cart") }} {% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
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 %}
|
|
|
|
|
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
|
|
|
|
2016-05-02 06:13:44 +00:00
|
|
|
<div class="cart-container">
|
2016-05-10 11:49:47 +00:00
|
|
|
<div id="cart-container">
|
|
|
|
<div id="cart-error" class="alert alert-danger"
|
|
|
|
style="display: none;"></div>
|
|
|
|
<div id="cart-items">
|
|
|
|
<div class="row cart-item-header text-muted">
|
|
|
|
<div class="col-sm-8 col-xs-6 h6 text-uppercase">
|
|
|
|
{{ _("Item") }}
|
|
|
|
</div>
|
2016-06-22 10:16:38 +00:00
|
|
|
<div class="col-sm-2 col-xs-3 text-center h6 text-uppercase">
|
2016-05-10 11:49:47 +00:00
|
|
|
{{ _("Qty") }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 col-xs-3 text-right h6 text-uppercase">
|
|
|
|
{{ _("Subtotal") }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if doc.items %}
|
|
|
|
<div class="cart-items">
|
|
|
|
{% include "templates/includes/cart/cart_items.html" %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<p class="empty-cart">{{ _("Cart is Empty") }}</p>
|
|
|
|
{% endif %}
|
2016-05-02 06:13:44 +00:00
|
|
|
</div>
|
2016-05-10 11:49:47 +00:00
|
|
|
{% if doc.items %}
|
|
|
|
<!-- taxes -->
|
|
|
|
<div class="row cart-taxes">
|
|
|
|
<div class="col-sm-6"><!-- empty --></div>
|
|
|
|
<div class="col-sm-6 text-right cart-tax-items">
|
|
|
|
{% include "templates/includes/order/order_taxes.html" %}
|
|
|
|
</div>
|
2016-05-02 06:13:44 +00:00
|
|
|
</div>
|
|
|
|
|
2016-05-10 11:49:47 +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">
|
2017-05-17 14:12:04 +00:00
|
|
|
<a href="#" onclick="show_terms();return false;">*{{ __("Terms and Conditions") }}</a>
|
2016-05-10 11:49:47 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-05-02 06:13:44 +00:00
|
|
|
|
2016-05-10 11:49:47 +00:00
|
|
|
<div class="cart-addresses">
|
|
|
|
{% include "templates/includes/cart/cart_address.html" %}
|
2016-05-02 06:13:44 +00:00
|
|
|
</div>
|
|
|
|
|
2016-05-10 11:49:47 +00:00
|
|
|
<p class="cart-footer text-right">
|
|
|
|
<button class="btn btn-primary btn-place-order btn-sm" type="button">
|
|
|
|
{{ _("Place Order") }}</button></p>
|
|
|
|
{% endif %}
|
2016-05-02 06:13:44 +00:00
|
|
|
</div>
|
2014-10-21 10:46:30 +00:00
|
|
|
</div>
|
|
|
|
|
2016-06-23 12:55:50 +00:00
|
|
|
|
2014-10-21 10:46:30 +00:00
|
|
|
{% endblock %}
|