WooCommerce – Clear default shipping and payment options on cart/checkout page.

By default, when a custo ignore the rest of the shipping options presented on cart page. Same scenario is applicable for payment options presented on checkout page.

Screenshot – Default Shipping Option

WooCommerce Shipping Options Default

Code Snippet to clear the shipping and payment option while first time checkout.

Below code snippet will help you tored as the default option for that session.
So, while testing this snippet, use private / incognito the cart.

Screenshot – No Default Shipping Option

WooCommerce Shipping Options No Default

Comments (6)

  • KEVIN22

    But it does not force the user to select one. Any way to make it mandatory to select?

    July 11, 2017 at 11:09 pm
    • Veeresh

      Hello Kevin,

      If the customer does not select any shipping method and opts for check out, It will go to check out page.
      And still, the customer does not opt any shipping method in checkout page and try to place an order, It will not allow. Woocommerce shows the message “No shipping method has been selected. Please double check your address, or contact us if you need any help.” This is default woocommerce feature.

      Hope this helps.


      July 12, 2017 at 3:18 pm
  • KEVIN22

    so after the first time, it will save the default option? is there a way so that the customer will HAVE to select every time?

    July 11, 2017 at 4:18 pm
    • Veeresh

      Hello Kevin,

      Thank you for reaching us.
      It is woocommerce feature that it selects first service by default.
      by the above-mentioned code snippet, you can make it blank and let your customers select whatever they want.
      This will not be saved with customer data. So they need to select each time they checkout.

      Hope this helps. Let us know if you have any queries.


      July 11, 2017 at 4:45 pm
    • wendell

      I disagree. Returning customers are still given a default, which is the selection that they made in a previous order. I need to force them to choose a shipping option at checkout even if they have ordered from me before. Any ideas on how to make that happen? Thanks!

      April 4, 2018 at 11:19 pm
    • Anindo

      Hi Wendell,

      Unfortunately, as of now, we do not have a mechanism to do this. We will surely look into a possibility for this in future.

      April 5, 2018 at 2:19 pm

Leave a Reply