A
A
Alexander2017-10-31 11:10:08
MODX
Alexander, 2017-10-31 11:10:08

Why are products not displayed after filtering through msearch2?

Hello.
I can not figure out the reasons for the incorrect operation of the product filter. After changing the price in the product filter, a request is sent via ajax, and in the response result="", although total gives the correct value. For example, "Total results: 3".
In the file to which the request is made, the result is obtained as follows:
$results = $modx->runSnippet($mSearch2->config['paginator'], $paginatorProperties);
Where
$mSearch2->config['paginator'] = 'pdoPage'
$paginatorProperties :

spoiler
Array
(
    [plPrefix] => 
    [limit] => 12
    [maxLimit] => 100
    [offset] => 
    [page] => 
    [pageVarKey] => page
    [totalVar] => page.total
    [pageLimit] => 7
    [element] => mSearch2
    [pageNavVar] => page.nav
    [pageCountVar] => pageCount
    [pageLinkScheme] => 
    [tplPage] => @INLINE <li><a href=""></a></li>
    [tplPageWrapper] => @INLINE <div class="pagination"><ul class="pagination"></ul></div>
    [tplPageActive] => @INLINE <li class="active"><a href=""></a></li>
    [tplPageFirst] => @INLINE <li class="control"><a href="">pdopage_first</a></li>
    [tplPageLast] => @INLINE <li class="control"><a href="">pdopage_last</a></li>
    [tplPagePrev] => @INLINE <li class="control"><a href="">&laquo;</a></li>
    [tplPageNext] => @INLINE <li class="control"><a href="">&raquo;</a></li>
    [tplPageSkip] => @INLINE <li class="disabled"><span>...</span></li>
    [tplPageFirstEmpty] => @INLINE <li class="disabled"><span>pdopage_first</span></li>
    [tplPageLastEmpty] => @INLINE <li class="disabled"><span>pdopage_last</span></li>
    [tplPagePrevEmpty] => @INLINE <li class="disabled"><span>&laquo;</span></li>
    [tplPageNextEmpty] => @INLINE <li class="disabled"><span>&raquo;</span></li>
    [cache] => 
    [cacheTime] => 0
    [cacheAnonymous] => 
    [toPlaceholder] => 
    [ajax] => 0
    [ajaxMode] => 
    [ajaxElemWrapper] => #pdopage
    [ajaxElemRows] => #pdopage .rows
    [ajaxElemPagination] => #pdopage .pagination
    [ajaxElemLink] => #pdopage .pagination a
    [ajaxElemMore] => #pdopage .btn-more
    [ajaxTplMore] => @INLINE <button class="btn btn-default btn-more">pdopage_more</button>
    [ajaxHistory] => 
    [frontend_js] => 
    [frontend_css] => 
    [setMeta] => 1
    [strictMode] => 0
    [paginator] => pdoPage
    [sort] => 
    [filters] => 
                            tv|price:number,
                            tv|params:default,
                        
    [aliases] => 
    [showEmptyFilters] => 1
    [resources] => 149,150,151
    [parents] => 0
    [depth] => 10
    [tplOuter] => tpl.mFilter2.outer
    [tplFilter.outer.default] => tpl.mFilter2.filter.outer
    [tplFilter.row.default] => tpl.mFilter2.filter.checkbox
    [showHidden] => 1
    [showDeleted] => 
    [showUnpublished] => 
    [hideContainers] => 
    [showLog] => 
    [fastMode] => 
    [suggestions] => 1
    [suggestionsMaxFilters] => 200
    [suggestionsMaxResults] => 1000
    [suggestionsRadio] => 
    [toPlaceholders] => 
    [toSeparatePlaceholders] => 
    [filter_delimeter] => |
    [method_delimeter] => :
    [values_delimeter] => ,
    [tpls] => 
    [forceSearch] => 
    [fields] => 
    [onlyIndex] => 
    [onlyAllWords] => 
    [showSearchLog] => 
    [filterOptions] => 
    [includeTVs] => img,gallery,price,oldprice
    [bsClass] => col-md-4 col-sm-6 col-xs-12
    [processTVs] => 1
    [tplFilter.outer.tv|price] => tpl.mFilter2.filter.slider
    [tplFilter.row.tv|price] => tpl.mFilter2.filter.number
    [defaultSort] => 
    [start_limit] => 12
    [sortby] => 
    [sortdir] => 
)

What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question