Author Topic: How to reset pagination in Category view  (Read 822 times)

Genius WebDesign

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 175
    • Genius WebDesign
How to reset pagination in Category view
« on: October 05, 2017, 14:28:57 pm »
Hi,

As per normal behavior in Virtuemart the pagination in a category is stored in session, so that it remembers what page you´re on.

An example.:

1. I go to category page "Category 1" that has 3 pages of products.
2. I then go to page 2 in that category.
3. Then i go to a product page.
4. Then I go back to the category "Category 1", and now it remembers that I was on page 2, so it loads the category on page 2.

What I´m looking for is this:
1. I go to category page "Category 1" that has 3 pages of products.
2. I then go to page 2 in that category.
3. Then i go to a product page.
4. Then I go back to the category "Category 1", and now it shows the 1st page of the category.

So basically I´m looking for a way to disable the pagination session, so that VM does not remember the category page and always shows 1st page on any category unless the pagination is specifically set in the URL parameters.

Please advice.

FusionNetwork

  • Beginner
  • *
  • Posts: 18
    • FusionNetwork
  • VirtueMart Version: 3.6.2
Re: How to reset pagination in Category view
« Reply #1 on: October 23, 2019, 13:57:56 pm »
Hi Genius WebDesign,

Did you manage to solve the pagination problem?

I am trying to solve the issue because I use Litespeed cache plugin and caches the wrong pages.

Thanks
Regards
Cosmin