[Skip to main content](#vessel-content)

#   question about currency.php format function

##

- **[Winterviking](/forum/user/32714-winterviking "View Winterviking's Profile")**
- [![Winterviking's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32714-winterviking "View Winterviking's Profile") Topic Author
- [ Offline](/forum/user/32714-winterviking)

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 4 months ago -  12 years 4 months ago [\#161761](#161761) by [Winterviking](/forum/user/32714-winterviking "View Winterviking's Profile")  *[question about currency.php format function](/forum/31-development/869262-question-about-currency-php-format-function#161761 "there is possibility to make complex overrides to currency displaying format Can you explain syntax of a string which i should put into $format&#95;override ))  Subj: function format($number,$currency&#95;id=0,$format&#95;override='')  More Deeply: It shows Code instead of a Symbol after format function I want to change it so it will show '50 руб' instead of '50 RUB'. ThX in advance.")* was created by *[Winterviking](/forum/user/32714-winterviking "View Winterviking's Profile")*

there is possibility to make complex overrides to currency displaying format
Can you explain syntax of a string which i should put into $format_override ))

Subj:
function format($number,$currency_id=0,$format_override='')

More Deeply:
It shows Code instead of a Symbol after format function
I want to change it so it will show '50 руб' instead of '50 RUB'.
ThX in advance.

Last edit: 12 years 4 months ago by [Winterviking](/forum/user/32714-winterviking "View Winterviking's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2OTI2Mi1xdWVzdGlvbi1hYm91dC1jdXJyZW5jeS1waHAtZm9ybWF0LWZ1bmN0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 4 months ago [\#161776](#161776) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[question about currency.php format function](/forum/31-development/869262-question-about-currency-php-format-function#161776 "there is possibility to make complex overrides to currency displaying format Can you explain syntax of a string which i should put into $format&#95;override ))  Subj: function format($number,$currency&#95;id=0,$format&#95;override='')  More Deeply: It shows Code instead of a Symbol after format function I want to change it so it will show '50 руб' instead of '50 RUB'. ThX in advance.")*

Hi,

In the integrated documentation you can find the different format types.

> Format : The way you want to display the symbol (basically you will have %i which will display the currency code next to the price, %n which will display the currency symbol next to it, and %ni which will display both). For more information, you can look at [ www.php.net/manual/en/function.money-format.php](http://www.php.net/manual/en/function.money-format.php)

So to use the symbol instead of the code, you have to set the format %n in the settings of your currency via the menu System &gt; Currencies.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2OTI2Mi1xdWVzdGlvbi1hYm91dC1jdXJyZW5jeS1waHAtZm9ybWF0LWZ1bmN0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.127 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
