I have set the name fields as not mandatory in the invoicing plugin, but the First name is still required during the checkout at the billing details page. I guess it is a bug…
I would like to disable it so the user should check out without giving last/first name. Last name is OK, but the first name still needed for checkout.
I have the login details now, and will post it below.
The first name, address, city, state and country fields are required when the tax is enabled else it will work fine based on fields settings. So if you want to disable it then you can disable by putting the following code in your current theme’s functions.php file:
add_filter('wpinv_checkout_required_fields', 'wpinv_checkout_required_fields_cb', 10, 1);
unset($required_fields['first_name']); //first name not required
unset($required_fields['address']); //address not required
unset($required_fields['city']); //city not required
unset($required_fields['state']); //state not required
unset($required_fields['country']); //country not required
Please note: Some gateways may require this info when tax enabled. Also for tax calculation, it is required to have city, state, address or country fields.
To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on Core Plugin support and click on the "New Post" Button.