Title: Can’t this be done without JavaScript?
Last modified: August 22, 2016

---

# Can’t this be done without JavaScript?

 *  [yonatron](https://wordpress.org/support/users/yonatron/)
 * (@yonatron)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/cant-this-be-done-without-javascript/)
 * I was just thinking it was really weird that WooCommerce shows the Shipping info
   when “Local Pickup” is the only active method so I was glad to see this plugin.
   But I don’t get why you use JavaScript to hide the shipping fields. You should
   just be able to hook the **woocommerce_checkout_fields** or **woocommerce_shipping_fields**
   filter and get in all done in PHP using [Woo-supported](http://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/)
   technique.
 * [https://wordpress.org/plugins/woocommerce-hide-checkout-shipping-address/](https://wordpress.org/plugins/woocommerce-hide-checkout-shipping-address/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ronald_edelschaap](https://wordpress.org/support/users/ronald_edelschaap/)
 * (@ronald_edelschaap)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-this-be-done-without-javascript/#post-5739971)
 * Sorry for not coming back to you sooner, didn’t receive any notification of your
   support ticket.
 * It’s done with JavaScript to be able to switch between shipping methods. When
   you have two shipping methods, you might want to show the shipping address fields
   when one of them is selected.

Viewing 1 replies (of 1 total)

The topic ‘Can’t this be done without JavaScript?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-hide-checkout-shipping-
   address.svg)
 * [WooCommerce Hide Checkout Shipping Address](https://wordpress.org/plugins/woocommerce-hide-checkout-shipping-address/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-hide-checkout-shipping-address/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-hide-checkout-shipping-address/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-hide-checkout-shipping-address/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-hide-checkout-shipping-address/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-hide-checkout-shipping-address/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ronald_edelschaap](https://wordpress.org/support/users/ronald_edelschaap/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/cant-this-be-done-without-javascript/#post-5739971)
 * Status: not a support question