Update Your get_checkout_fields
method with parameter billing_country
so it will look like
$fields = $checkout->get_checkout_fields( 'billing_country' );
Documentation:
https://docs.woocommerce.com/wc-apidocs/source-class-WC_Checkout.html#197-281
Related Posts:
- Getting the gallery images from products in woocommerce?
- add_filter to modify woocommerce_cart_item_name hyperlink
- Get product details by url key in WordPress woocommerce
- Where is the “default attribute” values located in the phpMyAdmin in Woocommerce?
- pre_get_posts with WooCommerce Shortcode Query
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- Reverse engineering of WooCommerce Storefront filters
- Use WooCommerce function in other WordPress plugin
- WooCommerce Cart – Group Products By Category
- WooCommerce – update order item price and recalculate totals
- Add product description (content) to WooCommerce customer processing order email
- woocommerce – get_image_size() deprecated [closed]
- Woocommerce: How to remove page title from storefront theme homepage
- Remove checkout fields with Woocommerce depending on one of several shipping methods
- Replace one coupon to another after coupon added
- WooCommerce Multi-Currency shortcode not working
- Avada & WooCommerce Customization – Replacing product_title in woo-config.php [closed]
- How to unset fields in woocommerce product quick edit?
- rating, share and review issue for single WooCommerce page
- Delete All Product Images in phpmyadmin
- WooCommerce template page for category
- Custom PLU field in woocommerce email
- How to get the webshop page in 2:nd language, with Polylang and Hyyan
- Subcategories not working when using shared base with custom taxonomy
- Change how the Subtotal Price in cart being calculated [closed]
- Display Advanced Custom Fields value in Woocommerce admin order details
- Some images aren’t shown on wordpress after installation on host
- Show only one variaton in catalog on meta key
- WordPress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data
- PayPal Express on product page in WooCommerce – doesn’t seem to work on product page?
- Woocommerce – Want to block a user agent from accessing specific product pages
- Reset all stock status in woocommerce
- Overwrite ‘require’ in child-theme
- Additional fields on Woocommerce’s rating system
- Best Practice – Customise a WooCommerce+WordPress Templates
- Woocommerce product image [closed]
- Question on WooCommerce Syntax
- Tax are not showing on order while placing order with REST API
- woocommerce_new_product action doesn’t fire
- Change The Woocommerce Product Categories Dropdown Widget Placeholder Text
- WooCommerce adding product to cart programatically [closed]
- minimum order item for certain products exempting 2 other products (in bulk)
- Is it possible to checkout with 2 different shipping options on a single order? [closed]
- Sender e-mail address, for new order email to customer, is suddenly wrong [closed]
- How can I reference external attachments without breaking core WordPress files?
- Hide prices from certain category in woocommerce
- Undo WooCommerce CSV import
- A Woo commerce extension has deleted my old theme.How to undo? [closed]
- Check if a WooCommerce Order Item has a specific meta data key
- Simple Product not displaying in frontend
- Woocommerce Advanced Shipping (WAS) condition is not being called when selecting “Ship to different address” [closed]
- Strip string from $_product->get_title() to get a cleaner mini-cart
- WooCommerce Meta
- WooCommerce Product Table Conditional styling
- Product page attributes dropdown show price
- Smart Design for Blog + Woocommerce + LearnDash + Forum/Bodyboss
- Ajax add to cart not updating Elementor mini cart totals
- I want to store user password (during registration) in an other table in the same database in addition to the user table MD5 Hash
- What is the problem with these lines of code?
- Dynamic product total add to cart amount
- How can I make a thumbnail slider
- WooCommerce – 500k Jump in Order Number?
- How to access product’s meta data when deleting a WooCommerce product?
- How to show specific admin menu to specific user role?
- Need help with woocommerce roles
- Change WooCommerce product and variation prices programatically without affecting performance
- Help to locate a woocommerce hook method
- woocommerce_product_quick_edit_save hook not fired
- Format number to 2 decimal places
- How can we find a WooCommerce shop bottleneck? (only when cart is full)
- Conditional for product attribute page
- Setting Page Visibility for WooCommerce Default Page Doesn’t Work
- Deleted products from woocommerce are still in the database
- Remove cart functionality from WooCommerce so it doesn’t remember the products [closed]
- Apply CSS to certain product thumbnails only
- Using admin email in billing address
- Overriding Plugin function in your child theme
- Files names changed (with strange characters) after being uploaded to cpanel
- woocommerce_add_to_cart custom function called several times
- How do you reactive related products on WooCommerce when it has been disabled?
- Display product variations in shop page
- Customer Email Address
- How can I locate where the actions are defined? [duplicate]
- Shortcodes in billing fields doesn’t work
- Update a user meta key based on WooCommerce product purchase
- How to fix spacing in address tab in my account page
- Adding time of order to Admin email for new order
- Uninitialised Parameters using woocommerce_checkout_update_order_meta hook
- show multiple product photos on WooCommerce single page
- Hide add to cart when product variation has no price or is unavailable
- How to get the WooCommercer product variation image
- how add css class to product boxes li, for img, add cart button, decs, price… [closed]
- How can I hide the entire “Shipping Details” block on the admin side of Woocommerce? [closed]
- How do I put woocommerce cart page to my checkout page? [closed]
- CSS url rules not relative to css path in account endpoint areas. IE. subscriptions
- How to dublicate WC Product title to shortdescription field? [closed]
- Add Additional 3 buttons next to “Add to cart” button in woocommerce product page
- How do I remove the recurring total from thank you for your order email?
- Woocommerce product and category in url [closed]
- Display product categories + child-categories on a single product page