Support » Plugin: WooCommerce » How to add validate and save fields

  • Resolved kaikyle16

    (@kaikyle16)


    How to add, validate and save fields on registration page. I am using this code in functions.php to add fields to registration page:
    global woocommerce;
    foreach($checkout->get_checkout_fields(‘billing’) as $key=>$field):
    if($key!=’billing_email’){
    woocommerce_form_field($key,$field,$checkout->get_value($key));}
    endforeach;}

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.