Jump to content

Fatal error: Uncaught Error: Call to undefined method Product::getetc...


PF22

Recommended Posts

Hi there

 

I try to used to an old customized module in my Prestashop that runs with php 7.0. I got an error and no idea...

Fatal error: Uncaught Error: Call to undefined method Product::getFrontFeaturesHiddenByNameStatic() 

And here is the line of code.

$feature = Product::getFrontFeaturesHiddenByNameStatic((int)($params['cookie']->id_lang), $product['id_product'],'_Descriptif accueil');

And that function is defined in "override" folder.

public static function getFrontFeaturesHiddenByNameStatic($id_lang, $id_product, $featureName) {
    self::getFrontFeaturesStatic($id_lang, $id_product);
    if( isset(self::$_frontFeaturesCacheHidden[$id_product.'-'.$id_lang]) )
    foreach(self::$_frontFeaturesCacheHidden[$id_product.'-'.$id_lang] as $feature) {
        if( $featureName == $feature["name"] )
            return $feature;
    }
    return null; // nothing has been found
}

Thanks in advance !

Edited by Pat_07 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...