• Resolved markiljas

    (@markiljas)


    Hello,

    I’ve been having an odd issue where the tax isn’t applied when I crate a manual order, specifically for Denmark. When a customer visits the webshop and order themselves it is applied correctly, but when I try to create an order it just applies no tax.

    I have set the tax rate at “reduced” and added several exceptions to product, like Denmark and Spain and others who have special tax rate for books. Any ideas as to what could be causing this issue that it only skips tax on manually created orders?

    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi there,

    did you use the (re)calculate totals button to calculate totals after you’ve supplied the customer address data (billing + shipping address) and saved the order? The OSS plugin does not really take care of the tax calculation process as this process is managed by Woo.

    Cheers

    Thread Starter markiljas

    (@markiljas)

    Yep, tried recalculating, even selecting tax manually, it just ignores Denmark tax setting. However, when customer from Denmark orders from the webshop it applies correctly, that’s why I found it odd. So it only happens in manual creation, as if the OSS tax setting isn’t there (on product level).

    Other countries work, like Germany, and the VAT is applied correctly, so my conclusion is that WooCommerce isn’t picking up special rates set on product level by OSS plugin that I have set up for some countries, like Denmark (I have 7 or 8 of those: Spain, Northern Ireland etc.).

    Plugin Author vendidero

    (@vendidero)

    Hi,

    could you provide a screenshot of your product tax configuration (and the edit order screen) so that I might reproduce the issue?

    Cheers

    Thread Starter markiljas

    (@markiljas)

    Hello,

    Sure thing, the screenshots can be found on this link: https://imgur.com/a/N5n2YBF

    Thanks!

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    thanks! I wasn’t able to reproduce the issue though. What is your base country? What is your customer’s default address (e.g. geolocating enabled)? Based on which address do you calculate taxes? (see your Woo tax settings).

    PS: Did you try deactivating all plugins but Woo and the OSS plugin and activated a default theme for testing purposes?
    PPS: Did you make sure that the actual tax rate does exist for Denmark in your tax settings?

    • This reply was modified 1 year, 11 months ago by vendidero.
    • This reply was modified 1 year, 11 months ago by vendidero.
    Thread Starter markiljas

    (@markiljas)

    Hello,

    My base country is Croatia and the customer’s default address is in Denmark (both billing and shipping; geolocating is enabled). I’ve set that the taxes are calculated based on the shipping address.

    I tried deactivating various combinations on the staging site, but the conflict remains.
    Also, the tax rate for Denmark exists in the settings. After all, it is correctly applied when a customer from Denmark orders directly from the webshop. The only time when it doesn’t work is when the customer wants us to create the order (for instalments), so the countries listed as special tax rates on the product level are not picked up.

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    could you please disable geolocating and set the default customer location to your base address? Does it work? In your screenshot I saw a button called “load country pricing” – is that part of a plugin? Could you please try deactivating all plugins but Woo and the OSS plugin and activate a default theme (in a test env)?

    Thread Starter markiljas

    (@markiljas)

    Hello,

    Sorry for the delay, I’m travelling at the moment, so can’t properly test it. I’ll try to do what you said by the end of the week at the lates and report back.

    Thank you!

    Thread Starter markiljas

    (@markiljas)

    After some testing I believe I have narrowed it down (on our staging site).

    I’ve deactivated all the plugins except WC, OSS and Price Based on Country (WC extension). I have also switched to the default theme 2023. The issue was still persistent until I have deactivated the PBC plugin, but after deactivation the VAT recalculation went through fine.

    Before doing anything else, I’ve simply reactivated our theme and the problem returned—the VAT calculation was wrong again. That leads me to believe that there are at least two conflicts: one with PBC plugin and one with our theme. Haven’t tested it with other combinations, so there could be other ones.

    Not sure if this helps to pinpoint the issue, but can test other stuff if necessary or provide access to the staging site so you can test for yourself.

    Thanks!

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    the connection with your theme seems rather coincidental to me. My guess is that the Price Based on Country Plugin adjusts prices/tax classes itself which might cause problems with the tax class adjustment included in the OSS plugin.

    Best,
    Dennis

    Thread Starter markiljas

    (@markiljas)

    I assumed so as well, but unsure as to how to fix this? Everything used to work just fine, still does, except when it comes to manually created orders.

    Plugin Author vendidero

    (@vendidero)

    You might contact the plugin author of the Price Based on Country plugin about the issue and tell them, how to reproduce the problem. The OSS plugin uses these two filters to adjust the tax class of a product:

    add_filter( 'woocommerce_product_get_tax_class', array( __CLASS__, 'filter_tax_class' ), 250, 2 );
    			add_filter( 'woocommerce_product_variation_get_tax_class', array( __CLASS__, 'filter_tax_class' ), 250, 2 );

    Cheers

    Thread Starter markiljas

    (@markiljas)

    I forwarded this information to the PBC plugin author, hopefully they will have some suggestion or solution in mind.

    Thank you!

    Hi @vendidero ,

    Price Based on Country does not adjust the tax classes. As @markiljas said above the issue was still persistent until he deactivated the PBC plugin.

    I tested our test environment with the same tax settings of the @markiljas store with the “Price Based on Country” deactivated, and the result was the same: Using the “Recalculate” does not add the taxes.

    This issue is not related to “Price Based on Country.” You have to do more tests.

    Thank you.

    Plugin Author vendidero

    (@vendidero)

    Hi @oscargare,

    The issue was still persistent until I have deactivated the PBC plugin, but after deactivation the VAT recalculation went through fine.

    Did I miss something? This very much indicates an issue in combination with your plugin. I’ve checked your code. You seem to be adjusting the taxable location via a filter registered to woocommerce_get_tax_location – maybe that’s part of the incompatibility.

    @markiljas could you please contact us via https://vendidero.de/kontakt? We’ll need some help reproducing the issue or testing in your (staging-) environment.

    Best,
    Dennis

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘No tax on manual order’ is closed to new replies.