Show all shipping options if free shipping met
-
I’d like all shipping options to show even if free shipping conditions are met but your plugin seems to hide them.
I’ve tried adding a function to override this such as:add_filter( 'woocommerce_package_rates', 'show_all_shipping_methods', 200 ); function show_all_shipping_methods( $rates ) { $free = array(); foreach ( $rates as $rate_id => $rate ) { if ( 'free_shipping' === $rate->method_id ) { $free[ $rate_id ] = $rate; } } return ! empty( $free ) ? array_merge( $rates, $free ) : $rates; }
But nothing seems to work. What can I do please?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.