• Resolved paolofru

    (@paolofru)


    I have a question about setting up a tax enforcement under a particular condition.

    Now my shop is set up to calculate taxes based on billing address.

    Therefore:

    – If the customer is European, the taxes are calculated based on the percentage of his country.
    – If the customer is from outside Europe, the tax is zero.

    However, is happening that some customers set the non-European billing address and the billing address in Europe, so the taxes are not calculated.

    According to a recent court ruling, in these cases must be applied the taxation of the company country, in my case Italy (22%)

    How can I set this rule with a function?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rafy a11n

    (@nawaz0705)

    Hi @paolofru

    Thank you for reaching out!

    If you set the Calculate tax based on option to the Customer shipping address in the WooCommerce > Settings > Tax > Tax options page, then the customers will be charged based on their Shipping address and not their billing address.

    Can you please try this and see if this works for your scenario?

    Thread Starter paolofru

    (@paolofru)

    With this scenario it would calculate the taxes for the shipping country (e.g. Mexican customer shipping to Spain with spanish tax).

    If a customer outside the European Union ships to a European country, the tax of the company that produces the product must be applied, in my case 22% the Italian tax.

    Thread Starter paolofru

    (@paolofru)

    @nawaz0705 do you have any other suggestions?

    in my opinion (correct me if I’m wrong) it would be to create an ajax function that compares the billing country and the shipping country.

    If the billing country code is different from the European codes array AND the shipping country is the same as one of the codes in the array, then it applies 22% tax.

    what do you think?

    Saif

    (@babylon1999)

    Hello @nawaz0705!

    In WooCommerce, taxes are based on either shipping or billing address. You can also create custom classes, but in your case you’ll need more of a custom solution.

    I found this extension that allows you to connect your store to a custom a popular EU VAT calculation service but I’m not sure if they have what you’re looking for.

    Custom coding/solutions are unfortunately not within our scope of support here. I recommend you work with one of our Woo Experts to solve this.

    I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack.

    We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom TAX for Extra EU’ is closed to new replies.