Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter peted172

    (@peted172)

    Found it…

    You edit the class-wc-countries.php file which sits in plugins/woocommerce/classes

    Hi Peted172,

    I’m in need of a similar solution! I need my store to exclude shipping to NT, WA and TAS.

    Where exactly did you remove the States in the class-wc-countries.php file?

    Thanks Mate!

    Thread Starter peted172

    (@peted172)

    Hi Deeperlook

    Line 282

    $this->states = apply_filters(‘woocommerce_states’, array(
    ‘AU’ => array(
    ‘VIC’ => __(‘Victoria’, ‘woocommerce’) ,

    I just deleted all the states the were not required, you have to remember to do this each time you update Woocommerce

    Cheers Pete

    Thread Starter peted172

    (@peted172)

    Hi Deeperlook

    Just updated WooCommerce to version 2.0.19 and i also couldn’t find where to delete the Australian states in class-wc-countries.php file.

    In WC version 2.0.1 and 2.0.19 the class-wc-countries.php file states in the first paragraph that they are both version 1.6.4 so i used the class-wc-countries.php file from Woo Commerce 2.0.1 and it works perfectly

    The WooCommerce countries class stores country/state data.
    *
    * @class WC_Countries
    * @version 1.6.4

    Cheers Pete

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove a Particular State/County from Shipping or Billing Form’ is closed to new replies.