Title: Conditional hiding
Last modified: June 27, 2018

---

# Conditional hiding

 *  Resolved [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/conditional-hiding/)
 * Hi,
 * I have setup a free shipping trigger that is working correctly dans I checked
   the “Hide other shipping methods when free shipping is available” option to hide
   non pertinent info.
 * But I would like to add another shipping option which would be a Pick up at location
   that stays an option even if shipping is free. The “Hide other shipping …” options
   dos not allow that. Is there a way to have both working ?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/conditional-hiding/#post-10443248)
 * Hi,
 * You can try this code snippet instead of the setting; [https://gist.github.com/JeroenSormani/38af8a40b235246a75042f3a481d6b25](https://gist.github.com/JeroenSormani/38af8a40b235246a75042f3a481d6b25)
 * Cheers,
    Jeroen
 *  Thread Starter [Alexandre Gauvin](https://wordpress.org/support/users/pictogram/)
 * (@pictogram)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/conditional-hiding/#post-10443905)
 * Exactly what I was looking for.
 * Thanks a lot,
 *  [monsieurho](https://wordpress.org/support/users/monsieurho/)
 * (@monsieurho)
 * [8 years ago](https://wordpress.org/support/topic/conditional-hiding/#post-10543063)
 * Hi [@sormano](https://wordpress.org/support/users/sormano/),
 * Is it possible to hide a specific flat rate?
 * I tried by replacing ‘local_pickup’ by ‘flat_rate:7’ but doesn’t seem to work
 * Thanks in advance
 * Gregory
 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [8 years ago](https://wordpress.org/support/topic/conditional-hiding/#post-10546508)
 * Hiding a specific rate is not something the snippet is meant to do – changing
   one thing likely won’t fix that.
 * You can take a look at my [Advanced Shipping](http://codecanyon.net/item/woocommerce-advanced-shipping/8634573)
   plugin to see if that’ll allow you to setup the conditions needed for that shipping
   rate to appear.
 * Cheers,
    Jeroen

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Conditional hiding’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-advanced-free-shipping/assets/icon-256x256.png?
   rev=1171652)
 * [Advanced Free Shipping for WooCommerce](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/conditional-hiding/#post-10546508)
 * Status: resolved