Jump to content

IED Factory

Members
  • Posts

    286
  • Joined

  • Last visited

  • Days Won

    3

IED Factory last won the day on November 22 2020

IED Factory had the most liked content!

About IED Factory

  • Birthday 04/16/1964

Contact Methods

Profile Information

  • Location
    Bayonne, France
  • Activity
    Freelancer

Recent Profile Visitors

8,587,099 profile views

IED Factory's Achievements

Newbie

Newbie (1/14)

17

Reputation

11

Community Answers

  1. Bonjour votre version de PS ? Modules utilisé ? Gestion des RS ? avec theme ou par extensions ? Si vous ne contextualisez pas votre demande, c'est difficile...
  2. Merci à vous de votre merci ! C’est le principe du forum, si on a, on partage...
  3. Bonjour, avez-vous essayé une mise à jour via FTP plutôt ? 1- Sauvegarder votre ancien module avant mise à jour ! 2- Mettre à jour par FTP, car la mise à jour par BO corrompt les fichiers ! 3- ATTENTION à Filezilla et à sa configuration des transferts binaires (cocher Binaire + sans extension + avec .) : cela vous évitera le traditionnel message...
  4. La solution icic : https://www.prestashop.com/forums/topic/154890-recherche-dans-prestashop/?p=2616096
  5. Solution pour PS 1.6.1 dans le dossier override/classes créer un fichier Search.php avec ce code : <?php class Search extends SearchCore { public static function sanitize($string, $id_lang, $indexation = false, $iso_code = false) { $string = trim($string); if (empty($string)) { return ''; } $string = Tools::strtolower(strip_tags($string)); $string = html_entity_decode($string, ENT_NOQUOTES, 'utf-8'); $string = preg_replace('/(['.PREG_CLASS_NUMBERS.']+)['.PREG_CLASS_PUNCTUATION.']+(?=['.PREG_CLASS_NUMBERS.'])/u', '\1', $string); $string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string); if ($indexation) { //$string = preg_replace('/[._-]+/', ' ', $string); $string = preg_replace('/[._]+/', ' ', $string); } else { $words = explode(' ', $string); $processed_words = array(); // search for aliases for each word of the query foreach ($words as $word) { $alias = new Alias(null, $word); if (Validate::isLoadedObject($alias)) { $processed_words[] = $alias->search; } else { $processed_words[] = $word; } } $string = implode(' ', $processed_words); $string = preg_replace('/[._]+/', '', $string); //$string = ltrim(preg_replace('/([^ ])-/', '$1 ', ' '.$string)); $string = preg_replace('/[._]+/', '', $string); //$string = preg_replace('/[^\s]-+/', '', $string); } $blacklist = Tools::strtolower(Configuration::get('PS_SEARCH_BLACKLIST', $id_lang)); if (!empty($blacklist)) { $string = preg_replace('/(?<=\s)('.$blacklist.')(?=\s)/Su', '', $string); $string = preg_replace('/^('.$blacklist.')(?=\s)/Su', '', $string); $string = preg_replace('/(?<=\s)('.$blacklist.')$/Su', '', $string); $string = preg_replace('/^('.$blacklist.')$/Su', '', $string); } // If the language is constituted with symbol and there is no "words", then split every chars if (in_array($iso_code, array('zh', 'tw', 'ja')) && function_exists('mb_strlen')) { // Cut symbols from letters $symbols = ''; $letters = ''; foreach (explode(' ', $string) as $mb_word) { if (strlen(Tools::replaceAccentedChars($mb_word)) == mb_strlen(Tools::replaceAccentedChars($mb_word))) { $letters .= $mb_word.' '; } else { $symbols .= $mb_word.' '; } } if (preg_match_all('/./u', $symbols, $matches)) { $symbols = implode(' ', $matches[0]); } $string = $letters.$symbols; } elseif ($indexation) { $minWordLen = (int)Configuration::get('PS_SEARCH_MINWORDLEN'); if ($minWordLen > 1) { $minWordLen -= 1; $string = preg_replace('/(?<=\s)[^\s]{1,'.$minWordLen.'}(?=\s)/Su', ' ', $string); $string = preg_replace('/^[^\s]{1,'.$minWordLen.'}(?=\s)/Su', '', $string); $string = preg_replace('/(?<=\s)[^\s]{1,'.$minWordLen.'}$/Su', '', $string); $string = preg_replace('/^[^\s]{1,'.$minWordLen.'}$/Su', '', $string); } } $string = Tools::replaceAccentedChars(trim(preg_replace('/\s+/', ' ', $string))); return $string; } }
  6. Bonjour, vos modif fonctionnent avec un 1.6.1 ?
  7. Réponse le fichier a modifié se trouve : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Modifier les deux valeurs 6 000 ligne 161 et 165 à la valeur désirée.
  8. Réponse le fichier a modifié se trouve : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Modifier les deux valeurs 6 000 ligne 161 et 165 à la valeur désirée.
  9. Merci de votre retour. J'avais trouvé entre temps ! Merci encore !
  10. Réponse le fichier a modifié se trouve : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Modifier les deux valeurs 6 000 ligne 161 et 165 à la valeur désirée.
  11. Réponse le fichier a modifié se trouve : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Modifier les deux valeurs 6 000 ligne 161 et 165 à la valeur désirée.
  12. Réponse le fichier a modifié se trouve : src/PrestaShopBundle/Form/Admin/Product/ProductInformation.php Modifier les deux valeurs 6 000 ligne 161 et 165 à la valeur désirée.
×
×
  • Create New...