diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-06 14:11:15 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-06 14:11:15 +0700 |
| commit | 7a23a18a45fbd38fabc33f4e1a74d9f31e86cd60 (patch) | |
| tree | 01324a8202ef7de98a3f4d1d1f204a67ddaf10af /indoteknik_custom/models/solr/product_product.py | |
| parent | 8737ffba70651633d06f5185659f4429b26bd18b (diff) | |
Fix get flash sale price on sync to solr
Diffstat (limited to 'indoteknik_custom/models/solr/product_product.py')
| -rw-r--r-- | indoteknik_custom/models/solr/product_product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py index 20a68b47..31a0026d 100644 --- a/indoteknik_custom/models/solr/product_product.py +++ b/indoteknik_custom/models/solr/product_product.py @@ -84,7 +84,7 @@ class ProductProduct(models.Model): price_excl_after_disc = variant._get_website_price_after_disc_and_tax() tax = variant._get_website_tax() discount = variant._get_website_disc(0) - flashsale_data = variant._get_flashsale_price() + flashsale_data = variant.with_context(price_for="web")._get_flashsale_price() price_excl_v2 = variant._v2_get_website_price_exclude_tax() price_excl_after_disc_v2 = variant._v2_get_website_price_after_disc_and_tax() |
