You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@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: