2019-03-19 06:18:32 +00:00
|
|
|
{% extends "templates/web.html" %}
|
2021-07-13 18:16:24 +00:00
|
|
|
{% from "erpnext/templates/includes/macros.html" import recommended_item_row %}
|
2019-03-19 06:18:32 +00:00
|
|
|
|
|
|
|
{% block title %} {{ title }} {% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2021-01-20 12:17:25 +00:00
|
|
|
<div class="item-breadcrumbs small text-muted">
|
|
|
|
{% include "templates/includes/breadcrumbs.html" %}
|
|
|
|
</div>
|
2019-03-19 06:18:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block page_content %}
|
2021-07-13 18:16:24 +00:00
|
|
|
<div class="product-container item-main">
|
2020-12-24 06:10:33 +00:00
|
|
|
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
|
|
|
<div class="item-content">
|
|
|
|
<div class="product-page-content" itemscope itemtype="http://schema.org/Product">
|
2021-03-22 10:47:59 +00:00
|
|
|
<!-- Image, Description, Add to Cart -->
|
2020-12-24 06:10:33 +00:00
|
|
|
<div class="row mb-5">
|
|
|
|
{% include "templates/generators/item/item_image.html" %}
|
|
|
|
{% include "templates/generators/item/item_details.html" %}
|
|
|
|
</div>
|
2021-07-13 18:16:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Additional Info/Reviews, Recommendations -->
|
|
|
|
<div class="d-flex">
|
|
|
|
{% set show_recommended_items = recommended_items and shopping_cart.cart_settings.enable_recommendations %}
|
|
|
|
{% set info_col = 'col-9' if show_recommended_items else 'col-12' %}
|
|
|
|
|
|
|
|
{% set padding_top = 'pt-0' if (show_tabs and tabs) else '' %}
|
|
|
|
|
|
|
|
<div class="product-container mt-4 {{ padding_top }} {{ info_col }}">
|
|
|
|
<div class="item-content {{ 'mt-minus-2' if (show_tabs and tabs) else '' }}">
|
2022-11-25 10:53:20 +00:00
|
|
|
<div class="product-page-content">
|
2021-07-13 18:16:24 +00:00
|
|
|
<!-- Product Specifications Table Section -->
|
|
|
|
{% if show_tabs and tabs %}
|
|
|
|
<div class="category-tabs">
|
|
|
|
<!-- tabs -->
|
|
|
|
{{ web_block("Section with Tabs", values=tabs, add_container=0,
|
|
|
|
add_top_padding=0, add_bottom_padding=0)
|
|
|
|
}}
|
|
|
|
</div>
|
|
|
|
{% elif website_specifications %}
|
|
|
|
{% include "templates/generators/item/item_specifications.html"%}
|
|
|
|
{% endif %}
|
2019-03-19 06:18:32 +00:00
|
|
|
|
2021-07-13 18:16:24 +00:00
|
|
|
<!-- Advanced Custom Website Content -->
|
|
|
|
{{ doc.website_content or '' }}
|
|
|
|
|
|
|
|
<!-- Reviews and Comments -->
|
|
|
|
{% if shopping_cart.cart_settings.enable_reviews and not doc.has_variants %}
|
|
|
|
{% include "templates/generators/item/item_reviews.html"%}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-12-24 06:10:33 +00:00
|
|
|
</div>
|
2019-03-19 06:18:32 +00:00
|
|
|
</div>
|
2021-07-13 18:16:24 +00:00
|
|
|
|
|
|
|
<!-- Recommended Items -->
|
|
|
|
{% if show_recommended_items %}
|
|
|
|
<div class="mt-4 col-3 recommended-item-section">
|
|
|
|
<span class="recommendation-header">Recommended</span>
|
|
|
|
<div class="product-container mt-2 recommendation-container">
|
|
|
|
{% for item in recommended_items %}
|
|
|
|
{{ recommended_item_row(item) }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2019-03-19 06:18:32 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block base_scripts %}
|
|
|
|
<!-- js should be loaded in body! -->
|
2022-01-31 18:33:08 +00:00
|
|
|
<script type="text/javascript" src="/assets/frappe/js/lib/jquery/jquery.min.js"></script>
|
2021-05-07 09:23:42 +00:00
|
|
|
{{ include_script("frappe-web.bundle.js") }}
|
|
|
|
{{ include_script("controls.bundle.js") }}
|
|
|
|
{{ include_script("dialog.bundle.js") }}
|
|
|
|
{% endblock %}
|