From 00c3edf8c242b8fd19a41daf9090bddf3e1ef282 Mon Sep 17 00:00:00 2001 From: MAC Date: Wed, 28 Aug 2024 18:15:57 +0500 Subject: [PATCH] Resolved issues/prim-56,57,58 --- .../eggs/templates/oscar/catalogue/detail.html | 13 +++++++++---- .../templates/oscar/catalogue/partials/product.html | 6 ++++++ .../catalogue/partials/product_quick_view.html | 11 +++++++---- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/templates/eggs/templates/oscar/catalogue/detail.html b/templates/eggs/templates/oscar/catalogue/detail.html index 2651f63..4dcbd53 100644 --- a/templates/eggs/templates/oscar/catalogue/detail.html +++ b/templates/eggs/templates/oscar/catalogue/detail.html @@ -8,6 +8,8 @@ {% load i18n %} {% load purchase_info_tags %} {% load image_tags %} +{% load primzel_tags %} + {% block content_wrapper %} @@ -75,11 +77,14 @@

{{ product.get_title }}

{% iffeature "reviews" %} {% include "oscar/catalogue/reviews/partials/review_stars.html" with yellow_stars=True total_reviews=product.reviews.count %} {% endiffeature %} -
+
+ {% include "oscar/catalogue/partials/stock_record.html" %} - - - + + {% get_discounted_price product as info %} + {% if info.discounted_price %} + Sale + {% endif %}
{% include "oscar/catalogue/partials/options/option_control.html" %} diff --git a/templates/eggs/templates/oscar/catalogue/partials/product.html b/templates/eggs/templates/oscar/catalogue/partials/product.html index d654a50..7e3582f 100644 --- a/templates/eggs/templates/oscar/catalogue/partials/product.html +++ b/templates/eggs/templates/oscar/catalogue/partials/product.html @@ -8,6 +8,12 @@ {% block product %}
+ + {% get_discounted_price product as info %} + {% if info.discounted_price %} + Sale + {% endif %} + {% include 'oscar/catalogue/partials/wishlist-button.html' %} {% with image=product.primary_image %} {% oscar_thumbnail image.original "296x276" upscale=False as thumb %} diff --git a/templates/eggs/templates/oscar/catalogue/partials/product_quick_view.html b/templates/eggs/templates/oscar/catalogue/partials/product_quick_view.html index 21ff74b..e1656e1 100644 --- a/templates/eggs/templates/oscar/catalogue/partials/product_quick_view.html +++ b/templates/eggs/templates/oscar/catalogue/partials/product_quick_view.html @@ -17,7 +17,6 @@