Well, this is what I'm able to do. I copy paste hikashop.php code and highlight where enters the program:
$fp = fopen('log-hikashop.txt', 'w');
fwrite ($fp, "enter hikashop \n");
jimport('joomla.application.component.controller');
jimport( 'joomla.application.component.view');
JRequest::setVar('hikashop_front_end_main',1);
include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php');
global $Itemid;
if(empty($Itemid)){
$urlItemid = JRequest::getInt('Itemid');
if($urlItemid){
$Itemid = $urlItemid;
}
}
$view = JRequest::getCmd('view');
if(!empty($view) && !JRequest::getCmd('ctrl')){
JRequest::setVar('ctrl',$view);
$layout = JRequest::getCmd('layout');
if(!empty($layout)){
JRequest::setVar('task',$layout);
}
fwrite ($fp, "dentro de ctrl \n");
}
$session =& JFactory::getSession();
if(is_null($session->get('registry'))){
jimport('joomla.registry.registry');
$session->set('registry', new JRegistry('session'));
fwrite ($fp, "dentro de registry \n");
}
$taskGroup = JRequest::getCmd('ctrl','category');
if(!include(HIKASHOP_CONTROLLER.$taskGroup.'.php')){
return JError::raiseError( 404, 'Page not found : '.$taskGroup );
fwrite ($fp, "dentro de ctrl y category \n");
}
if($taskGroup!='checkout'){
$app =& JFactory::getApplication();
$app->setUserState('com_hikashop.ssl_redirect',0);
fwrite ($fp, "dentro de checkout \n");
}
$className = ucfirst($taskGroup).'Controller';
$classGroup = new $className();
JRequest::setVar( 'view', $classGroup->getName() );
$classGroup->execute( JRequest::getCmd('task'));
$classGroup->redirect();
if(JRequest::getString('tmpl') !== 'component'){
echo hikashop::footer();
}
JRequest::setVar('hikashop_front_end_main',0);