Author Topic: VM search pagination problem  (Read 680 times)

Tiger78

  • Beginner
  • *
  • Posts: 18
VM search pagination problem
« on: December 20, 2017, 20:04:15 pm »
Hello,

I am having problems with the pagination from VM Search in shop module.

Joomla SEO is enabled.
VM SEO is disabled.
Virtuemart 3.2.10  / Joomla 3.8.3

Browsing categories there are no issues, but searching and going to next pages and back to page 1 causes a blank page 1 (but not 500-Error)


These are links to a search. It display correctly:

Page 1:
http://www.example1.com/component/virtuemart/view/category/search/true/limitstart/0/virtuemart_category_id/0.html?keyword=book&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

Page 2: http://www.example1.com/component/virtuemart/keyword/book/view/category/virtuemart_category_id/0/search/true/start/20.html

Page 3: http://www.example1.com/component/virtuemart/keyword/book/view/category/virtuemart_category_id/0/search/true/start/40.html

Back to page 1 is not available: http://www.example1.com/component/virtuemart/keyword/book/view/category/virtuemart_category_id/0/search/true/start/20/limitstart/0.html


If I enable VM SEO:

Page 1:
http://www.example2.com/component/virtuemart/?keyword=book&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

Page 2:
http://www.example2.com/component/virtuemart/results,21-40.html?keyword=book&Itemid=0

Page 3:
http://www.example2.com/component/virtuemart/results,41-60.html?keyword=book

Back to page 1 (blank page, but not 500):
http://www.example2.com/component/virtuemart/keyword/book/view/category/virtuemart_category_id/0/search/true/start/20/limitstart/0.html


The problem seems to be when going back to page 1. Is this a bug?

Many Greetings!



Tiger78

  • Beginner
  • *
  • Posts: 18
Re: VM search pagination problem
« Reply #1 on: December 28, 2017, 11:34:23 am »
Update:

I have created a new menu item (virtuemart category layout) named "searchresult" without category.
Now the search results are displayed correctly.

But going back to page 1 is not correct. You have to click the button ("1" or "I<<") twice.

first click on "1":     http://www.example.com/searchresult.html?keyword=book   (current page remains displayed, e.g. page 2)
second click on "1": http://www.example.com/searchresult.html?keyword=book&limitstart=0 (page 1 is displayed correctly)

How can I solve the Problem?

Many Greetings!