I’m trying to customise WooCommerce checkout page, how can I edit field labels?
Also, how can I remove 2 fields from the form? I don’t need Company
and State
field.
I’m trying to customise WooCommerce checkout page, how can I edit field labels?
Also, how can I remove 2 fields from the form? I don’t need Company
and State
field.
You must be logged in to post a comment.
I recommend making a custom plugin that modifies this so you can easily upgrade WooCommerce at a later date.
In your custom plugin, implement some of the code found on here: http://wcdocs.woothemes.com/snippets/tutorial-customising-checkout-fields-using-actions-and-filters/
For example, to remove Company and State:
If you need help making a Plugin, I made a guide on how to add custom fields to the Product page. I think it might be helpful in this context.
http://www.xatik.com/2013/02/06/add-custom-form-woocommerce-product/
Here is a working hook that you need to add into your theme’s functions.php file
Updating for future readers –
WooCommerce Docs now has a codex article on Customizing checkout fields using actions and filters which looks rather comprehensive.
The only additional point I will make is that as of WooCommerce 3.5.1 there is a small trick to using Billing/Shipping_Address_2 Labels, as addressed in my answer to this question.