Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit f0720d1

Browse files
authored
Merge pull request #398 from icmaa/bugfix/magento-1-price-incl-tax
Add fallback for `sourcePriceInclTax` and `finalPriceInclTax` in `magento1` platform
2 parents 5b82730 + 982925f commit f0720d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
- Fixed some smaller issues with graphql so that it is now working again with the fronted - #350
2020
- Replaced the old `crop` function call which has been removed from Sharp image processor - @grimasod (#381)
21+
- Add fallback for `sourcePriceInclTax` and `finalPriceInclTax` in `magento1` platform - @cewald (#398)
2122

2223

2324
## [1.11.0-rc.1] - 2019.10.03

src/platform/magento1/tax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class TaxProxy extends AbstractTaxProxy {
2323
if (store.elasticsearch.index === indexName) {
2424
taxRegion = store.tax.defaultRegion
2525
taxCountry = store.tax.defaultCountry
26-
sourcePriceInclTax = store.tax.sourcePriceIncludesTax
27-
finalPriceInclTax = store.tax.finalPriceIncludesTax
26+
sourcePriceInclTax = store.tax.sourcePriceIncludesTax || null
27+
finalPriceInclTax = store.tax.finalPriceIncludesTax || null
2828
this._storeConfigTax = store.tax
2929
break;
3030
}

0 commit comments

Comments
 (0)