Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi vikk101,

    If I correctly understand your request, you need to add some fields in the affiliate registration form

    We covered a similar problem in this article of our Help Center

    As you can easly see, in order to add a field to registration form, you’ll have to follow two steps
    -Add the field (using yith_wcaf_register_form action)
    -Make validation over data submitted (using woocommerce_process_registration_errors filter)

    In the first step we print a checkbox with corresponding label (in our example, a TOS checkbox)

    In the second step we get a WP_Error object via $validation_error param, and we can test submitted data in the $_POST; if something goes wrong, all that we have to do is call method add specifying the error message, and return changed object

    Hope this helps
    Let me know if you need more support

    Have a nice day

    Hi,
    I tried to set a checkbox (like your article in your Help Center).
    But even when I checked the box for terms I got the response “Please, accept our Terms & Conditions”. I don’t know why. Any ideas?

    Ah, it was an other problem, I solved it by myself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Registration Form’ is closed to new replies.