- Flatsome UX Builder?
- How To Enable ActiveCampaign With CartFlows?
- How to Enable Paypal Reference Transactions?
- How Does Paypal/Stripe Work in the Case of Cartflows?
- How to Enable Enfold Avia Layout Builder in CartFlows Steps?
- How to Setup Authorize.net Gateway for the Cartflows Upsell & Downsell?
- List of all the Supported Payment Gateways by CartFlows
- How to Setup A/B Testing with Google Optimize for CartFlows?
- How to Set Quantity and Discount for Product on the Checkout Page.
- How to Add the Custom Support of any Payment Gateway for One-Click Upsell & Downsell in the CartFlows?
- How To Use CartFlows With Your Own Template?
- How To Use CartFlows With Beaver Builder?
- How To Use CartFlows With Thrive Architect?
- How to Hide Checkout Fields from the Checkout Page?
- Global Checkout
- How To Use WooCommerce?
- How To Install WooCommerce?
- General Settings Overview
- How To Use Your Themes Header & Footer In A Step?
- How To Embed A Checkout Form on the CartFlows Checkout page?
- How to Enable Webhooks in WooCommerce Cart Abandonment Recovery Plugin?
- Shortcode Reference for Email Fields in Cart Abandonment
- Filters to Customize Product Table
- Cart Recovery Emails not Sending [Cart Abandonment]
- Abandoned Orders Not Capturing [Cart Abandonment]
- How to Resolve the Recovery Email Going to Spam?
- Cart Abandonment Cookies/GDPR Compliance
- Configuring WooCommerce Cart Abandonment Recovery Settings
- Flow In Test Mode
- How to Troubleshoot a Conflict with the Plugin & Theme?
- How to Solve the Never-Ending Loading Issue on the Checkout Page?
- How to Solve the “Order Not Found” Error Message on the Thank You Page?
- How to resolve “Checkout ID not Found” Error message?
- How to Resolve “Session Expired” Error message?
- How to Resolve “Order Does not Exist Error” on Upsell & Downsell Page?
- How to Resolve “Sorry this product cannot be purchased” Error Message?
- How to Resolve “No product is selected…” error message?
- What to Do if the Order Status is Stuck at MainOrderAccepted?
- How to Turn Off the Auto-fill of Address Fields on Entering Zip-Code?
- How to Enable the Theme’s Scripts & Styles without Changing the Page Template?
- How to Turn Off the Auto-fill of Checkout Fields?
- How to Allow Cache Plugins to Cache the CartFlows Pages?
- How to Change the “Choose A variation” text?
- VAT Field of WooCommerce EU/UK VAT Compliance (Premium) plugin is not displaying.
- How to enable the product tab on store checkout
- How to show the order summary open on mobile devices
VAT Field of WooCommerce EU/UK VAT Compliance (Premium) plugin is not displaying.
If you are using the “WooCommerce EU/UK VAT Compliance (Premium)” by “David Anderson” to add the VAT field on the checkout page and it is not displaying then this article will help you to display that field on the CartFlows Checkout field.
The VAT field is used to add the VAT number or the VAT amount on the checkout page on the WooCommerce Platform.
This VAT field is not required to all of the stores or countries but only required by the European countries and any other to force the country’s rules and regulations for better compliance.
While using “WooCommerce EU/UK VAT Compliance (Premium)”, configure it completely and check that the VAT field is getting displayed on the default checkout of WooCommerce.
If that field is not displayed on the default checkout page of WooCommerce then it will not be displayed on the CartFlows Checkout page. So, to make it work with CartFlows, it is mandatory that the VAT field should be displayed on the default WooCommerce Checkout page.
The “WooCommerce EU/UK VAT Compliance (Premium)” plugin adds an input field on the checkout page. The label of that field will be the same that you have set from that plugin’s setting.
If that field is displayed on the default checkout page of WooCommerce and not on the CartFlows page, then this is because CartFlows modifies the checkout fields including the billing and shipping fields with our own custom field editor and as per the design of the checkout page.
These modifications are made using the default WooCommerce actions and filters. Due to these modifications, the priorities of those fields are changed and thus any other custom field added by the third-party plugin may or may not be displayed on the CartFlows Checkout page.
To display this field, the plugin “WooCommerce EU/UK VAT Compliance (Premium)“ has provided a filter to change the location of that field. So that we can decide where else we have to display the field, such as after billing fields, or after shipping fields, or even after the checkout form, etc etc.
Below is the code using which you can easily display the VAT field on the CartFlows checkout page.
add_filter( 'wc_eu_vat_number_position', 'eu_change_vat_number_position', 10, 1 );
/**
* Function to change the position of VAT field only for the CartFlows checkout page.
*
* @param $current_page current visited page
* @return $current_page current page.
*/
function eu_change_vat_number_position( $position ){
/* Get global post object */
global $post;
/* Get current post type */
$post_type = get_post_type();
/* Check the current type of the page */
$is_checkout = get_post_meta( $post->ID, 'wcf-step-type', true );
/* Change position only of the CartFlows checkout page */
if( 'cartflows_step' == $post_type && 'checkout' === $is_checkout){
$position = 'woocommerce_after_order_notes';
}
return $position;
}
Note: Add the above filter to your child theme’s functions.php, here’s an article to help you Add Custom code.
We don't respond to the article feedback, we use it to improve our support content.