• Resolved Carl Brubaker

    (@imconfused4sure)


    I am trying to update Billing Address fields using the hook woocommerce_billling_fields. I can successfully update most of the field labels, but the one that I want to, billing_address_1 does not hold the change. If I refresh the page, the label that I set appears briefly before it changes back to the default that is set. If I change the label with the hook woocommerce_default_address_fields it will stay to what I want it to, except I want to have a separate labels for billing and shipping. I have disabled all other plugins. What am I doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you see here:
    https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
    about 1/3rd down the page, it tells us that “In specific cases you need to use the?woocommerce_default_address_fields?filter.” The document does not say which cases, but the text goes on to give an example based on the address_1 field. So it looks like you have it working as expected.

    This behaviour may be coming from the locale rules set in your computer’s operating system and these rules are taking precedence.

    Thread Starter Carl Brubaker

    (@imconfused4sure)

    @lorro ok, so then how to I display different labels for Billing and Shipping Address?

    Roxy

    (@roxannestoltz)

    Hi @imconfused4sure ,

    I understand that you would like to edit the Billing and Shipping fields, is this correct?

    This can be achieved with the use of a plugin, such as Checkout Field Editor.

    The?Checkout Field Editor?provides an interface to add, edit and remove fields shown on your WooCommerce checkout page.

    WooCommerce.com offers a 30-day refund policy which you can take advantage of, allowing you to test the extension, and make sure that it is what you are looking for.

    Should you have any pre-sales related questions, kindly contact us directly, here. You will need to create an account if you do not have one already.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set different labels for Billing Address and Shipping adress fields’ is closed to new replies.