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

Naming inconsistencies postal/zip codes #343

Merged

Conversation

JanJanssensDigiti
Copy link
Contributor

@JanJanssensDigiti JanJanssensDigiti commented Jan 27, 2021

Hi!

While tinkering with the get receipt route I found some inconsistencies with the postal/zip code naming.
$this->postal was causing an undefined property error when calling '/receipt/{orderId}'. Changing postal to zipCode fixed it. Also checked if it was happening in other places and found the order blueprint also needed a change. I left the display name in the order blueprint unchanged because I think "Postal Code" is more recognizable for people who don't speak english. So if the dev left the Statamic cp unchanged the end-user is more likely to recognize it but that is just my opinion. Maybe I'm just thinking too much about edge-cases 😅

@duncanmcclean duncanmcclean merged commit 15f9d40 into duncanmcclean:master Jan 27, 2021
@duncanmcclean
Copy link
Owner

Merged! Thank for your pull request!

@duncanmcclean
Copy link
Owner

Released as part of v2.1.33

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

Successfully merging this pull request may close these issues.

2 participants