search view pager not displayed

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hello-

I've recently upgraded my site from 3.1 to 3.4, following the full upgrade path.
It seems like everything is perfect, except for one thing.

When I use the search page (advanced or not) the paging routine is never displayed at the bottom.
You can see it here:
http://thistleandclover.co/search?q=celtic

There would be several dozen products returned in the above search, but you only ever get to see 12.. because there is no pager at bottom.

I've checked the code in the search.cshtml and see nothing wrong with it.

I am using a 3rd party theme, but the code for the paging routine in it's search view is identical to the one in the nopcommerce 3.4 archive.

<div class="pager">
@Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber").BooleanParameterName("as").BooleanParameterName("isc").BooleanParameterName("sid")
</div>



When I view source of the loaded page in browser, it looks like this:

<div class="pager">
<ul><li class="current-page"><span>1</span></li><li class="individual-page"><a href="/search?q=celtic&amp;pagenumber=2">2</a></li><li class="individual-page"><a href="/search?q=celtic&amp;pagenumber=3">3</a></li><li class="next-page"><a href="/search?q=celtic&amp;pagenumber=2">Next</a></li></ul>
</div>



What else might cause it to never be displayed?

Thanks,
Steve
9 years ago
I found the problem..but not sure about the why...

My theme stylesheet (nop-templates responsive electronics) had the pager defined like this:

    .pager {
      display: none;

I didn't think it was a problem initially because pagers appears on all category and manufacturer results pages...but I guess it was only affecting the search view.

I changed it to:
    .pager {
      display: inline-block;

And the problem is solved.

Thanks,
Steve
9 years ago
Hello,

Thank you for reporting this issue. We have already located it and figured it out.
Your feedback is important to us.
6 years ago
Hi,

I'm using nopcommerce 3.8 and have problem with the pager in search view.
I cant switch between pages in search page, when I'm clicking on page 2 I'm still getting page 1.

Somebody know how can i sole it?

Thanks!
6 years ago
Can you please copy/paste the link to us that appears when you hover over page 2 button?
Maybe there is syntax error or maybe your category name has a strange character which causes the link to break??
6 years ago
The link of the button is: /filterSearch?adv=true&cid=0&q=rin&sid=true&isc=true&pagenumber=2

When i click on it i still see page 1

Thanks!
5 years ago
MoranBndd wrote:
The link of the button is: /filterSearch?adv=true&cid=0&q=rin&sid=true&isc=true&pagenumber=2

When i click on it i still see page 1

Thanks!


Were you able to find a solution for this? I have the same issue.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.