Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Display discounts in templates
Michał Ociepkac98066c274aa
diff --git a/product/templates/product/details.html b/product/templates/product/details.htmlindex 823d1b4365..81c75b5a62 100644--- a/product/templates/product/details.html+++ b/product/templates/product/details.html@@ -18,7 +18,7 @@<div itemscope itemtype="http://schema.org/Product" class="row"><h1 itemprop="name">{{ product }}</h1><p itemprop="offers" itemscope itemtype="http://schema.org/Offer">- Price: <span itemprop="price">{% gross product.price %}</span>+ Price: <span itemprop="price">{% gross product.get_price %}</span>{% if product.stock == 0 %}<link itemprop="availability" href="http://schema.org/OutOfStock" />Out of stock@@ -26,6 +26,7 @@<link itemprop="availability" href="http://schema.org/InStock" />In stock{% endif %}+ {% if product.price.modifier %}<br /><small class="label label-success">{{ product.price.modifier }} -{% gross product.price.modifier.discount %}</small>{% endif %}</p><form class="form-horizontal" method="post" action=".">{% csrf_token %}