-
-
Save mindctrl/f7506b46e1b77511529d to your computer and use it in GitHub Desktop.
/** | |
* Removes the billing details section on the checkout screen. | |
*/ | |
function jp_disable_billing_details() { | |
remove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields' ); | |
} | |
add_action( 'init', 'jp_disable_billing_details' ); |
Does anyone know if removing this will cause problems with calculating taxes correct?
I think it would cause a problem. How would it calculate taxes if your customers can't enter their billing address?
These fields are required to calculate EDD taxes and for some payment gateways, so they shouldn't be removed:
Important Notes:
There are a few checkout fields that cannot be modified by this extension:
Billing Address fields. These are required by credit card payment gateways and by the EDD tax system, so these are not permitted to be modified.
The Credit Card form used by payment gateways that process credit cards. Since it is vital these fields appear exactly as expected by EDD, these fields are not allowed to be modified.
For EU VAT, the only thing needed is State. So ZIP, city, Province are just getting in seller's way for conversion...
I'll test just with the State field to see what happens. The idea is to first unset the required and then hide with CSS.
Thank you!