Please help - by DeVereor - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 6 years, 7 months ago ago by Rose Tyler

  • Avatar: DeVereor
    DeVereor
    Participant
    March 26, 2018 at 13:06

    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 );

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 26, 2018 at 14:20

    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

    Avatar: DeVereor
    DeVereor
    Participant
    March 26, 2018 at 16:55

    technically its to do with the theme, in that it could be seen as a layout question 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 27, 2018 at 12:07

    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

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.