[Solved] How can I reliably reset the Woocommerce user selected shipping method in the cart during testing? [closed]
[ad_1] Have a look at the WooCommerce Shipping Class. Specifically, the reset_shipping() method. You can reset the chosen shipping method that has been stored to the session via: <?php unset( WC()->session->chosen_shipping_methods ); ?> EDIT: A non-programmatic way to do this is to head to the WP Admin Dashboard and navigate to: WooCommerce –> System Status … Read more