I'm using multi-step checkout process and I'm trying to display only the shipping method options on the second step. ( image ) https://i.stack.imgur.com/kGO8D.jpg
By the default the shipping methods are displayed in the checkout page which I'll split into 3 parts:
- Billing and Shipping contact details
- Shipping Methods
- Order review and 'complete checkout' process
My current code returns an empty array and not sure what I'm doing wrong.
add_action( 'woocommerce_review_order_after_shipping', 'woo_shipping_test' );
function woo_shipping_test() {
$available_shipping = WC()->shipping->get_shipping_methods();
var_dump($available_shipping);
}