From 98a9a0f50e2d0bebb997be6f81e8cd761ad222f8 Mon Sep 17 00:00:00 2001 From: alinnural Date: Fri, 25 Sep 2020 16:27:39 +0700 Subject: [PATCH] rapihin tampilan harga --- templates/website/home-adinusa.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/templates/website/home-adinusa.html b/templates/website/home-adinusa.html index 10ba0ce..731e81a 100644 --- a/templates/website/home-adinusa.html +++ b/templates/website/home-adinusa.html @@ -96,12 +96,16 @@

Kursus Terbaru

-

- - {% if course.product.discount_type == 1 %}{{ course.product.discount_value }}%{% endif %} - {% if course.product.discount %}Rp {{ course.product.price|intcomma }}{% endif %} -
- {% if course.product.price %}Rp {{ course.product.price|subtract:course.product.discount|intcomma }}{% else %}GRATIS{% endif %} +

+ {% if course.product.price %} + + {% if course.product.discount_type == 1 %}{{ course.product.discount_value }}%{% endif %} + {% if course.product.discount %}Rp {{ course.product.price|intcomma }}{% endif %} +
+ Rp {{ course.product.price|subtract:course.product.discount|intcomma }} + {% else %} + GRATIS + {% endif %}

{% if course.vendor.logo %}