VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: dineshprima on November 18, 2013, 12:48:21 PM

Title: Virtuemart Pagination Issue
Post by: dineshprima on November 18, 2013, 12:48:21 PM
Hi ,

I upgraded my virtuemart component to 2.0.24a , I am getting pagination issues. When i clicked on second page of category view. It is still in first page it self. Also the dropdown not working ... when i selected 15 in dropdown value of pagination, then the page is redirecting and shows an message like "No result : (keyword)".

When we turn off joomla SEF , The pagination works fine.

SEF -- /index.php/cakes/view/category/virtuemart_category_id/23/filter_product/keyword/limit/10   
NON-SEF -- /index.php?option=com_virtuemart&view=category&virtuemart_category_id=23&Itemid=447&lang=en&language=en-GB&filter_product=&keyword=&limit=10 

Joomla Ver : 2.5.16
PHP Ver: 5.3.23
MySql Ver: 5.5.32

Can any one suggest me a solution to this?

Thanks
Dinesh
Title: Re: Virtuemart Pagination Issue
Post by: incolor on November 26, 2013, 09:30:57 AM
I'm having similar problems. On some pages, no matter what page number I click, it stays on the first page, even though it changes the URL.
For instance,
page 3 creates the following URL: .../results,25-36
and it shows the same results as page 1: (root)

Likewise, a different category's root page shows the same results as clicking on its second page (?start=12)

It appears that the URL rewriting is different when I get to the category from the Joomla menu, vs the categories module vs the VM home page. I can see that there are other threads that talk about this (Limitstart is lost with SEF enabled causing pagination and cache problems http://forum.virtuemart.net/index.php?topic=112075.0 (http://forum.virtuemart.net/index.php?topic=112075.0)), but the difference is that no matter what method I enter from, the pagination is not working when Joomla's SEF URLs with Rewriting is active.

J.2.5.14
VM2.0.24c
MySQL 5.5.34
PHP 5.3.10
Title: Re: Virtuemart Pagination Issue
Post by: Milbo on November 26, 2013, 14:06:52 PM
Maybe that helps http://forum.virtuemart.net/index.php?topic=120459.msg411010#msg411010
Title: Re: Virtuemart Pagination Issue
Post by: incolor on November 27, 2013, 20:27:40 PM
Hi Milbo,

I replaced the /administrator/components/com_virtuemart/models/product.php on my site, and it does not solve the problem. Interestingly enough, the page 2 and page 3 buttons only change the URL without changing the products shown, but the page 4 button does change the products shown.

Page 1, 2 and 3 buttons change the url "start" value, but the "Results" part of the page also does not change until I get to page 4. This was consistent the first three times I paged through but hitting those page number buttons.

Now, however, no matter which page button I click, nothing changes, including the URL. Interestingly, the previous and next buttons almost always work correctly, but not always. In some cases, I must click the next button twice for it to increment the page number correctly.

Test here: http://www.gregyoungpublishing.com/store/by-artist/scott-westmoreland

Please let me know if there's anything else you want me to try.

J.2.5.14
VM2.0.24c - updated product.php
MySQL 5.5.34
PHP 5.3.10