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

#   Changing the display on mod\_currency\_switch

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 8 months ago [\#289004](#289004) by [luciolis](/forum/user/56322-luciolis "View luciolis's Profile")  *[Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289004 "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")* was created by *[luciolis](/forum/user/56322-luciolis "View luciolis's Profile")*

-- url of the page with the problem -- : [ www.dkloc.ch/](https://www.dkloc.ch/)
-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.2.1

Hello,

Does anybody know how to change the display for mod_currency_switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.

Thanks
Adrian

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289009](#289009) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289009 "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")*

Hello,

The variable $currency is the HikaShop currency type.
If you want to change the display, best would be to edit the values ( $currency-&gt;values ) or to have your own display for the dropdown (with the help of the code in the HikaShop currency type).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 8 months ago [\#289055](#289055) by [luciolis](/forum/user/56322-luciolis "View luciolis's Profile")  Replied by *[luciolis](/forum/user/56322-luciolis "View luciolis's Profile")* on topic *[Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289055 "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")*

Hello,

Apparently the display is a loop that goes on every key-value pair on the currency. Is that true ?

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

8 years 8 months ago [\#289075](#289075) by [luciolis](/forum/user/56322-luciolis "View luciolis's Profile")  Replied by *[luciolis](/forum/user/56322-luciolis "View luciolis's Profile")* on topic *[Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289075 "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")*

Yay !

The code to modify is in administrator/components/com_hikashop/types

in load(), I changed the last line to Code:

$this-&gt;values[] = JHTML::_('select.option', (int)$currency-&gt;currency_id, $currency-&gt;currency_symbol);

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

8 years 8 months ago [\#289056](#289056) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Changing the display on mod\_currency\_switch](/forum/31-development/893995-changing-the-display-on-mod-currency-switch#289056 "-- url of the page with the problem -- :   www.dkloc.ch/  -- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.2.1  Hello,  Does anybody know how to change the display for mod&#95;currency&#95;switch ? I would like to only display the symbol and not the currency name. I have search for a few hours and found a $currency-&gt;display() method, but the arguments were only the IDs and nothing else.  Thanks Adrian")*

Hi,

As Jerome said, you could change the line: Code:

$this-&gt;values[] = JHTML::_('select.option', (int)$currency-&gt;currency_id, $currency-&gt;currency_symbol.' '.$currency-&gt;currency_code);

in the file administrator/components/com_hikashop/types/currency.php and remove .' '.$currency-&gt;currency_code to not have the code, only the symbol.
However, it would be better to do an override of the module via the template manager, and copy/paste the code of the type and modify it there.
That way, you wouldn't loose your changes after each update of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5Mzk5NS1jaGFuZ2luZy10aGUtZGlzcGxheS1vbi1tb2QtY3VycmVuY3ktc3dpdGNoP3RtcGw9bWFya2Rvd24=) 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.059 seconds

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