Pre-populate Woocommerce checkout fields

Pre-populate Woocommerce checkout fields for logged in user.
This will populate ‘value’ attribute of checkout input field.

5 Comments

  1. Hi, thanks for code, Im wondering what if user is not logged in? Can we still pass values from Contact form 7 to woocommerce checkout fields ?

    1. Hi Suyog,

      Not sure how you want to pass it, but I think it should be possible to pass anything into this filter.
      I think the WooCommerce user data is saved into cookie along with cart data so it should work.

Leave a Reply

Your email address will not be published. Required fields are marked *