Support » Plugins and Hacks » woocommerce pagination

  • We are using the woocommerce plugin for our site, but there is an issue with the thumbnails of products not all showing up on the store page. Instead, there is a pagination on the bottom of the page with “Next” to the next bunch of items. I would like to temporarily remove the pagination and have all the product images displayed on one page. Can anyone point me in the right direction?

    Appreciated.

Viewing 15 replies - 1 through 15 (of 22 total)
  • I can’t remember why this happens. I think its because wordpress posts per page is set to X in your settings so woocommerce follows that setup (only showing X number of products)

    Anyway to fix it open your functions.php file and insert:

    //NUMBER OF PRODICTS TO DISPLAY ON SHOP PAGE
    add_filter('loop_shop_per_page', create_function('$cols', 'return 4;'));

    This will add four products to the shop page and will have pagination at the bottom. Change the “4” to the number of products you would like to display on the page. i.e If you have 20 products and would like to display them all on the page return 20;
    By displaying all your products the pagination will be removed.

    Hope this helps.

    I dont know, whether or not you managed to solve this problem or not. But I also had the same problem, but I solved it another way, without changing the code.

    I did it this way:
    1. go to settings on the left and choose reading.
    2. Then you should changes the number af “blog pages shown at most” to the desirret number of posts. Which in this case is equal to the number of produkts, you want to be displayed.

    Hops it helps 🙂

    Now THAT’s a usefull answer! Thanks very much AnniJ90! 😀 This was exactly what I was looking for! You’re my hero 😉

    🙂 Your welcome, I am glad it could help you.
    Glad to know it helps others :D.
    And thanks for your reply, it made me smile 😀

    Just wanted to add a thank you AnniJ90…because this saved me hours of work!!! 😀

    What a simple solution!!
    Thanks AnniJ90! You’ve saved me from delving into code!!

    Fantastic, thank you!

    AnniJ90 Thanks for the information, i posted it in my blog: Show all products woocommerce

    Hello,

    Thank you to the above commentators for providing a solution on woocommerce pagination, but I followed the steps as instructed (settings…reading…blog), and I’m still seeing more products on a given catalog page than what I want. By the way, I’m using Mystiles theme if that helps.

    Thanks!

    I’m having the same issues. I’ve tried both adding the PHP snippet, and increasing the posts under Reading. I still only get 5 products per page on the shop and category pages.

    Hello,

    Really like the WooCommerce plug in, but having a problem showing product pictures on the “shop” pages. Any advice would be greatly appreciated.

    THANK YOU FOR THIS ANSWER! You cannot imagine how long I have tried to find what I had done to cause one item per page!!! What a simple answer.

    dianaavila

    (@dianaavila)

    AnniJ90 thanks for the answer!

    Thanks AnniJ90! I was about to mess with some code and now I don’t need to!

    I am having this same issue, but neither of the solutions are working for me. Here is a link to my shop page. http://a-plusembroidery.com/shop/

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘woocommerce pagination’ is closed to new replies.