WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. zkingdesign
    Member
    Posted 7 months ago #

    Greetings!
    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.

    http://wordpress.org/plugins/yith-woocommerce-ajax-navigation/

  2. cras6
    Member
    Posted 6 months ago #

    Hi

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

    Thanks

  3. raisonon
    Member
    Posted 6 months 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
    Member
    Posted 6 months ago #

    Hi

    @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
    Member
    Posted 6 months 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
    Member
    Posted 6 months 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"};
    /* ]]> */
    </script>

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.