• Resolved mcarbone

    (@mcarbone)


    I have two new fields that are required for non-logged in users. I added my fields as additional fields (type: select), made each field required, checked the user role filter and entered each role that I didn’t want to see the fields in the “Hide from Roles” fields.

    The problem is that when I log in and checkout as a user role that is not supposed to see the new fields, an error comes up that I have not completed the fields when I submit the order even though the fields are not visible (which they shouldn’t be).

    It seems as if the required fields function does not respect the user role filter. Errors for uncompleted required fields come up even if the field is hidden from specific user roles.

    Screenshots for explanation

    https://wordpress.org/plugins/woocommerce-checkout-manager/

Viewing 1 replies (of 1 total)
  • Thread Starter mcarbone

    (@mcarbone)

    Does this make sense? What’s weird is that when I am logged in as a role that is not supposed to use the fields, the new fields are not hidden in any way ( display: none;). If they were hidden from visibility, it would make sense that the error would come up, but this is not the case. The fields are no where in the html.

Viewing 1 replies (of 1 total)

The topic ‘Required fields and user roles – Major Bug’ is closed to new replies.