-
Is your feature request related to a problem? Please describe.Not possible to Add Currency Field https://www.php.net/manual/en/numberformatter.formatcurrency.php Describe the solution you'd likeformatCurrency(1234567.891234567890000, "EUR")."\n"; ?>The above example will output: 1.234.567,89 € Additional contextSimple to add field but very useful for j4 |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 1 reply
-
It is more complex than that as the rules for the position of the currency symbol and the character used for the decimal and thousand separators are different in different countries and different languages. There is also no need for a new field as it is already possible to create a custom field with a prefix or suffix. |
Beta Was this translation helpful? Give feedback.
-
The code needed is indeed much more complex.
will display in French format a Canadian Dollar value. Therefore, one has to check the language in use and the currency chosen for the display, both being defined as variables. This needs some code and I am not sure what you mean by Could you explain further? |
Beta Was this translation helpful? Give feedback.
-
And the locale
Just use a number field and either the prefix or suffix param to display the currency symbol
I see no need for this |
Beta Was this translation helpful? Give feedback.
-
Where can we find prefix and suffix param in number field? |
Beta Was this translation helpful? Give feedback.
-
Lost in translation. I was thinking Custom Field plugin with specific code. One cannot use the default core Number field (which is not a plugin) with the necessary code for the formatting. The currency symbol is also added by the code above. Forget it. |
Beta Was this translation helpful? Give feedback.
-
This does not mean that we should create this plugin for core btw. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
prefix and suffix param in number field exists only in j4 but in j3 it doesn't exists, is it correct? |
Beta Was this translation helpful? Give feedback.
-
You can test yourself by installing Joomla 3 and Joomla 4. These learning Joomla questions should be better and only asked in Joomlas forum https://forum.joomla.org/ so create a user profile there and ask these questions similar like these there. If you didnt know Github is for core Joomla developers that focus on developing Joomla not learning how Joomla works or administration of Joomla as siteowen etc See all Joomla docs where you can learn a lot about how Joomla works. https://docs.joomla.org/Main_Page and there is a lot of tutorials & videos example https://www.youtube.com/channel/UCEmHl8-zBTXbTfqMGLVLYuw and if you want to customise Joomla yourself you can test also Joomla Component Builder JCB https://www.joomlacomponentbuilder.com/ with many learning videos https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE so there you have your solutions! |
Beta Was this translation helpful? Give feedback.
-
I tested and see no prefix and suffix param in number field in j3 thats why brian was asked to explain. @ssnoben if you is developer please tell where is this code ? In what file ? What line? @ssnobben please don't spam with old tutorial and not maintained doc links. |
Beta Was this translation helpful? Give feedback.
-
@chnnst we really looked long enough at your behaviour, I blocked you now. |
Beta Was this translation helpful? Give feedback.
You can test yourself by installing Joomla 3 and Joomla 4. These learning Joomla questions should be better and only asked in Joomlas forum https://forum.joomla.org/ so create a user profile there and ask these questions similar like these there.
If you didnt know Github is for core Joomla developers that focus on developing Joomla not learning how Joomla works or administration of Joomla as siteowen etc
See all Joomla docs where you can learn a lot about how Joomla works. https://docs.joomla.org/Main_Page and there is a lot of tutorials & videos example https://www.youtube.com/channel/…