• Resolved liam_uk7

    (@liam_uk7)


    Thanks for the amazing plugin, it’s a life-saver. Is it possible to hide the billing fields for anyone outside of the EU?

    I sell digital goods, so aside from the EU Tax requirements I don’t really need or want customers billing addresses in order to have a simpler checkout flow. Is this something that’s possible to do?

    Thanks,
    Liam

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

    (@daigo75)

    HI Liam,
    You can hide the billing fields, when customer’s country is in the EU, by using a filter for the woocommerce_billing_fields hook. You can fetch the billing country by calling WC()->customer->get_billing_country(), compare it with the list of EU countries and hide any billing field you don’t need.

    You can find more information about this kind of customisation here: https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    If you need assistance implementing this customisation, please feel free to contact us. We will be happy to review your requirements and prepare an estimate to write your custom code.

    Thread Starter liam_uk7

    (@liam_uk7)

    Thanks for the reply! Very helpful.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide Billing Address if not in EU?’ is closed to new replies.