Hi there!
Billing and Shipping are two different fields, unless you want to completely disable shipping, in which case, you can do that from WooCommerce > Settings > General > General options > Shipping location(s) > Select – Disable shipping and shipping Calculations.
If you do allow shipping on the store, there isn’t a way to remove those fields, but you can set default billing address as shipping address here: WooCommerce > Settings > Shipping > Shipping Options > Shipping destination > Select – Default to customer billing address
Thread Starter
000x2a
(@000x2a)
@aashik unfortunately I cannot disable shipping the defaulting the billing address to shipping address doesn’t make these fields go away.
Hi there!
There’s also another method to just remove those fields.
You can try the following snippet: add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false');
This should either go into your child themes functions.php file, or you can use a plugin like https://wordpress.org/plugins/code-snippets/
Please make sure to take a complete backup of your store before testing any snippets, and reach out to your web host or developer if you’re not comfortable adding custom code.
Thread Starter
000x2a
(@000x2a)
@aashik all good. I fixed it! I had code in there that shouldn’t have.
Hi there!
I fixed it! I had code in there that shouldn’t have.
Glad you got this resolved!
I did suggest a custom coding solution above, but that comment is currently held for moderation 🙂
I’ll mark this topic as solved for now. Please feel free to open a new topic if you have any other questions.