Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
{% include 'partials/side_cart.html' %}
{% core_js %}

{% app_hook 'global_social_proof' %}
{% app_hook 'global_footer' %}

</body>
</html>
</html>
3 changes: 2 additions & 1 deletion partials/recommended_products.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ <h3 class="fs-{{ settings.recommended_products_header_size }}">{% t "store.catal
<div class="card-title">
<a href="{{ product.get_absolute_url }}" title="{{ product.get_title }}" class="text-dark">{{ product.get_title }}</a>
</div>
{% app_hook 'product_card_rating_summary' %}
{% if settings.product_reviews and product.rating %}
<div class="card-text d-flex mb-2">
<div class="catalogue_item-rating-stars">
Expand Down Expand Up @@ -85,4 +86,4 @@ <h3 class="fs-{{ settings.recommended_products_header_size }}">{% t "store.catal
{% endfor %}
</div>
</div>
</section>
</section>
3 changes: 2 additions & 1 deletion templates/catalogue/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ <h1 class="h5">{{ category.name|safe }}</h1>
</div>
{% endif %}
{{ block.super }}
{% endblock %}
{% app_hook 'collection_review_feed' %}
{% endblock %}
1 change: 1 addition & 0 deletions templates/catalogue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</div>
{% endblock %}
{% block product_review %}
{% app_hook 'product_card_rating_summary' %}
{% if settings.product_reviews and product.rating %}
<div class="card-text d-flex mb-2 fs-8">
<div class="catalogue_item-rating-stars">
Expand Down
26 changes: 17 additions & 9 deletions templates/catalogue/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ <h1 class="fs-3">
{{ product.get_title }}
</h1>

{% app_hook 'product_rating_summary' %}

{% if settings.product_reviews and product.rating %}

<div class="my-3">
Expand Down Expand Up @@ -178,6 +180,8 @@ <h1 class="fs-3">
{{ product.get_description|safe }}
</div>
{% endif %}

{% app_hook 'product_info' %}

</div>
</div>
Expand All @@ -203,10 +207,16 @@ <h1 class="fs-3">
</div>
</section>
{% endif %}

{% app_hook 'product_footer' %}

{% if product.sorted_recommended_products %}
{% include "partials/recommended_products.html" %}
{% endif %}

{% app_hook 'product_reviews' %}
{% app_hook 'product_review_cta' %}

{% if settings.product_reviews %}
<section id="reviews" class="border-top">
<div class="container-xl">
Expand All @@ -215,14 +225,12 @@ <h1 class="fs-3">
<div class="col">
<div class="py-5">
{% if product.num_approved_reviews == 0 %}
<p>
{% if product|is_review_permitted:user %}
{% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id as add_review_url %}
{% t "store.catalogue.no_reviews" %} <a href="{{ add_review_url }}#addreview">{% t "store.catalogue.no_reviews_add" %}</a>.
{% else %}
{% t "store.catalogue.no_reviews" %}.
{% endif %}
</p>
{% if product|is_review_permitted:user %}
{% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id as add_review_url %}
<p>{% t "store.catalogue.no_reviews" %} <a href="{{ add_review_url }}#addreview">{% t "store.catalogue.no_reviews_add" %}</a>.</p>
{% else %}
<p>{% t "store.catalogue.no_reviews" %}.</p>
{% endif %}
{% else %}
<div class="d-flex flex-column flex-md-row align-items-center mb-3">
<h4 class="me-3">{% t "store.catalogue.customer_reviews" %}</h4>
Expand Down Expand Up @@ -313,4 +321,4 @@ <h5 class="card-title mb-0 me-3">
{% app_hook 'view_product' %}
{% app_hook 'add_to_cart' %}

{% endblock %}
{% endblock %}
5 changes: 4 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ <h2 class="fs-{{ settings.fps_header_size }}">{{ settings.fps_header }}</h2>
<div class="card-title">
<a href="{{ product.get_absolute_url }}" title="{{ product.get_title }}" class="text-dark">{{ product.get_title }}</a>
</div>
{% app_hook 'product_card_rating_summary' %}
{% if settings.product_reviews and product.rating %}
<div class="card-text d-flex mb-2">
<div class="catalogue_item-rating-stars">
Expand Down Expand Up @@ -232,5 +233,7 @@ <h2 class="fs-{{ settings.fps_header_size }}">{{ settings.fps_header }}</h2>
</section>
{% endif %}

{% app_hook 'home_review_feed' %}

{% endif %}
{% endblock %}
{% endblock %}
5 changes: 4 additions & 1 deletion templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
</div>
{% endblock %}
{% block product_review %}
{% with product=result.object %}
{% app_hook 'product_card_rating_summary' %}
{% endwith %}
{% if settings.product_reviews and result.object.rating %}
<div class="card-text d-flex mb-2 fs-8">
<div class="catalogue_item-rating-stars">
Expand Down Expand Up @@ -116,4 +119,4 @@ <h4>{% t "store.search.search_not_found" %}</h4>
</div>
</section>

{% endblock %}
{% endblock %}