summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/product_template.py3
1 files changed, 3 insertions, 0 deletions
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