WordPress.org

Ready to get started?Download WordPress

Forums

woocommerce pagination (23 posts)

  1. vaticanwilliam
    Member
    Posted 2 years ago #

    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.

  2. Steve
    Member
    Posted 2 years ago #

    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.

  3. AnniJ90
    Member
    Posted 2 years ago #

    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 :)

  4. oktoberdots
    Member
    Posted 1 year ago #

    Now THAT's a usefull answer! Thanks very much AnniJ90! :D This was exactly what I was looking for! You're my hero ;)

  5. AnniJ90
    Member
    Posted 1 year ago #

    :) 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 :D

  6. fadingnostalgia
    Member
    Posted 1 year ago #

    Just wanted to add a thank you AnniJ90...because this saved me hours of work!!! :D

  7. hypnobliss
    Member
    Posted 1 year ago #

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

  8. domknight1
    Member
    Posted 1 year ago #

    Fantastic, thank you!

  9. jonathanribas
    Member
    Posted 1 year ago #

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

  10. csoul78
    Member
    Posted 1 year ago #

    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!

  11. angelostudios
    Member
    Posted 1 year ago #

    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.

  12. dhaines
    Member
    Posted 1 year ago #

    Hello,

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

  13. cathe831
    Member
    Posted 1 year ago #

    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.

  14. dianaavila
    Member
    Posted 1 year ago #

    AnniJ90 thanks for the answer!

  15. foodie12
    Member
    Posted 1 year ago #

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

  16. 0TriciaWeb
    Member
    Posted 1 year ago #

    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/

  17. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    @0TriciaWeb

    per forum rules, please start your own topic http://wordpress.org/support/plugin/woocommerce

  18. fjpalanco2
    Member
    Posted 1 year ago #

    And, what about categories page? I mean, could I put different number of categories shown per page than products per page?

    This subject is killing me! Please! Help! :D

  19. d8tabyte
    Member
    Posted 1 year ago #

    For those having this issue and the above options do not fix your issue, try removing each product individually from the categories, and then re-adding them.

  20. Kierew
    Member
    Posted 1 year ago #

    Thank you AnniJ90 :-)

  21. DominiB
    Member
    Posted 1 year ago #

    Thanks AnniJ90, you saved my bacon!

  22. sewadorablefabrics
    Member
    Posted 1 year ago #

    thanks AnniJ90, worked for me!

  23. kostisgrde
    Member
    Posted 1 year ago #

    By the way... Steve gave the same answer with Anni.
    "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)"

Topic Closed

This topic has been closed to new replies.

About this Topic