Support » Plugin: WooCommerce » Conditionally Hide ZIP and State for certain country

  • Resolved hameedfarah

    (@hameedfarah)


    Hi
    I am looking for a way to hide the Zip code and state when the shipping country is JO

    ),
    'JO' => array(
    'postcode' => array(
    'required' => false,
    'hidden'   => true,
    ),
    'state'    => array(
    'required' => false,
    'hidden'   => true,
    ),

    This code added to class-wc-countries.php does exactly what I need. Problem is I need someway to do it without editing core files.

    Any suggestions please?

    • This topic was modified 5 months, 2 weeks ago by hameedfarah.
    • This topic was modified 5 months, 2 weeks ago by hameedfarah.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.