Hello Team,
Yesterday we found some bugs with the pagination.
1st – For example we take our category with software, which has 67 products. When you go to page 2 and then back to page 1, the address is changed to “software?page={page}” and the text next to the pagination is “Showing -14 to 0 of 67 (5 Pages)” which is not right.
2nd – On mobile phones the pagination is not showing properly. We would like to make it like on your forums.
You can see the attached images.
BR,
Stefan Pavlov
|
|
Another thing we noticed- Live search stopped working.
BR,
Stefan Pavlov
|
|
Hi Stefan,
1) We’ve tried to reproduce the described problem with pagination locally, but everything works fine. Can you try to disable BR SEO extension? Or any other extension that is involved in modifying system routes. In any case, we will need an up to date access to your website, so we can check.
2) Unfortunately you cannot change the logic behind pagination without heavily editing core files. Or you want something else that we cannot understand?
3) There is some problem in a OC system file that is changed from a third party mod.
https://themeburn.tinytake.com/sf/MTMzMDM3NV80OTA2MTI1
BR,
ThemeBurn team
|
|
Hi ThemeBurn,
We tried to disable SEO extension, but the problem still occurs.
Also, about the pagination, we understand that it cannot be modified to be like here on the forum with “…” ,so can you suggest us how to remove the first and last buttons which is for directly going to the last page, we dont actually need it. And it will be some solution for us.
BR,
Stefan Pavlov
-
This reply was modified 2629 days ago by Kanisco.
|
|
Hi Stefan,
1) We’ve made some test on your website and it seems that pagination first page url is still broken on default theme too. This means the problem should not be theme related.
2) Hiding first and last link of pagination is an easy job. You will need this extra CSS:
.pagination li:first-child:not(.active),
.pagination li:last-child:not(.active)
{
display: none;
}
BR,
ThemeBurn team
|
|
Hello team,
Thank you for the CSS code. We applied it.
As for the pagination – we fixed the page={page} and the whole problem by replacing the code in the pagination.php file with a code from the same file from this location:
https://github.com/eka7a/opencart/blob/86de3866f572bc0f5d2ad193148fdd9890a9da1c/upload/system/library/pagination.php
Maybe it could help someone in the future.
Hope that you can help us with our other issues.
BR,
Stefan Pavlov
|
|
Hi Stefan,
Thanks for sharing the fix for the pagination problem!
BR,
ThemeBurn team
|
|