Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @showtek,

    That’s a great question. I would take a look at a tutorial like this one that can show you how to add custom fields to WooCommerce customer accounts:

    https://iconicwp.com/blog/the-ultimate-guide-to-adding-custom-woocommerce-user-account-fields/

    It covers more than adding them only to an account endpoint, but that is in there as well. See if that won’t give you some direction as you work on this.

    Take care

    Thread Starter showtek

    (@showtek)

    Hey @3sonsdevelopment,

    Thank you very much for your reply! I have previously reviewed the detailed tutorial and based my current code from them, however, it only stated the custom fields to be validated and saved in either check-out fields or my account fields where a button is already located. While it may solve a problem by migrating my code to that section, it may not follow the ease of use for the website I am trying to build 🙁

    con

    (@conschneider)

    Engineer

    Hi there,

    > While it may solve a problem by migrating my code to that section, it may not follow the ease of use for the website I am trying to build 🙁

    Did you make it work?

    Kind regards,

    con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to trigger a function with a button?’ is closed to new replies.