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

[Bug]: The address format shown across TastyIgniter doesn't reflect the address format which I have set in Localization -> Country -> Format #942

Closed
phurich opened this issue Feb 25, 2022 · 2 comments

Comments

@phurich
Copy link

phurich commented Feb 25, 2022

What happened?

Create a customer user in a country A.
Create a restaurant location in a country A.
Change the address format in a country A by going to admin page ( Localization -> Country -> Format )

We can see the address format doesn't reflect what we have changed all across the site ( e.g. address book page)

What did you expect to happen?

The address format reflects the format we have set in Localization -> Country -> Format

Version

3.2.x

What browser are you seeing the problem on?

Chrome, Microsoft Edge

Relevant log output

a little thing I can do for TastyIgniter 🍻
@phurich
Copy link
Author

phurich commented Feb 25, 2022

Two problems in the addressFormat function.

first, $address['format'] is always null even though I have set the format in Localization -> Country -> Format
second, probably using strtr function is better.

addressFormat

@sampoyigi
Copy link
Member

Fixed 0576d56

sampoyigi added a commit that referenced this issue Mar 1, 2022
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
sampoyigi added a commit to tastyigniter/ti-module-system that referenced this issue Mar 5, 2022
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
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

2 participants