• Foto do perfil de lyric-winslow

    lyric-winslow publicou uma atualização 4 months ago

    4 months ago

    Is it possible to remove the shipping method field from the WooCommerce checkout page? If not, how can I streamline it so that a default shipping method is pre-selected or hidden from customers, while still being applied automatically?

    • Try adding code to remove

      add_filter( ‘woocommerce_cart_needs_shipping’, ‘__return_false’ );

      add_filter( ‘woocommerce_checkout_fields’, function( $fields ) {
      unset( $fields[‘shipping’][‘shipping_method’] );
      return $fields;
      });

      Rir
      2
    We've detected you might be speaking a different language. Do you want to change to:
    en_US English
    en_US English
    fr_FR French
    de_DE German
    ja Japanese
    es_ES Spanish
    pt_PT Portuguese
    zh_TW Chinese
    ar Arabic
    Close and do not switch language