Support » Plugin: DHL for WooCommerce » Postnumber field with placeholder “(optional)”

  • In the checkout process the placeholder of the postnumber adress field features the word “optional”. How can get rid of this? If a user chooses shipping to a Packstation the postnumber is not optional but required.

    You can see it here: https://imgur.com/a/tfL436y

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shadi Manna

    (@shadim)

    This is theme specific, you can try to hide it via CSS potentially.

    It’s not possible to hide placeholder values with CSS. Can you please assist on where the field is derived from? Can I use a hook to change the html placeholder value?

    Plugin Author Shadi Manna

    (@shadim)

    Unfortunately, this field is optional for some DHL address types from the drop down which is why it cannot be created as “required” and therefore has to be “optional”.

    niklas.buschner

    (@niklasbuschner)

    Thanks for getting back. Actually I disagree with your comment. When a user selects ‘DHL Packstation’ from the dropdown the postnumber field is required for a label to be printed correctly. The postnumber input field is only displayed for delivery to DHL Packstation and DHL store/branch. So I think it should definitely be possible to have this field as required for this certain shipping types. Otherwise it can cause problems when a user does not enter the postnumber and we have to manually ask for it.

    Would be great if you could consider implementing a solution for this!

    Plugin Author Shadi Manna

    (@shadim)

    If they try checking out WITHOUT entering a postnumber when a “Packstation” is selected they will get an error message informing them they need to enter it…even though it says “(optional)”. Please test this and confirm you get the error message.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Postnumber field with placeholder “(optional)”’ is closed to new replies.