VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wonderland on January 15, 2013, 11:45:32 AM

Title: Problems with pagination being reset to page 1
Post by: wonderland on January 15, 2013, 11:45:32 AM
Hello!

I'm experiencing some problems with pagination being reset to page 1.

For example I visit this link (Page 2) - http://bit.ly/RWpRHg (http://bit.ly/RWpRHg)

Then I go here - http://bit.ly/WHBwX3 (http://bit.ly/WHBwX3) and press on first category

I get redirected to page 2 of this category, instead of page 1.

If I could just find a way to add "?limitstart=0" at the url when pressing on first category this could be solved, unfortunately since I use Joomla menu system I can't add this :(  Is there any other way ?

I also found this topic on forum http://forum.virtuemart.net/index.php?topic=98876.msg331353#msg331353 (http://forum.virtuemart.net/index.php?topic=98876.msg331353#msg331353) is this a valid solution ? In this topic I couldn't find which file to edit, to try this.

I'm using J2.5.8 VM 2.0.14 and PHP 5.2.17
Title: Re: Problems with pagination being reset to page 1
Post by: jenkinhill on January 15, 2013, 13:10:59 PM
ISTR a change was made to pagination control in the 2.0.16 versions - we are now at 2.0.18a (which is a security release)  I don't know if your issue is fixed, though.
Title: Re: Problems with pagination being reset to page 1
Post by: wonderland on January 15, 2013, 13:53:01 PM
Which files were changed regarding pagination ?

I wouldn't yet want to upgrade, since I have template overrides.
Title: Re: Problems with pagination being reset to page 1
Post by: jenkinhill on January 15, 2013, 15:29:41 PM
I don't have a list of files changed, but about 50 bugs were fixed and improvments made. Should not be a problem with overrides - see the live update info:  http://virtuemart.net/index.php?option=com_content&id=416

In any case test updates always on a backup copy of your site first.
Title: Re: Problems with pagination being reset to page 1
Post by: wonderland on January 17, 2013, 22:27:16 PM
I updated site, as you suggested.

But unfortunately I'm still experiencing problems with this.

Probably the worst fix in history of fixes, but I added <?php echo "?limitstart=0"?> after <?php echo $caturl ?>, now page gets reset back to page 1

Unfortunately I don't know how to do this with mod_menu, since I'm using it for secondary navigation :(

Used some javascript, to solve this problem.