• I am trying to hide address entry either billing / shipping in the checkout process siince the product does not involve conventional delivery (it is a home visit service).

    So using Code Snippet, implemented the following but didn’t work as I expected. The Address entry still remains. Appreiciate for the advise:

    add_filter( ‘woocommerce_checkout_fields’ , ‘customize_checkout_fields’ );
    function customize_checkout_fields( $fields ) {
    // Make Billing Address “Not Required”
    $fields[‘billing’][‘required’] = false;

    // Hide Billing Address Fields (Optional)
    unset($fields[‘billing’]);

    // Hide Shipping Address Fields (Optional)
    unset($fields[‘shipping’]);

    return $fields;
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Zee

    (@doublezed2)

    Hello metopera

    Thank you for contacting Woo support.

    Please note that our support policy does not cover custom-coded solutions.
    However, I suggest you consult a local web developer or find one on the WooExperts platform.

    I understand that you provide a service that requires reservations or bookings.
    In that case, I recommend looking into the WooCommerce Bookings extension.
    It offers all the features that a proper reservation service should have.

    Please don’t hesitate to contact me if you have any questions.
    I am here to help 🙂

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘hide Address entry both billing/shipping’ is closed to new replies.