VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Midway Store on March 27, 2023, 12:16:56 PM

Title: Pagination is not working good
Post by: Midway Store on March 27, 2023, 12:16:56 PM
Hello,

Who can help me?

Pagination is not working good. Can't go back to page 1.

Joomla! 4.2.9 Stable
VirtueMart 4.0.12
PHP 8.2.0
Title: Re: Pagination is not working good
Post by: Midway Store on March 29, 2023, 18:18:08 PM
Is there nobody who has a solution?

https://smaakpaleis.com/aroma-s





Title: Re: Pagination is not working good
Post by: pinochico on March 29, 2023, 21:26:13 PM
QuoteCan't go back to page 1.

Sorry, wrong analyze, you are in page 1.
Look at inside code.

But:
1. class active is on link for page two (there is no link) - error

<li class="active hidden-xs"><a>2</a></li>
<a>2</a>
<li class="active hidden-xs"><a>2</a></li>

2. Info about Site - Pagina 2 van 5 - is wrong - error

Pagination created template VP Smart - you have to ask his support.
I think, if you change template to default, pagination will be ok.

Title: Re: Pagination is not working good
Post by: Jumbo! on March 30, 2023, 10:33:48 AM
The problem is with the pagination URL but not with the styling. The active page does not need to have a link.

The problem has nothing to do with any template, and you can reproduce it even using the default Joomla template, which remains in VM 4.0.14. First, navigate to page number 2 or 3 or more, then try returning to page 1.
Title: Re: Pagination is not working good
Post by: pinochico on March 30, 2023, 10:55:58 AM
oh yes, jumbo, you are right, active link is right marked and without link.
hmm, if is not problem template then must be problem with core VM or Joomla
Title: Re: Pagination is not working good
Post by: Midway Store on March 31, 2023, 00:06:55 AM
Hello Pinochico,

How do I get this to work properly?  :)
Title: Re: Pagination is not working good
Post by: sagaranvekar on April 06, 2023, 16:40:38 PM
I had this issue on couple of websites which I migrated from J3-VM3 to J4-VM4.
I found quickest solution for it. I used following scroll plugin
https://extensions.joomla.org/extension/magic-scroller-for-virtuemart/
As it keeps on loading results on same page, there is no need of clicking on page 1. I used this plugin in the past, so I got in touch with dev and he provided me J4-VM4 compatible version of it. He didn't update description on JED but as I am using it on couple of website, I can confirm that it works well.
Title: Re: Pagination is not working good
Post by: GJC Web Design on April 07, 2023, 12:29:49 PM
also I think the pagination issue if not solved completely is better handled in VirtueMart 4.0.16 10812