summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-04-28 15:21:02 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-04-28 15:21:02 +0700
commit168e943328a6fe2f93d210c5e3df442162fcb848 (patch)
treebc212433fab83573a6ccde8f5ed6bbeed5e7de4d
parent7d69d57d640c720adb5769f5ebe84a747f32602f (diff)
bug fix variants name doesnt appear in search engine (bf suggestion)
-rw-r--r--indoteknik_custom/models/apache_solr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py
index 4f30d6f6..ebe516a0 100644
--- a/indoteknik_custom/models/apache_solr.py
+++ b/indoteknik_custom/models/apache_solr.py
@@ -52,6 +52,7 @@ class ApacheSolr(models.Model):
variants_name += variant.display_name or ''+', '
variants_code += variant.default_code or ''+', '
else:
+ variants_name = template.display_name
price_excl = template.product_variant_id._get_website_price_exclude_tax()
discount = template.product_variant_id._get_website_disc(0)
price_excl_after_disc = template.product_variant_id._get_website_price_after_disc_and_tax()