diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-10 16:44:10 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-10 16:44:10 +0700 |
| commit | a8030033bac10dd7f343e4bbb0acef44c6e865a6 (patch) | |
| tree | d61ba492c89e4e7ef595cc93d9573a3b357e5d56 | |
| parent | a09833c98b4dfeee1aff7bd8d5f899b2908e2146 (diff) | |
Update product_template.py
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 3 |
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 |
