• Resolved birdiedesign

    (@birdiedesign)


    Hi,

    My client has a webshop and they ship their products to The Netherlands and Belgium. The problem at first was that Belgium was the default country on both the cart page and the checkout page. I changed the default country on the checkout page with this code:

    add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' );
    
    function change_default_checkout_country() {
      return 'NL'; 
    }
    

    However this code doesn’t change the country on the checkout page. Check out this screenshot: Screenshot.

    I’ve tried to hide the text with CSS, like this:

    .includes_tax {
    	display: none;
    }

    but this also affects the VAT text on the checkout page which my client doesn’t want.

    Is there a way to change the VAT text to The Netherlands instead of Belgium OR to hide the VAT text on the cart page, but not on the checkout page?

    Thanks in advance!

    Best regards,
    Michelle

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter birdiedesign

    (@birdiedesign)

    Anyone know the answer?

    Hi @birdiedesign,

    One way some stores approach this is to go to WooCommere > Settings General. There set the store’s address at the top to the Netherlands. Then in the drop-down for the default customer location, select “Shop base address.”

    Now when users who haven’t entered any shipping information visit the site, they will see pricing that matches the Netherlands.

    See if that works for you. Let us know if you have any questions.

    Cheers

    Thread Starter birdiedesign

    (@birdiedesign)

    Hi @3sonsdevelopment,

    Thank you for your answer! This solves the problem, but I have to check with my client if this works for them too. They are based in Hungary so I have to make sure this doesn’t mess anything up with their taxes plugins and such.

    Will report back if this isn’t the way to go for them to see if you know another solution. Thanks again for the help!

    Best regards,
    Michelle

    Mirko P.

    (@rainfallnixfig)

    It’s been a while since we last heard back from you, I’m going to mark this thread as resolved.

    Hopefully, the solution provided will work for your clients too! If you have further questions, please feel free to open a new topic.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change VAT country on cart page’ is closed to new replies.