b15ff57a66
- Added Ratings and Reviews section in Item full page view - Added provision to write a review with popup - Created Item Review Doctype to store User-Item unique reviews - Added privision to enable/disable wishlist and reviews in e commerce settings - Hide cart and wishlist actions everywhere (even navbar) depending on settings - Moved some more inline css to scss - Small logic fixes TODO: Reviews full page view with paging
56 lines
1.6 KiB
HTML
56 lines
1.6 KiB
HTML
{% extends "templates/web.html" %}
|
|
|
|
{% block title %} {{ title }} {% endblock %}
|
|
|
|
{% block breadcrumbs %}
|
|
<div class="item-breadcrumbs small text-muted">
|
|
{% include "templates/includes/breadcrumbs.html" %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block page_content %}
|
|
<div class="product-container col-md-12">
|
|
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
|
<div class="item-content">
|
|
<div class="product-page-content" itemscope itemtype="http://schema.org/Product">
|
|
<!-- Image, Description, Add to Cart -->
|
|
<div class="row mb-5">
|
|
{% include "templates/generators/item/item_image.html" %}
|
|
{% include "templates/generators/item/item_details.html" %}
|
|
</div>
|
|
|
|
<!-- 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 %}
|
|
|
|
<!-- Advanced Custom Website Content -->
|
|
{{ doc.website_content or '' }}
|
|
|
|
<!-- Reviews and Comments -->
|
|
{% if shopping_cart.cart_settings.enable_reviews %}
|
|
{% include "templates/generators/item/item_reviews.html"%}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block base_scripts %}
|
|
<!-- js should be loaded in body! -->
|
|
{{ include_script("frappe-web.bundle.js") }}
|
|
{{ include_script("controls.bundle.js") }}
|
|
{{ include_script("dialog.bundle.js") }}
|
|
{% endblock %}
|