Title: Get shipping method
Last modified: December 1, 2021

---

# Get shipping method

 *  Resolved [aresioep](https://wordpress.org/support/users/aresioep/)
 * (@aresioep)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-shipping-method-2/)
 * Hi, I’ve created 2 shipping rules one for curier delivery and one for a local
   pickup option with free shipping, but also I have created a custom function for
   extra fee when cash on delivery is selected, my problem is that I want to distinguish
   the 2 options, I want to apply the fee only for the curier option rule and set
   it to 0 when the rule for local pickup is selected. Is there any way to get the
   shipping roule method somehow in order to create an if statment ? example if (
   $chosen_payment_method == ‘cod’ && ‘ Weight Based Shipping method’ )
 * <script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dan](https://wordpress.org/support/users/dangoodman/)
 * (@dangoodman)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/get-shipping-method-2/#post-15143675)
 * Hi, I believe you can distinguish the options by their title or price.

Viewing 1 replies (of 1 total)

The topic ‘Get shipping method’ is closed to new replies.

 * ![](https://ps.w.org/weight-based-shipping-for-woocommerce/assets/icon-256x256.
   png?rev=2072721)
 * [Weight Based Shipping for WooCommerce](https://wordpress.org/plugins/weight-based-shipping-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weight-based-shipping-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dan](https://wordpress.org/support/users/dangoodman/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/get-shipping-method-2/#post-15143675)
 * Status: resolved