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

#   Currency Converter

##

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

Less More

- Posts: 392
- Thank you received: 0
-
-

15 years 3 months ago [\#23335](#23335) by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")  *[Currency Converter](/forum/3-bug-report/23335-currency-converter#23335 "Hello!  Loving the new stuff :)  I don't know if this is a bug or not, but when I went to test the currency switcher, I got this message:  Fatal error: Call to undefined method CurrencyController::isIn() in /home/&#42;/public&#95;html/components/com&#95;hikashop/router.php on line 108  Not a big deal, as you are probably busy (have disabled it) helping others with other important things, just thought I would let you know :)  :)")* was created by *[Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")*

Hello!

Loving the new stuff ![:)](/media/kunena/emoticons/3.png ":)")

I don't know if this is a bug or not, but when I went to test the currency switcher, I got this message:

Fatal error: Call to undefined method CurrencyController::isIn() in /home/*/public_html/components/com_hikashop/router.php on line 108

Not a big deal, as you are probably busy (have disabled it) helping others with other important things, just thought I would let you know ![:)](/media/kunena/emoticons/3.png ":)")

![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yMzMzNS1jdXJyZW5jeS1jb252ZXJ0ZXI/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 3 months ago [\#23375](#23375) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Currency Converter](/forum/3-bug-report/23335-currency-converter#23375 "Hello!  Loving the new stuff :)  I don't know if this is a bug or not, but when I went to test the currency switcher, I got this message:  Fatal error: Call to undefined method CurrencyController::isIn() in /home/&#42;/public&#95;html/components/com&#95;hikashop/router.php on line 108  Not a big deal, as you are probably busy (have disabled it) helping others with other important things, just thought I would let you know :)  :)")*

Hi,

Thank you for the report. Changing the code:
class CurrencyController extends JController{

to:
class CurrencyController extends hikashopController{

in the file components/com_hikashop/controllers/currency.php should solve the problem.

You might however also have to add the code:
$this-&gt;display[]='update';

after the code:
parent::__construct($config,$skip);

in that same file.

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

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

Less More

- Posts: 392
- Thank you received: 0
-
-

15 years 2 months ago -  15 years 2 months ago [\#25180](#25180) by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")  Replied by *[Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")* on topic *[Re: Currency Converter](/forum/3-bug-report/23335-currency-converter#25180 "Hello!  Loving the new stuff :)  I don't know if this is a bug or not, but when I went to test the currency switcher, I got this message:  Fatal error: Call to undefined method CurrencyController::isIn() in /home/&#42;/public&#95;html/components/com&#95;hikashop/router.php on line 108  Not a big deal, as you are probably busy (have disabled it) helping others with other important things, just thought I would let you know :)  :)")*

Hello,

It works now as far as no errors showing, but the conversion is not working. The prices are showing as the same.

This is what I have changed it to:

*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;?php
class CurrencyController extends hikashopController{
function __construct($config = array(),$skip=false){
parent::__construct($config,$skip);
$this-&gt;display[]='update';
if(!$skip){
$this-&gt;registerDefaultTask('update');
}
JRequest::setVar('tmpl','component');
}
function update(){
$currency=JRequest::getInt('hikashopcurrency',0);
if(!empty($currency)){
$app =&amp; JFactory::getApplication();
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.currency_id', $currency );

Thanks! ![:)](/media/kunena/emoticons/3.png ":)")

Last edit: 15 years 2 months ago by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile").

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

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

Less More

- Posts: 392
- Thank you received: 0
-
-

15 years 2 months ago -  15 years 2 months ago [\#25181](#25181) by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")  Replied by *[Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile")* on topic *[Re: Currency Converter](/forum/3-bug-report/23335-currency-converter#25181 "Hello!  Loving the new stuff :)  I don't know if this is a bug or not, but when I went to test the currency switcher, I got this message:  Fatal error: Call to undefined method CurrencyController::isIn() in /home/&#42;/public&#95;html/components/com&#95;hikashop/router.php on line 108  Not a big deal, as you are probably busy (have disabled it) helping others with other important things, just thought I would let you know :)  :)")*

Nuts! Now the prices wont go away when I change the original php file back, and disable the plugin. It is showing pounds instaed of AUD :S

Never mind, I changed it back, weird though that it didnt change by renaming the file in cpanel, had to download it and upload again. My ignorance probably!

Last edit: 15 years 2 months ago by [Bugger101](/forum/user/631-bugger101 "View Bugger101's Profile").

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

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