{"id":3347,"date":"2017-01-18T11:46:37","date_gmt":"2017-01-18T10:46:37","guid":{"rendered":"https:\/\/en.florianbrinkmann.de\/?p=3347"},"modified":"2020-02-09T10:59:58","modified_gmt":"2020-02-09T09:59:58","slug":"woocommerce-same-price-regardless-of-taxes","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/woocommerce-same-price-regardless-of-taxes-3347\/","title":{"rendered":"WooCommerce: same price regardless of taxes"},"content":{"rendered":"\n

In my online shop, customers from the EU have to pay their country\u2019s VAT rate. Customers from the USA, for example, do not have to pay any VAT. If I set the price to 15 Euros in WooCommerce and specify that the prices include taxes, the default behavior is the following:<\/p>\n\n\n\n

Customers from a country for which a tax rate is specified pay 15 Euros including their country\u2019s tax rate. Customers from countries without a specified tax rate pay less than 15 Euros. I am not sure, but I think in this case the price is reduced by the tax rate from the shop\u2019s base location. The desired effect is that these customers pay 15 Euros too, but without any included taxes.<\/p>\n\n\n\n

The WooCommerce wiki on GitHub has the solution for that<\/a>. You only have to insert the following line of code into your theme or into a plugin:<\/p>\n\n\n

add_filter( 'woocommerce_adjust_non_base_location_prices'<\/span>, '__return_false'<\/span> );<\/code><\/div>Code language:<\/span> JavaScript<\/span> (<\/span>javascript<\/span>)<\/span><\/small><\/pre>","protected":false},"excerpt":{"rendered":"

In my online shop, customers from the EU have to pay their country\u2019s VAT rate. Customers from the USA, for example, do not have to pay any VAT. If I set the price to 15 Euros in WooCommerce and specify that the prices include taxes, the default behavior is the following: Customers from a country […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wpf_show_in_dewp_planet_feed":false,"flobn_post_versions":"","lazy_load_responsive_images_disabled":false},"categories":[115],"tags":[],"wp-worthy-pixel":{"ignored":false,"public":null,"server":null,"url":null},"wp-worthy-type":"normal","_links":{"self":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3347"}],"collection":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/comments?post=3347"}],"version-history":[{"count":3,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3347\/revisions"}],"predecessor-version":[{"id":5923,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3347\/revisions\/5923"}],"wp:attachment":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/media?parent=3347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/categories?post=3347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/tags?post=3347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}