VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ermes on February 13, 2015, 18:47:18 PM

Title: Bug pagination in virtuemart 3.0.4
Post by: ermes on February 13, 2015, 18:47:18 PM
Hi developers,
I want to report a bug into pagination system of virtuemart 3.0.4: it's impossible to return to first page into category layout after that you change page.

Below I list the steps I did to the test:
- Installation of Joomla 3.3 / VirtueMart 3.0.4 with AIO (with protostar template)
- Creation of a category (i called it "Shop")
- Creation 34 new products with only prices and added its to category "Shop"
- Add a new main menu item to category "Shop" (item type: "Category Layout")

It's all. Now if you try to navigate into this category, you can't return to page 1.
Can you tell me if you also encountered this problem?

Tnx a lot!

EDIT
with Search Engine Friendly URLs OFF, pagination works!

EDIT 2
i added following line to /components/com_virtuemart/views/category/view.html.php at line 123

if(!JRequest::getVar('limitstart', 0, '', 'int'))JRequest::setVar('limitstart',0);

before line 124

$ids = $productModel->sortSearchListQuery (TRUE, $this->categoryId);

And now works well!! :D
Title: Re: Bug pagination in virtuemart 3.0.4
Post by: Milbo on February 14, 2015, 01:29:39 AM
The reason is joomla 3.3 and often discussed already. You can use your "fix" but it disables the "remember last category" feature. We did not add a switch, because j3.4 has the fix already.