Quelle version de Presta ?
Je ne sais pas si cette fonction existe encore dans les dernières versions
public static function getFormatedName($name) { $theme_name = Context::getContext()->shop->theme_name; $name_without_theme_name = str_replace(array('_'.$theme_name, $theme_name.'_'), '', $name); //check if the theme name is already in $name if yes only return $name if (!empty($theme_name) && strstr($name, $theme_name) && self::getByNameNType($name)) { return $name; } elseif (self::getByNameNType($name_without_theme_name.'_'.$theme_name)) { return $name_without_theme_name.'_'.$theme_name; } elseif (self::getByNameNType($theme_name.'_'.$name_without_theme_name)) { return $theme_name.'_'.$name_without_theme_name; } else { return $name_without_theme_name.'_default'; } }