Pagination Problems Fixed
-
All,
Many of you will no doubt experience problems with this plugin’s Pagination features. First, it won’t scroll to the top of the page when a person advances to the next page of search results.
Secondly, if you are on page 3 of search results, and search for a new term or add a new filter, it will not reset back to page 1 of results. It starts new searches on page 3, which means you miss out on the first 3 pages of new results, and if there are fewer than 3 pages of results, you get shown that there are no results! The developer says they have no time to fix this type of critical bug because their developer is on another project, and offered us a refund instead of offering to schedule dev time, or give a quote or timeline estimate for fixing this bug. Because we are wanting to use this plugin for paid paying customers, this really isn’t an acceptable response.
While we appreciate their customer service being friendly, we have reported multiple bugs and questions, but their availability to work on critical fixes seems to be limited. Be aware that you will have to do much of your own bug fixes yourself unless Stylmix adds a developer resource, and increases paid support prices. While their customer service team is very nice, we hope you have a different experience rather than “Sorry, you’re on your own.”
Nevertheless, we still love the plugin and appreciate the great work that went into creating it. But, it is still unfinished, and you will have to finish it yourself unless something changes at Stylemix ??
Here are the fixes we had to apply:
1. Scroll to the top of page when advancing to a new page:
Add this inside clickCallback()
assets/js/frontend/stm-listing-pagination.js: Lines 13-14window.scrollTo(0, 0);
2. To fix search filters not resetting page number:
Add this inside change() method after buildAttribute() call
assets/js/frontend/stm-search-form-advanced.js: Lines 24-31this.buildAttribute(); this.$emit('resetpagination-update', this.url)
Add this to the methods:
assets/js/frontend/ulisting-inventory-list.js: Lines 156-167resetpagination_update(page) { this.page = 1; this.paginate.page = 1; },
Add resetpagination hook for the search listing call:
templates/listing-list/filter.php: Line 26-27data-v-on_location-update="location_update" data-v-on_resetpagination-update="resetpagination_update"
It took us a couple of days of trying to wrap our heads around this unfamiliar codebase and the Vue framework. I’m slow and had to debug this over FTP, but the fix was very easy in the end, but something the developer could do in less than 5 minutes of work if they had time.
Make sure to change your version number in ulisting.php for your changes to take effect.
Good luck.
- The topic ‘Pagination Problems Fixed’ is closed to new replies.