Hide/remove VAT field if cart has only free products

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #153041
    pronamic.nl
    Participant

    I’ve got a pre-sale question. I want the VAT field to be required for all of the EU countries. We can make the VAT field required for EU countries with the “Show field for selected countries only” option (right?). But i want to add an exception. The VAT field should be hidden / not required for these countries if there are only free products in the cart. Is this possible with your plugin?

    $cart = \WC()->cart;

    $total = (int) $cart->get_total( ‘raw’ );

    • This topic was modified 3 weeks, 6 days ago by pronamic.nl.
    • This topic was modified 3 weeks, 6 days ago by pronamic.nl.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.