Skip to content
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

Adjust title of "Shipping Address" to "Mailing Address" #47

Open
andrewlimaza opened this issue Jun 29, 2022 · 0 comments
Open

Adjust title of "Shipping Address" to "Mailing Address" #47

andrewlimaza opened this issue Jun 29, 2022 · 0 comments

Comments

@andrewlimaza
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
The term "Shipping Address" may be confusing to customer's as to what it means. An updated name for this would be "Mailing Address" and we should cater for this terminology by default.

Describe the solution you'd like
Add in an option (textfield) to allow site owner's to easily change or set the title of the fields to anything they would like and give them the flexibility. This would probably be best to be included in the Advanced Settings area of PMPro.

Summary: A function that pulls in the option value from the database or default value if that option is empty, a filter before returning the value and a setting in the Advanced Settings to tie it all together. Use this method wherever we set the fields title.

Describe alternatives you've considered
A temporary solution is to use the gettext filter to replace the wording now. Updating it to use the above solution will make it slightly more difficult to translate - the idea would be to remove the label option completely to set the default label and let plugins translate this string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant