vendidero / one-stop-shop-woocommerce

Other
2 stars 0 forks source link

Issue with prices in international orders #6

Closed vladmirom closed 2 years ago

vladmirom commented 2 years ago

There is an issue with the prices when ordering outside Finland. The vat rates vary in EU countries, but it was set that the product price stays the same no matter which country the customer is from.

Screenshot at Sep 27 14-55-14

But now it changes the product price depending on the vat. Looks like this issue has started already in August. Also when I go to the cart and change the country, it changes the product price (Screenshots for Finalnd and Germany). Screenshot 2021-09-23 at 16 26 59 Screenshot 2021-09-23 at 16 27 13

One more example from the order. The product is purchased from Germany, and the price for the item is 87€, in Finland it is 109€, however, the price should be the same.

Screenshot at Sep 27 14-59-08 Screenshot at Sep 27 15-02-12
dennisnissle commented 2 years ago

Hi there,

could you please try deactivating all plugins but One Stop Shop and Woo and activate a default theme (not a child-theme)? Does it fix the issue? Sounds to me as if some plugin/snippet overrides the woocommerce_adjust_non_base_location_prices filter. The OSS status is activated too?

Cheers

vladmirom commented 2 years ago

That might be, checking.

vladmirom commented 2 years ago

Heya @vendidero,

It took a while to check 😅. We have disabled all the plugins (except WC and OSS) and switched to the default 2021 wp theme. The OSS status is activated. The issue is still there.

Screenshot at Nov 08 10-47-27

dennisnissle commented 2 years ago

Hi there,

does that apply for customers outside of the EU? By default the fixed gross prices is only forced within the EU - third countries are not forced. If you want to force the gross price for third countries too, that would need an additional filter placed in your functions.php: https://gist.github.com/vendidero/b32ef2b031c5326915ee6a1c7674528f

Cheers

vladmirom commented 2 years ago

Hey,

The price is changing both on EU and non-Eu countries. The price is different for Finland, Germany, Estonia, US, Australia.

Cheers, Vladimir

dennisnissle commented 2 years ago

Hi,

could you please provide some screenshots of your WooCommerce Tax settings? Your base country is Finland?

Cheers

vladmirom commented 2 years ago

A bunch of screenshots, so you can see the setup: Screenshot at Nov 08 13-43-25 Screenshot at Nov 08 13-43-52 Screenshot at Nov 08 13-46-30 Screenshot at Nov 08 13-47-04 Screenshot at Nov 08 13-47-19 Screenshot at Nov 08 13-47-34 Screenshot at Nov 08 13-47-49 Screenshot at Nov 08 13-48-02 Screenshot at Nov 08 13-48-54

dennisnissle commented 2 years ago

Could you please show a screenshot of a sample product too (edit product page)? What's your customer's default location (WooCommerce general settings)?

vladmirom commented 2 years ago

Here you go: Screenshot at Nov 09 13-54-08 Screenshot at Nov 09 13-57-31

dennisnissle commented 2 years ago

Hi,

seems to be a variable product. Which tax classes are configured for your variations? Just want to make sure that a tax class with valid tax rates is configured for your products :)

vladmirom commented 2 years ago

Hi,

it is standard or same as parent: Screenshot at Nov 09 14-07-28

dennisnissle commented 2 years ago

Seems ok to me. I'm not able to reproduce the issue with the latest version installed (both Woo and the OSS plugin). Could you provide us with a link to your shop?

vladmirom commented 2 years ago

We have a staging server for checking things on this project. I can give you the access so you can check the setup. What would be the most convenient way to send you the details?

dennisnissle commented 2 years ago

Please use: info@vendidero.de to contact us.

dennisnissle commented 2 years ago

Hi,

thanks for the dev setup. I've added some test output and it seem like calling get_option( 'oss_fixed_gross_prices' ); returned false instead of yes - I've then reset the gross price option within the settings and set it to yes again. Now it seems to work just fine ;) Seems like a strange DB/Caching issue to me.

Cheers

vladmirom commented 2 years ago

Hey, thank you for working on the issue. The issue was fixed by checking out and and checking in the checkbox.