From 168e943328a6fe2f93d210c5e3df442162fcb848 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 28 Apr 2023 15:21:02 +0700 Subject: bug fix variants name doesnt appear in search engine (bf suggestion) --- indoteknik_custom/models/apache_solr.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/apache_solr.py') 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() -- cgit v1.2.3