• Resolved ecommpower

    (@ecommpower)


    From the wp-admin administrative panel.

    Woocommerce → Orders

    Shipping → Pencil

    I need to hide the “City” and “Zip Code” fields.

    And the address 1 and address 2 fields.

    I need to change the text to it.

    That instead of saying address 1 I can say Street or Race.
    That instead of saying address 2 it can say door number.

    Prune an example.

    It is not a change for the customer who buys, it is for my workers. so the change must be seen, it is from the backend as we see the administrators, store managers.

    I need to hide the elements marked in red.
    And I need the elements marked in blue to be titled as

    Address 1 and Address 2

    I can change their text and place another text in each one.

    Just change the title.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @ecommpower,

    The form fields can be accessed using the filter woocommerce_admin_shipping_fields.

    For instance, to hide the fields you mentioned, you could use a code similar to this:

    function custom_admin_shipping_fields( $fields ) {
        unset( $fields['city'] );
        unset( $fields['postcode'] );
    
        return $fields;
    }
    
    add_filter( 'woocommerce_admin_shipping_fields', 'custom_admin_shipping_fields', 10, 1 );
    Thread Starter ecommpower

    (@ecommpower)

    @fermarichal Thank you very much.

    It worked perfect for me.

    You solved a huge doubt, thank you very much for your contribution.

    Hi @ecommpower

    Thanks for reaching out!

    I’m glad you were able to find a solution to your inquiry here ??

    Kudos to @fermarichal for sharing it with the community too! ??

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide woocommerce backend elements’ is closed to new replies.