Модуль Amazzing filter

Подскажите, у кого не работает статистика поисковых слов в админке (модуль statssearch) при включенном Amazzing filter?

Почему-то авторы модуля, переопределив стандартый класс SearchProductSearchProvider, забыли запустить хук actionSearch, по которому работает модуль statssearch.
Год назад я писал им об ошибке в модуле, но мне отбрехались, что у них все норм.

Решение проблемы:

файл AmazzingFilterProductSearchProvider.php

Код:
    public function runQuery(
        ProductSearchContext $context,
        ProductSearchQuery $query
    ) {
        $products = $this->context->filtered_result['products'];
        $total = $this->context->filtered_result['total'];
        $sorting_options = $this->getAvailableSortOrders();
        $result = new ProductSearchResult();
        $result->setProducts($products)->setTotalProductsCount($total)->setAvailableSortOrders($sorting_options);
        if (!empty($this->context->forced_sorting)) {
            $so = new SortOrder('product', $this->context->forced_sorting['by'], $this->context->forced_sorting['way']);
            $query->setSortOrder($so);
        }
        if (!empty($this->context->forced_nb_items)) {
            $query->setResultsPerPage($this->context->forced_nb_items);
        }
        // $query
        //     ->setQueryType('products')
        //     ->setSortOrder(new SortOrder('product', 'date_add', 'desc'))
        // ;
          if ($string = $query->getSearchString()) {
               $queryString = Tools::replaceAccentedChars(urldecode($string));
                Hook::exec('actionSearch', [
                'searched_query' => $queryString,
                'total' => $total,
                // deprecated since 1.7.x
                'expr' => $queryString,
            ]);
        }
      
      
        return $result;
    }
проверьте на новой версии
 
Более новой версии не было?
Актуальная v3.2.4 ?
 

Amazzing filter 3.2.7​

Version 3.2.7 - 2/1/2024
PrestaShop compatibility: 1.6.0.4 - 8.1.4
  • [+] Possibility to merge attributes/features from different groups
  • Minor bug fixes and optimizations
Version 3.2.6 - 12/5/2023
PrestaShop compatibility: 1.6.0.4 - 8.1.4
  • [+] Button for resetting predefined customer filters
  • Security improvements
  • Minor bug fixes and optimizations
Version 3.2.5 - 8/19/2023
PrestaShop compatibility: 1.6.0.4 - 8.1.4
  • Significantly improved customer filters: new interface, new options, etc.
  • Fixed incorrect numbers of matches in some complex multishop scenarios
  • Improved compatibility with Alysum theme
  • Minor bug fixes and optimizations
Скрытое содержимое. Вам нужно войти или зарегистрироваться.
 
Назад
Верх