EU VAT for Gravity Forms FAQs: Switching Default Country per Form

Hello, Gravity Forms pros! In this short guide, I want to answer two frequently asked questions from you regarding the EU VAT for Gravity Forms plugin, a creation of mine designed to assist you in adhering to EU VAT regulations when selling products online. 

Specifically, I will address how to change the default country for specific forms and how to enable reverse VAT charges in the default country as two additional customization features. 

Without further ado, let’s dive right in and get to work!

Changing the Default Country for a Form

The default option of the EU VAT plugin is to apply the same country setting to all your forms. However, this might cause issues if you need to set a different default country for specific forms.

EU VAT for Gravity Forms Solution: Using a Code Snippet

You can add a custom code snippet to change the default country for a form. Don’t worry if you need to become more familiar with code snippets – I’ll walk you through the steps!

The snippet we’ll be using can be found in the following GitHub link: class-gotreu_form_default_tax_country.php

Open the file and follow the instructions at the beginning of the snippet file. These instructions will guide you on where to place the code within your website’s codebase.

Before you paste the code to your WordPress website, briefly review the code within the snippet and make sure you understand the instructions. 

The instructions are as follows:

1. Open your WordPress dashboard. Navigate to “Appearance” > “Theme File Editor” 

2. In the Theme Editor, locate and open the “functions.php” file. Here, you can add this custom snippet to modify the plugin’s behavior. 

3. Paste the entire code snippet at the bottom of the file.

4. Modify the configuration part at the bottom of the code to suit your needs. For example, change the form_id, iso_code, and standard_rate values to match your desired settings. Ensure you complete this step for each form ID you want to modify.

5. Save the changes.

6. Verify that the snippet is working correctly by testing your website’s form(s).

NOTE: Editing your theme files directly can be risky. To make changes safely, consider using a child theme. Additionally, always ensure you have a recent site backup before modifying.

Enabling Reverse Charge of VAT in the Default Country

Reverse charge is a VAT mechanism where the responsibility to collect and pay VAT shifts from the seller to the customer. This typically applies to business-to-business (B2B) transactions between VAT-registered companies within the EU.

The EU VAT plugin doesn’t apply a reverse charge to transactions in your default country by default. This might be necessary if you primarily conduct B2B transactions.

EU VAT for Gravity Forms Solution: Using a Code Snippet

Like changing the default country, you can use a custom code snippet to enable reverse charge functionality.

You can find the snippet in the following GitHub file:

class-gotreu-enable-default-country-reverse-charge.php

Locate the file named class-gotreu-enable-default-country-reverse-charge.php within the plugin’s directory on your website.

Like the previous snippet, this file includes instructions at the beginning that detail where to place the code within your website’s codebase. Follow those instructions carefully.

1. Open your WordPress dashboard. Navigate to “Appearance” > “Theme File Editor”.

2. If using the Theme Editor, locate and open the “functions.php” file. 

3. Paste the entire code snippet at the bottom of the file. Modify the configuration part at the bottom of the code to suit your needs. For example, change the form_ids array to include the form IDs for which you want to enable reverse charge tax. Ensure you complete this step for each form ID you want to modify.

4. Save the changes.

5. Verify that the snippet is working correctly by testing the form(s) on your website.

NOTE: Editing theme files directly can be risky. It’s recommended to use a child theme Ensure you have a recent backup of your site before making any changes.

Conclusion

And there you have it, by adding the code snippets above and following the guidelines, you can customize the EU VAT for Gravity Forms plugin even further to meet the form’s specific needs.

Please note that this short guide is intended to provide general instructions.  For specific details or troubleshooting, refer to the plugin’s documentation or contact me for support.

P.S. Do you have any questions about the EU VAT for Gravity Forms plugin? Comment below and we will answer them ASAP. Thank you!

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to Top