Jump to content

Ajout Produit impossible / Add product impossible


Recommended Posts

Bonjour,

 

Lorsque je souhaite "Ajouter un produit" , l'éditeur de texte n'apparait plus ni les onglets,

 

j'ai cette erreur là :

 

Call to undefined method Category::getCategoryInformations() in

/tabs/AdminProducts.php

on line

2757

 

Savez-vous d'ou cela peut venir?

 

 

-------------------------------------------------------------------------------------------------------------------------------------------------

 

Hi,

 

When i want to "add a product", the text editor doesn't appear,

 

i have this error :

 

Call to undefined method Category::getCategoryInformations() in

/tabs/AdminProducts.php

on line

2757

 

Can i have any help?

 

Thank you

Link to comment
Share on other sites

tout à la fin du fichier ligne 1053 pour la version 1.4.7 :

/**
 *
 * @param Array $ids_category
 * @param int $id_lang
 * @return Array
 */
public static function getCategoryInformations($ids_category, $id_lang = null)
{
 if ($id_lang === null)
 {
  global $cookie;
  $id_lang = $cookie->id_lang;
 }
 if (!is_array($ids_category) || !sizeof($ids_category))
  return;
 $categories = array();
 $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
  SELECT c.`id_category`, cl.`name`, cl.`link_rewrite`, cl.`id_lang`
  FROM `'._DB_PREFIX_.'category` c
  LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category`)
  WHERE cl.`id_lang` = '.(int)$id_lang.'
  AND c.`id_category` IN ('.implode(',', array_map('intval', $ids_category)).')
 ');
 foreach($results as $category)
  $categories[$category['id_category']] = $category;
 return $categories;
}

 

Retransfert le fichier complet via FTP

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...