NO BUG: Removing the country field still causes an error

Browser: Chrome 110
OS: Windows
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hi,

WooCommerce Checkout: Prevent an error notice when hiding the country field with single-country shipping

Although this issue is mentioned in the Bricks 2.5 changelog, the error “The country field is a mandatory field” still appears if the country field is removed from the checkout.

Hi Jolia,
Thanks for reporting this. Could you share the affected checkout URL and confirm:

  • Your WooCommerce “Selling location(s)” and “Shipping location(s)” settings, including the selected countries.
  • Whether you use classic checkout or Checkout v2, and exactly how you removed the country field.

This will help us test the same setup against the 2.5-beta fix.

Hi @timmse,

I apologize for the delay. My site is on localhost.

Your WooCommerce “Selling location(s)” and “Shipping location(s)” settings, including the selected countries.

Yes. There is no problem here.

Whether you use classic checkout or Checkout v2, and exactly how you removed the country field.

I am using Checkout V2 and have removed the country field element.

Thanks for clarifying. Deleting the country field element alone leaves it registered as a required WooCommerce checkout field.

Please select the Checkout state and choose Country / Region under Remove unwanted fields > Billing (or Shipping, depending on which field you removed), then save and test checkout again. This step is covered here: Checkout v2 | Bricks Academy

If the error remains, please tell us which country field you removed and the exact Selling location(s) and Shipping location(s) options, including the selected countries.

Thank you sooooo much @timmse,

It worked perfectly just now.