Change invoice address format based on the customer's billing country- ADDED #254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Address formats now adapt to the customer's billing country.
Currently, only a handful of countries have specific formats
invoicing/includes/wpinv-address-functions.php
Lines 1581 to 1620 in 403be3c
Other countries will use the default address format.
If you wish, you can use the following filter to specify a single address format that will be used on all invoices regardless of the customer's home country:-
invoicing/includes/wpinv-address-functions.php
Line 1651 in 403be3c
The address placeholders are replaced by the customer's user info. You can add more replacements using the following filter:-
invoicing/includes/wpinv-address-functions.php
Line 1701 in 403be3c
Available placeholders