-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function to get the customer address in checkout #9622
Comments
@webzunft I currently use this to put address fields in the checkout and have done for many years. Not sure if there is a better way to do it but this works fine. Will display for users who are registered and those who need to.
|
@slr1979 Thanks for sharing your solution. I don’t want to display the address visually in the checkout, but use it with some custom code in there. I just thought, that the logic that EDD uses here would do great in a new function so that every developer can use it without repeating the same code. |
There is a lot of logic to get the customer address in
easy-digital-downloads/includes/checkout/template.php
Lines 313 to 359 in 2edf84d
I would like to have these moved into a function in
/includes/checkout/functions.php
so that we can get the customer address in the checkout in our custom code without copying this logic from the template.The text was updated successfully, but these errors were encountered: