YITH WooCommerce Ajax Product Filter
[resolved] Pagination bug (6 posts)

  1. zkingdesign
    Posted 2 years ago #

    First of all I'd wish to thank you for this awesome plugin, but I have an issue with it. I've added all necessary filters, configured everything but the issue is that the pagination isn't updating when I start filtering the products, so if I have only one item it still shows me 2 items in the pagination area (see screenshot: http://i.imgur.com/b7LrmBV.png).

    Looking forward to your response.


  2. cras6
    Posted 2 years ago #


    We are having a very similar issue. did you ever figure out how to solve it?


  3. Elliot Taylor
    Posted 2 years ago #

    Hi, Had this problem. Try removing the themes pagination (in my case WooThemes Canvas) and adding the WooCommerce pagination.

    Code here: https://gist.github.com/raisonon/6771672

  4. zkingdesign
    Posted 2 years ago #


    @raisonon I've tried your solution, added your gist code to functions php,installed wp-pagenavi, now I have 2 navigations (this isn't a problem I can get rid of the old one), but the issue is that neither one of them is updating upon clicking on the plugins filters.

  5. cras6
    Posted 2 years ago #

    I actually figured out why it wasn't working for me. I was actually using the Ajax product finder plugin- and the issue was the the pagination area was not refreshing after the ajax call. In the documentation it provided an ajax callback where it would target the pagination element and refresh. We included that script in the header - and it started working. Although not quite the same plugin - perhaps it will help shed some light for you.

  6. zkingdesign
    Posted 2 years ago #

    After having a bit of time, I figured out what the issue was

    <script type='text/javascript'>
    /* <![CDATA[ */
    var yith_wcan = {"container":".products","pagination":".pagination","result_count":".woocommerce-result-count"};
    /* ]]> */

    Add this in your footer.php, the issue in my case was that I didn't use the correct class for my pagination, but with the code above you can declare any class and you'd be good to go.

    Anyway thanks guys for the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.