From a8030033bac10dd7f343e4bbb0acef44c6e865a6 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 10 Oct 2022 16:44:10 +0700 Subject: Update product_template.py --- indoteknik_custom/models/product_template.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 60bcf1b1..0921cc79 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -71,6 +71,7 @@ class ProductTemplate(models.Model): if product.web_price: rate += 1 product.web_price_sorting = product.web_price + # TODO add calculate second discount if product.have_promotion_program: rate += 1 if product.image_128: @@ -93,6 +94,8 @@ class ProductTemplate(models.Model): rate += 1 if product.image_128: rate += 1 + if product.website_description: + rate += 1 product.product_rating = rate product.last_calculate_rating = current_time -- cgit v1.2.3