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
|
|
|
|
2021-01-20 12:22:54 +00:00
|
|
|
{% block header %}<h3 class="shopping-cart-header mt-2 mb-6">{{ _("Shopping Cart") }}</h1>{% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
2015-09-16 13:22:52 +00:00
|
|
|
{% block header_actions %}
|
|
|
|
{% 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
|
|
|
|
2021-01-20 12:22:54 +00:00
|
|
|
{% if doc.items %}
|
2016-05-02 06:13:44 +00:00
|
|
|
<div class="cart-container">
|
2021-01-20 12:22:54 +00:00
|
|
|
<div class="row m-0">
|
2021-08-12 13:31:10 +00:00
|
|
|
<!-- Left section -->
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="frappe-card p-5 mb-4">
|
2021-01-20 12:22:54 +00:00
|
|
|
<div id="cart-error" class="alert alert-danger" style="display: none;"></div>
|
|
|
|
<div class="cart-items-header">
|
|
|
|
{{ _('Items') }}
|
|
|
|
</div>
|
|
|
|
<table class="table mt-3 cart-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-05-27 13:23:11 +00:00
|
|
|
<th class="item-column">{{ _('Item') }}</th>
|
2021-01-20 12:22:54 +00:00
|
|
|
<th width="20%">{{ _('Quantity') }}</th>
|
2021-07-15 14:39:02 +00:00
|
|
|
{% if cart_settings.enable_checkout or cart_settings.show_price_in_quotation %}
|
|
|
|
<th width="20" class="text-right column-sm-view">{{ _('Subtotal') }}</th>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% endif %}
|
2021-05-27 13:23:11 +00:00
|
|
|
<th width="10%" class="column-sm-view"></th>
|
2021-01-20 12:22:54 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="cart-items">
|
|
|
|
{% include "templates/includes/cart/cart_items.html" %}
|
|
|
|
</tbody>
|
2021-07-15 14:39:02 +00:00
|
|
|
|
|
|
|
{% if cart_settings.enable_checkout or cart_settings.show_price_in_quotation %}
|
|
|
|
<tfoot class="cart-tax-items">
|
2021-09-15 08:30:14 +00:00
|
|
|
{% include "templates/includes/cart/cart_items_total.html" %}
|
2021-07-15 14:39:02 +00:00
|
|
|
</tfoot>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% endif %}
|
|
|
|
</table>
|
2021-05-27 13:23:11 +00:00
|
|
|
|
2021-08-12 13:31:10 +00:00
|
|
|
<div class="row mt-2">
|
|
|
|
<div class="col-3">
|
|
|
|
{% if cart_settings.enable_checkout %}
|
|
|
|
<a class="btn btn-primary-light font-md" href="/orders">
|
|
|
|
{{ _('Past Orders') }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="btn btn-primary-light font-md" href="/quotations">
|
|
|
|
{{ _('Past Quotes') }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="col-9">
|
|
|
|
{% if doc.items %}
|
|
|
|
<div class="place-order-container">
|
|
|
|
<a class="btn btn-primary-light mr-2 font-md" href="/all-products">
|
|
|
|
{{ _('Continue Shopping') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-01-20 12:22:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-02 06:13:44 +00:00
|
|
|
|
2021-08-12 13:31:10 +00:00
|
|
|
<!-- Terms and Conditions -->
|
2021-01-20 12:22:54 +00:00
|
|
|
{% if doc.items %}
|
2021-08-12 13:31:10 +00:00
|
|
|
{% if doc.terms %}
|
|
|
|
<div class="t-and-c-container mt-4 frappe-card">
|
|
|
|
<h5>{{ _("Terms and Conditions") }}</h5>
|
|
|
|
<div class="t-and-c-terms mt-2">
|
|
|
|
{{ doc.terms }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-04-07 06:48:47 +00:00
|
|
|
</div>
|
|
|
|
|
2021-08-12 13:31:10 +00:00
|
|
|
<!-- Right section -->
|
2021-01-20 12:22:54 +00:00
|
|
|
<div class="col-md-4">
|
2021-07-15 14:39:02 +00:00
|
|
|
<div class="cart-payment-addresses">
|
|
|
|
<!-- Apply Coupon Code -->
|
|
|
|
{% set show_coupon_code = cart_settings.show_apply_coupon_code_in_website and cart_settings.enable_checkout %}
|
|
|
|
{% if show_coupon_code == 1%}
|
|
|
|
<div class="mb-3">
|
|
|
|
<div class="row no-gutters">
|
|
|
|
<input type="text" class="txtcoupon form-control mr-3 w-50 font-md" placeholder="Enter Coupon Code" name="txtcouponcode" ></input>
|
|
|
|
<button class="btn btn-primary btn-sm bt-coupon font-md">{{ _("Apply Coupon Code") }}</button>
|
|
|
|
<input type="hidden" class="txtreferral_sales_partner font-md" placeholder="Enter Sales Partner" name="txtreferral_sales_partner" type="text"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-09-30 13:04:26 +00:00
|
|
|
<div class="mb-3 frappe-card p-5 payment-summary">
|
|
|
|
{% include "templates/includes/cart/cart_payment_summary.html" %}
|
|
|
|
</div>
|
2021-07-15 14:39:02 +00:00
|
|
|
|
2021-01-20 12:22:54 +00:00
|
|
|
{% include "templates/includes/cart/cart_address.html" %}
|
2021-07-15 14:39:02 +00:00
|
|
|
</div>
|
2016-05-02 06:13:44 +00:00
|
|
|
</div>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% endif %}
|
2019-03-19 06:18:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% else %}
|
|
|
|
<div class="cart-empty frappe-card">
|
|
|
|
<div class="cart-empty-state">
|
|
|
|
<img src="/assets/erpnext/images/ui-states/cart-empty-state.png" alt="Empty State">
|
|
|
|
</div>
|
|
|
|
<div class="cart-empty-message mt-4">{{ _('Your cart is Empty') }}</p>
|
|
|
|
{% if cart_settings.enable_checkout %}
|
2021-09-15 08:30:14 +00:00
|
|
|
<a class="btn btn-outline-primary" href="/orders" style="font-size: 16px;">
|
2019-03-19 06:18:32 +00:00
|
|
|
{{ _('See past orders') }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
2021-09-15 08:30:14 +00:00
|
|
|
<a class="btn btn-outline-primary" href="/quotations" style="font-size: 16px;">
|
2019-03-19 06:18:32 +00:00
|
|
|
{{ _('See past quotations') }}
|
|
|
|
</a>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% endif %}
|
2014-10-21 10:46:30 +00:00
|
|
|
</div>
|
2021-01-20 12:22:54 +00:00
|
|
|
{% endif %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
2019-03-19 06:18:32 +00:00
|
|
|
{% endblock %}
|
2016-06-23 12:55:50 +00:00
|
|
|
|
2019-03-19 06:18:32 +00:00
|
|
|
{% block base_scripts %}
|
|
|
|
<!-- js should be loaded in body! -->
|
2021-05-07 09:23:42 +00:00
|
|
|
{{ include_script("frappe-web.bundle.js") }}
|
|
|
|
{{ include_script("controls.bundle.js") }}
|
|
|
|
{{ include_script("dialog.bundle.js") }}
|
2014-10-21 10:46:30 +00:00
|
|
|
{% endblock %}
|