Thank you, I will override the class function getCategories.
There is sotmething wrong in my code when I extend hikashopFilterTypeClass, the extended functon is never call.
My /templates/mytemplate/html/com_hikashop/administrator/classes/filter.override.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
defined('_JEXEC') or die('Restricted access');
include_once $originalFile;
class hikashopFilterTypeClassOverride extends hikashopFilterTypeClass{
function getCategories($filter, $datas=''){
echo 'getCategories';die();[color=red] //nothing happened[/color]
}
}
class hikashopSingledropdownClassOverride extends hikashopSingledropdownClass{
function display($filter, $divName, &$parent, $datas='', $multiple='', $tab=''){
echo 'display'; die();[color=red] //nothing happened[/color]
}
}
class hikashopFilterClassOverride extends hikashopFilterClass{
[color=red] //if I delete this, i got a error:
//Fatal error: Call to a member function getFilters() on a non-object in /path_to_my_website/components/com_hikashop/views/product/view.html.php on line 129[/color]
}
?>
Can you help me please, after I can call my extended function, that's will be ok