Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Fields added to that array should be saved by core in the form-handler?

    Thread Starter Padaben

    (@padaben)

    Hi Mike,
    I don’t think because the additional fields are added into the ORDER custom metas
    no the user one’s so a specific function used I think is into the woocommerce plugin

    I don’t get which function call and how to make the hook when button is clicked !
    what do you think ?

    Thread Starter Padaben

    (@padaben)

    In the page edit -adress i have
    <?php do_action( “woocommerce_before_edit_address_form_{$load_address}” ); ?>
    and
    do_action( “woocommerce_after_edit_address_form_{$load_address}” );
    then the <input type=”hidden” name=”action” value=”edit_address” />

    thanks

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The snippet I sent adds actual address fields. They are then saved here if you check: https://github.com/woothemes/woocommerce/blob/master/includes/class-wc-form-handler.php#L64

    Thread Starter Padaben

    (@padaben)

    Hi mike
    I might need a bit of a help to understand better.
    any line of code you could provide me ?
    thank you
    regards

    Thread Starter Padaben

    (@padaben)

    Mike,
    I got how to save the additional fields I added into the Billing form part with the plugin ??

    now I try to figure out how to add the additional fields part

    and also how to get the meta values into the fields when the user is logged in and access to the checkout page.

    thx for help
    B

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I sent an entire snippet. Use it to add a field, rather than modify.

    Thread Starter Padaben

    (@padaben)

    SO you mean use this snippet and do copy the code inside the function for each of my additional fields , right ?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The snippet has an array of fields: https://gist.github.com/mikejolley/1860056#file-gistfile1-txt-L12 so rather than edit a field, insert a new one in the same format as the others. Just change the key/name.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Woo checkout fields support’ is closed to new replies.