You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2023. It is now read-only.
Issue:
If config.tax.sourcePriceIncludesTax is set to true it is never honored when calculating prices due to a bug in platform tax code. There are however some specific prerequisites for this bug to show.
The result of this bug is that original_price, original_price_incl_tax etc will be calculated wrong before sent off to VueStorefront.
When config.storeViews.xx.sourcePriceIncludesTax does not exist in a multistore setup the variable sourcePriceInclTax is set to undefined. The problem is that in the referenced code snippet the variable is tested strictly against null which will give a false negative.
Solution:
Use normal equality operator instead of strict equality operator since it will catch both null and undefined values.
eg. (sourcePriceInclTax == null) instead of (sourcePriceInclTax === null)