We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
We built a Shop with different languages. Next to the country code should be the Currency Symbol for the language.
Any way to bring this in with core features?
AT (€) US ($)
And Stuff like this.
The text was updated successfully, but these errors were encountered:
Something like this
Sorry, something went wrong.
Each locales doesn’t necessarily have a single currency, so we can’t do anything to make this easy for you.
That said you could write a macro that outputs it.
{% macro currencySymbol() %} {%- spaceless %} {% switch craft.app.language %} {% case 'en-us' %} $ {% default %} € {% endswitch %} {% endspaceless -%} {% endmacro %} {% from _self import currencySymbol %} {{ currencySymbol() }}
Oh yes, macro! Good solution I think that can work. Thanks!
No branches or pull requests
We built a Shop with different languages.
Next to the country code should be the Currency Symbol for the language.
Any way to bring this in with core features?
AT (€)
US ($)
And Stuff like this.
The text was updated successfully, but these errors were encountered: