I am using Hikashop class overrides elsewhere and the idea occurred to me that the same technique could be used with the config class like this...
class hikashopConfigClassOverride extends hikashopConfigClass{
function load(){
parent::load();
if (mycataloguecondition()) {
$this->values['catalogue']->config_value = 1;
}
}
However, turns out the current structure of helpers/helper.php appears to prevent the config class override working as intended without having to customise Hikashop core code.
Something like this would be a step in the right direction (not tested to see if it fully resolves issue)...
if (!function_exists('hikashop_config')) {
function &hikashop_config($reload = false){
... as existing ...
}
}
Might be useful to apply same check to all the functions in helper.php