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');
?>
<?php
class CurrencyController extends hikashopController{
function __construct($config = array(),$skip=false){
parent::__construct($config,$skip);
$this->display[]='update';
if(!$skip){
$this->registerDefaultTask('update');
}
JRequest::setVar('tmpl','component');
}
function update(){
$currency=JRequest::getInt('hikashopcurrency',0);
if(!empty($currency)){
$app =& JFactory::getApplication();
$app->setUserState( HIKASHOP_COMPONENT.'.currency_id', $currency );
Thanks!