• Resolved heneart

    (@heneart)


    Hi, thanx for the great plugin.
    Everything seems to work good with one exception:

    My setup is as follows:

    I’m using the experimental mode of WooCommerce – the price should stay always the same, only the tax is changing:
    add_filter( ‘woocommerce_adjust_non_base_location_prices’, ‘__return_false’ );
    My prices are bruto prices.

    1. for customers from Canary Islands we charge always our local tax I.G.I.C 7% – the same for business (with tax-number) as for individuals.
    –>price 50 Euros (incl. 7% I.G.I.C tax calculated correctly — WORKS

    2. for customers from rest of Spain + EU Countries I want to charge :
    Corresponding tax of each country if indivídual client – — WORKS
    –>price 50 Euros (incl. X% tax depends country calculated correctly — WORKS
    3. If business with tax-number – 0 % VAT,
    The problem: the VAT is extracted from price . So the example price of 50 Eur becomes 46 €, 47 € – depends country ……

    Is there any workaround to fix it?
    something like : “if VAT EU –> TAX=0% ?
    Without substracting the corresponding country tax?

    Thanx & Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Diego

    (@daigo75)

    The calculations you describe, when you use the filter woocommerce_adjust_non_base_location_prices, are performed by WooCommerce. When a customer enters a valid EU VAT number, the EU VAT Assistant simply tells WooCommerce that said customer should be exempt from VAT, and WooCommerce decides what prices to apply.

    Based on your description, the behaviour is correct. If a price is 50 Euro inclusive of VAT, then removing the VAT should result in a lower price. Charging the same price to a VAT exempt customer will probably require a customisation, but that is something that the WooCommerce Support should check.

    Important
    The EU VAT Assistant reached its end of life in June 2022?and we can no longer provide support for it, nor guarantee updates. We are keeping the plugin available for users who still use it, and might need to access its code, but we would recommend to contact your developers if you need assistance tweaking or troubleshooting it.

    Thread Starter heneart

    (@heneart)

    Hi Diego, thanks for your response.
    I ended up with the following setup:

    1. I’ve added zero tax rate for “everyone” – the name autogenerated by WC is “tasa-cero”
    2. I’ve added:

    function wc_change_tax_class( $tax_class, $product ) {
    
        $tax_class = 'tasa-cero';
        if ( WC()->customer->is_vat_exempt() ) {
        return $tax_class;
    	}
    }
    add_filter( 'woocommerce_product_get_tax_class', 'wc_change_tax_class', 1, 2 );
    

    And it seems to work with one exception:
    If the customer is from Canary Islands (Spain, but Not-EU in case of tax calculations), your plugin sets correctly the corresponding price incl. canarian Tax (IGIC 7%) , but doesn’t let me proceed to payment with a (correct) message “You must enter a valid EU VAT number to complete the purchase.”.
    Is there any solution, to supress this message in case of VAT-ID from Canary Islands only? —> like kind of desactivating the validation if specific postal code from Spain is entered?

    Thanks in advance ??


    Plugin Author Diego

    (@daigo75)

    The EU VAT Assistant only works at country level. It can’t validate VAT numbers that don’t belong to a EU country, nor special numbers that apply only to specific States, Provinces or Counties.

    If you need to implement a custom validation logic, e.g. to assume that Canary Islands numbers are always valid, you could try writing a filter for hook wc_aelia_euva_eu_vat_number_raw_validation_result. Forcing the property $validation_result[‘valid’] to true would make the EU VAT Assistant consider the VAT number valid, regardless of the actual validation result, with the corresponding exemption being applied.

    If you need a more complex customisation, your developer can look into the code to see how it works and intercept the appropriate actions and filters. As I wrote earlier, we can no longer provide support for this plugin, it’s available for the convenience of other developers who still wish to use it or extend it.

    Thread Starter heneart

    (@heneart)

    Ok thanks Diego for your support :))

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘0 Vat for EU customers without changing price’ is closed to new replies.