magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Price filter showing prices excluding taxes

Open pitangaweb opened this issue 10 years ago • 47 comments

Preconditions

  1. Magento 2.1.2 installed using composer

Steps to reproduce

  1. Set catalog settings to show prices including taxes on front-end
  2. Enable layered navigation by setting "is anchor" to yes on every categories

Expected result

  1. Price filter on catalog pages should display price ranges including taxes.

Actual result

  1. 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.

pitangaweb avatar Oct 26 '16 18:10 pitangaweb

Same as my problem...

davidnguyen2205 avatar Oct 27 '16 09:10 davidnguyen2205

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).

choukalos avatar Oct 31 '16 16:10 choukalos

I checked that my config is right as you said. Can you reproduce it or not? :)

davidnguyen2205 avatar Nov 01 '16 16:11 davidnguyen2205

@pitangaweb, thank you for report. Internal ticket MAGETWO-60411

odubovyk avatar Nov 02 '16 14:11 odubovyk

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

koenner01 avatar Jan 04 '17 11:01 koenner01

I can also confirm the same problem is happening in 2.1.3 and the things said by @choukalos are reviewed and not applying.

developerscb avatar Jan 04 '17 11:01 developerscb

some problem with products with discount magento 2.1.2 and 2.1.3

tal-girit avatar Feb 07 '17 12:02 tal-girit

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.

hostep avatar Mar 06 '17 13:03 hostep

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

price-filter-using-excluding-tax-value

EDIT: Just tried 2.1.7.... same problem price-filter-using-excluding-tax-value

ThisIsRuddy avatar Jun 06 '17 14:06 ThisIsRuddy

@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!

RixXuan avatar Jun 12 '17 14:06 RixXuan

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.

veloraven avatar Jun 20 '17 06:06 veloraven

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.

pitangaweb avatar Jun 20 '17 08:06 pitangaweb

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 .

ThisIsRuddy avatar Jun 20 '17 17:06 ThisIsRuddy

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 avatar Aug 29 '17 10:08 GuidoHub

@GuidoHub you tried 2.2 RC yet? I've not had a chance to

ThisIsRuddy avatar Aug 29 '17 11:08 ThisIsRuddy

@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

GuidoHub avatar Aug 29 '17 11:08 GuidoHub

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 ?

pitangaweb avatar Aug 29 '17 13:08 pitangaweb

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 .

ThisIsRuddy avatar Oct 06 '17 06:10 ThisIsRuddy

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?

orlangur avatar Oct 06 '17 08:10 orlangur

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".

korostii avatar Nov 22 '17 19:11 korostii