Learn in this tutorial how to remove billing fields from Easy Digital Downloads (EDD) checkout using code.
If you have configured a payment gateway (such as Stripe), in the Easy Digital Downloads checkout, there is a section called “Billing Details” where you can add all the invoicing data as this:
This implies that the page to finalize the purchase has 3 sections:
- Personal information
- Billing details
- Credit card information
But what happens if you don’t need the billing fields?
You know that the fewer elements on the page, the higher the conversion rate. So in this tutorial you are going to see how to remove the billing fields if you don’t need them or prefer to ask for them afterwards.
Snippet to hide the billing fields at checkout in Easy Digital Downloads
Add the following code at the end of functions.php or in your functionality plugin:
To see this and another 1097 code snippets of this website, login or subscribe here.
Also, go to Downloads > Settings > Payment > Stripe > Billing Address Display and select “No address fields”.
Thanks to this snippet and the change in the settings you reduce the checkout to two fields:
- Personal information
- Credit card information
And thus you save (you and the customer) the 6 billing fields.
If you want to ask for this data later you can create a customer profile page with the shortcode [edd_profile_editor]
which adds the billing fields.
Note: please note that if you want to use the EDD rate calculation system you cannot use this strategy. And that you cannot have zip code verification enabled in Stripe.
Conclusions
Do you want to remove billing data from Easy Digital Downloads checkout? Now you know how to do it easily with code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂