• Profilfoto von lyric-winslow

    lyric-winslow hat einen Beitrag veröffentlicht 3 Wochen aktiv.

    3 Wochen aktiv.

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

      Lachen
      2