Title: Customize checkout fields
Last modified: August 10, 2024

---

# Customize checkout fields

 *  Resolved [annewp](https://wordpress.org/support/users/annewp/)
 * (@annewp)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/customize-checkout-fields-2/)
 * Dear all,
 * I would like to customize the checkout page of Woocommerce by editing the php
   file as plugins seem not to be working for me. However, where can I edit the 
   fields. In /domains/website.com/private_html/wp-content/plugins/woocommerce/templates/
   checkout I see form-checkout.php and form-billing.php. But in there, I cannot
   find billing_address_2 that I like to make required rather than optional or for
   instance any other item such as billing_first_name, that I would like to copy
   and adjust to customize. In which php file can I find these items and after that
   is it correct that I should copy that php file to the folder /domains/website.
   com/private_html/wp-content/themes/themename/woocommerce/checkout? Or should 
   I add a code to functions.php in /domains/website.com/private_html/wp-content/
   themes/themename?
 * Best regards,
 * Anne
    -  This topic was modified 1 year, 11 months ago by [annewp](https://wordpress.org/support/users/annewp/).
    -  This topic was modified 1 year, 11 months ago by [annewp](https://wordpress.org/support/users/annewp/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/customize-checkout-fields-2/#post-17944770)
 * Hi [@annewp](https://wordpress.org/support/users/annewp/)
 * A great deal depends on which checkout you’re using: Is this the old shortcode
   based checkout or the newer Gutenberg block based checkout? The answer here will
   determine whether you’d need with PHP (and likely plugins) or whether you’ll 
   need JavaScript / React components.
 * In terms of forcing the billing address 2nd line to be required/visible (and 
   assuming you’re using Block checkout), this can be set in the block settings 
   directly:
 * ![](https://cdn-std.droplr.net/files/acc_402967/1Ftwwt)

Viewing 1 replies (of 1 total)

The topic ‘Customize checkout fields’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/customize-checkout-fields-2/#post-17944770)
 * Status: resolved