Price filter showing prices excluding taxes
Preconditions
- Magento 2.1.2 installed using composer
Steps to reproduce
- Set catalog settings to show prices including taxes on front-end
- Enable layered navigation by setting "is anchor" to yes on every categories
Expected result
- Price filter on catalog pages should display price ranges including taxes.
Actual result
- Price filter displays price ranges excluding taxes. Example: A product priced at 19€ excluding taxes and displayed at 24€ including taxes does show when the "10€ to 20€" price range is selected. It should show when the "20€ to 30€" price range is selected.
Same as my problem...
Did you set the default or the website's shipping origin and tax default calculation to the same country? Did you also setup a tax rule that has an appropriate rate to it? It sounds like Magento thinks you uploaded the prices with tax (but found a 0% tax rate) and then is now dynamically adjusting the price based on the customer's tax rate (> 0% tax rate).
I checked that my config is right as you said. Can you reproduce it or not? :)
@pitangaweb, thank you for report. Internal ticket MAGETWO-60411
We have this problem too in 2.1.2 and I can confirm that this is still an issue after correcting the shipping origin & tax default calculation by setting them to the same country
I can also confirm the same problem is happening in 2.1.3 and the things said by @choukalos are reviewed and not applying.
some problem with products with discount magento 2.1.2 and 2.1.3
We also saw this, but over here, the problem was caused by a free 3rd party extension which manipulates the filter functionality (Manadev). Digging through their code, they use prices excl tax for the price filtering. Disabling this 3rd party module seems to display the correct results over here.
Any news on this? We went live with M2 in December and had to disable our price filters due to it using the excluding tax price, causing major confusion for our customers. 2.1.6 and this is still the case, going to spin up a 2.1.7 and see if it is fixed there but I can only hope as this ticket is still open.
Image attached demonstrating behavior

EDIT: Just tried 2.1.7.... same problem

@ThisIsRuddy your problem came from visualizing after taxed final price, here is quick solution, you can override method _getProductCollection from Magento\Catalog\Block\Product\ListProduct class by using your own ListProduct class, before return productCollection object, you can apply your own filter logic to filter again whole collection.
For instance, mention that price_filter in Magento using GET, you should see some param in URI like '?price=(min_price)-(max_price)' on category page, if things goes like this way, then you gen extract max price and iterate through product collection compare each of them with max price, remove product items has (price+tax) above filter range, like: foreach ($this->_productCollection as $key => $item) { // YOUR FILTER LOGIC // blah blah blah...
if(!$in_condition){ $this->_productCollection->removeItemByKey($key); } }
This solution works fine on my case, but still, it's a temporal solution, hope Magento team will make filter module more customizable.
Good luck!
I'm closing this issue as internal ticket was closes as not a bug: layered navigation with prices including tax will multiply index size, also that will break manual Layered Navigation with fixed intervals if it's configured (i.e. 100-200, 200-300, 300-400). However you can submit this issue to Magento 2 Feature Requests and Improvements forum as improvement if you think it will have significant value (see details here). However I can not promise that it will be implemented even in this case.
Well I can understand the implications, but I find it really weird that such an essential feature for the European market (and lots of countries) might never be implemented.
I too share this opinion 😐
On Tue, 20 Jun 2017, 09:27 pitangaweb, [email protected] wrote:
Well I can understand the implications, but I find it really weird that such an essential feature for the European market (and lots of countries) might never be implemented.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/7199#issuecomment-309682007, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrfk666E9PW343jAC-TeCZMA3mXet3hks5sF4KPgaJpZM4KhgFt .
You are kidding me right? So the products are shown with tax and you are going to filter on excluding, how can you even think this is feature and not a bug. Have you ever looked at this on perspective of a customer? Oh I filter on price 20 but I never see products in that price range. What a disappointment.
@GuidoHub you tried 2.2 RC yet? I've not had a chance to
@ThisIsRuddy No, still fighting with Magento 2.1.18, there are so many bugs and features that don't work for european market. Like when you use special price, the old price in catelog is shown without tax, how can you even think this is right. Magento is really working towards B2B instead of B2C
Well it's crystal clear that Magento is ignoring the European market. Customers have a hard time understanding why basic features included in entry-level cart systems are not even in Magento 2's roadmap. I mean, we have to make a feature request to have a bug fixed, because the bug is actually a feature. How crazy is that ?
Ridiculous 😭😂
On Thu, 5 Oct 2017, 13:14 farhadfrz, [email protected] wrote:
Almost one year no fix?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/7199#issuecomment-334446361, or mute the thread https://github.com/notifications/unsubscribe-auth/ABrfk-Wh7wO4pcrqZ3M3S3tkb0Ck7Lh6ks5spMgKgaJpZM4KhgFt .
internal ticket was closes as not a bug: layered navigation with prices including tax will multiply index size, also that will break manual Layered Navigation with fixed intervals if it's configured (i.e. 100-200, 200-300, 300-400).
Anybody understand this? Isn't all we need is just having a BIG GLOBAL SWITCH saying whether layered navigation includes tax or not? Or the problem is that tax may vary from region to region and thus we would have to keep NxX compared to X size of original index?
also that will break manual Layered Navigation with fixed intervals if it's configured (i.e. 100-200, 200-300, 300-400)
Well, from the screenshots above it seems to me that it's broken already. Please note that "it seems complicated, we're worried we might break something else while fixing this bug" is not the same as "not a bug".