• Resolved 000x2a

    (@000x2a)


    On checkout, I have repeating fields. The following are the fields I have. I’m not sure which fields I need? Guessing I don’t need the shipping address details? How do I get rid of the ones I don’t need?

    billing_address_1
    shipping_address_1
    shipping_first_name
    shipping_last_name
    billing_address_2
    shipping_address_2`

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    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.

    Plugin Support Aashik P – a11n

    (@aashik)

    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.

    Plugin Support Aashik P – a11n

    (@aashik)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Repeat fields in billing section’ is closed to new replies.