This topic has 4 replies, 2 voices, and was last updated 6 years, 7 months ago ago by Rose Tyler
dont suppose you could tell me how i can make this work to only hide “royal mail” flatrate when free is active?
function my_hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
if ( ‘free_shipping’ === $rate->method_id ) {
$free[ $rate_id ] = $rate;
break;
}
}
return ! empty( $free ) ? $free : $rates;
}
add_filter( ‘woocommerce_package_rates’, ‘my_hide_shipping_when_free_is_available’, 100 );
Hello,
We are theme support and we can help you with issues related strictly to our theme.
If you need help with additional customization contact WP-Kraken team.
Feel free to ask if you have any other questions.
Regards
technically its to do with the theme, in that it could be seen as a layout question 🙂
Hello,
This is not a bug or issue, but additional customization that are not covered under our Support Policy.
But if you explain in more details the desired result and provide screenshots and temporary access in Private Content, I will be able to check what can be done from our side to help you.
Regards
You must be logged in to reply to this topic.Log in/Sign up