• Resolved mdabrowski78

    (@mdabrowski78)


    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-14

    window.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-31

            this.buildAttribute();
    	this.$emit('resetpagination-update', this.url)

    Add this to the methods:
    assets/js/frontend/ulisting-inventory-list.js: Lines 156-167

            resetpagination_update(page) {
                this.page = 1;
                this.paginate.page = 1;
            },

    Add resetpagination hook for the search listing call:
    templates/listing-list/filter.php: Line 26-27

    	data-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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support EricStylemixThemes

    (@ericstylemixthemes)

    Hello @mdabrowski78

    Thank you for reaching out and for your work!

    We appreciate the valuable information you provide. This fix has been sent to the developers’ team for further review. If they approve and successfully tested by the QA department the fix will be included in one of the coming updates.

    Kind regards

    Adding another fix here, for a separate pagination issue: When you perform a search and are taken to the results page, clicking page 2 and onward discards the search query args.

    This was previously reported in the following thread, point number 1: https://www.ads-software.com/support/topic/pagination-error-when-starting-a-search-from-basic-form-type/

    A fix for this bug:

    – Open the “ulisting/assets/js/frontend/ulisting-inventory-list.js” file and go to line 162.

    – Change:

    this.url = updateQueryStringParameter(this.url, 'current_page', this.paginate.page);

    to:

    this.url = updateQueryStringParameter(window.location.search, 'current_page', this.paginate.page);

    • This reply was modified 2 years, 6 months ago by ancientro.
    Plugin Support mgordonStylemixThemes

    (@mgordon7)

    Hello @ancientro,

    Thank you for the provided feedback, we do appreciate your kind diligence!

    This code that you have included here has been sent to the developers’ team for further review. If they approve and are successfully tested by the QA department the fix will be included in one of the coming future updates of the plugin.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination Problems Fixed’ is closed to new replies.