News:

Looking for documentation? Take a look on our wiki

Main Menu

VM - the age-old pagination and sorting problem

Started by hazael, May 19, 2022, 10:24:31 AM

Previous topic - Next topic

hazael

Does every version of Virtuemart have to have this problem?

I have the latest version of VM4 (original template) and again the same...
I am browsing the product list on the front page <<prev 1.2.3 next>> and can't go back to the top of the list.
I choose side 3 - link: /results,31-45?clearCart=0
I am going back to page 1 - link: /?clearCart=0
Nothing changes - I stay on page 3...
(Here the problem disappears when I turn off "friendly links")


It is similar with sorting products. For example - I choose sort by price.
LINK: /by,product_price?keyword=

Now I change the order from ASC to DESC and...
LINK: /by,ordering/dirDesc?keyword=

Sort by price disappears and changes to the default


Joomla 3.10
VM 4.0.2

hazael

In VM version 4.0.6 and the latest Joomla 3 release, the pagination problem still exists. It is not possible to go back to the top of the product list if Joomla has SEF enabled.

GJC Web Design

hi @ hazael

is this consistent? I have a client that reports this is intermittent ..  I have never seen it even on there site no matter how long I click pagination links  :-\
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hazael

#3
Hi,
Yes, it's true what your friend is talking about. Pagination links can change their values ​​in random cases. Occasionally, a category name from another source appears in the pagination address for some unknown reason.
It is also so that at the same place in the link parameters there is no category name or component name - for example, there is only a limitstart.

Pagination does't work if SEO is enabled and the product list is on the main page of the domain (home)

In file:  vmpagination.php in protected function _buildDataObject()

the variable $component returns an empty result
Some links in pagination do not return: '&limit ='. $this->limit'  - illogical paging results appear.

When you previously paged the results of the product list and clicked on the link in the menu to the category itself, it is impossible to go to the top of the list of this category.
The link in the main menu for product categories should contain the "limitstart=0" parameter.

Most likely, none of the testers pays attention to this. Unfortunately, pagination errors are very frustrating and have a huge impact on lowering the quality of your sales.