How does WooCommerce know that this is an EU company? We need this information in order to write a code snippet that will check if the order is from an EU Company. 🙂
@carlamkt apologies for the late reply. Could you share the meta key that stores the value for the EU company, please? You can use this guide to find that meta key.
VAT Numbers are stored in a meta field named _billing_vat_number (and _vat_number for backward compatibility). The function wc_eu_vat_get_vat_from_order($order) takes care of retrieving the VAT regardless of how it is stored.
If I understood correctly, you want to display a custom text if the order has VAT reverse charged, right? If so, the easiest way to achieve this is with the customizer, included in the Premium Templates extension, which allows you to add custom blocks with a set-up like this:
Please note that the “VAT reverse charge” setting has been checked to display this custom block only if that condition is met.
Then, your PDF invoice will display the custom text if the VAT reverse charge condition is met, this way:
The VAT Reverse Charge option will be considered ‘true’ if all these conditions are met:
The billing country is from a European Union country.
The billing country is not the same as the shop base country.
Please note that, since the rules for the WordPress.org forums doesn’t allow us providing premium support or answering pre-sale questions for paid plugins, please contact us by email to support@wpovernight.com, if you have further questions regarding the Premium Templates extension.
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Add setence based on tax’ is closed to new replies.