• Resolved fotske

    (@fotske)


    Hi,

    My company is based in Belgium so I use the Belgian VAT rates for the sales on my website.
    But my company also have a VAT number in France so all the sales that I made to customers based in France must be with the VAT rates of France.
    How can I have different VAT rates for the French customers in WooCommerce?

    Thank you very much in advance for your help.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter fotske

    (@fotske)

    Dear @dynamiczach ,

    I have seen the following code on this page: https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce (check “Prices including tax – Experimental Behavior”).
    The code is:
    add_filter( ‘woocommerce_adjust_non_base_location_prices’, ‘__return_false’ )

    I think that this code should do what I want but I’m not sure.
    I wanted to to try it but I’ve probably done something wrong because when I added the code, I couldn’t open the basket anymore on my website.
    Here is what I did, could you please tell me how to add this code correctly?
    1) I went to WP content – themes and I went in the folder of my Child theme
    2) I opened the functions.php file to edit it
    3) I copied the code and I pasted it at the end of my functions.php file so I pasted exactly this code:
    add_filter( ‘woocommerce_adjust_non_base_location_prices’, ‘__return_false’ )

    What did I do wrong? Should I add something before “add_filter” or at the end of the code?
    Isnt’it the right place to copy the code?

    Thank you very much in advance for your help.

    Thread Starter fotske

    (@fotske)

    I finally found the code that I needed here: https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce (see “Prices including tax – Experimental Behavior”) and I pasted it in my functions.php file and it works!

    Thanks for your help.

    Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Sorry @fotske, just seeing this now. Glad you were able to get this working for your needs! ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Different VAT rate for the French customers’ is closed to new replies.