WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Woocommerce - Display multiple pages for one category (14 posts)

  1. servicewordpress
    Member
    Posted 1 year ago #

    How to display multiple products of one category, on multiple pages, using a navigation bar at the bottom:

    I would like to display 20 products per page of one category, but this category may have 60 products. So I would like to display the products in 3 pages for this category. example Page 1 - 2 - 3, with 20 products on each. Is it possible to do it?

    My site contains more than 500 products, I have more than 25 categories with multiple products for each. What is the best approach.

    Thank you!

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Are you saying your category pages are not showing a pagination nav for you to navigate from page to page?

  3. servicewordpress
    Member
    Posted 1 year ago #

    yes, that's it, thanks for reply :)

  4. Roy Ho
    Member
    Posted 1 year ago #

    HMmm by default it should show if you indeed have products to paginate. Try this and see what you get. Add this in your functions.php of your theme file.

    remove_action( 'woocommerce_pagination', 'woocommerce_pagination', 10 );
    add_action( 'woocommerce_pagination', 'woocommerce_pagination', 10);
    
    function woocommerce_pagination() {
    echo 'this is working';
    }
  5. servicewordpress
    Member
    Posted 1 year ago #

    This is working for the root page of the shop, but not in my sub-pages of the shop.

    Example:
    Shop --> CATEGORY PAGE X --> PAGE X:

    In this page, I add the shortcode :

    [product_category category="nameofmycategory" per_page="20" columns="4" orderby="date" order="desc"]

    I see the page, the products on it, but no pagination at the bottom.

    thanks,

  6. Roy Ho
    Member
    Posted 1 year ago #

    Instead of using shortcode, why not just let the page in your menu and see if the system can handle your pagination?

  7. servicewordpress
    Member
    Posted 1 year ago #

    it doesn't work, if i do not use shortcode, how does the page will know which category to display?

  8. Roy Ho
    Member
    Posted 1 year ago #

    Because you're using the menu system. Assuming you have a list of categories in your menu to let customers choose. Those categories are added via the menu settings and they do not require you to put shortcodes.

  9. servicewordpress
    Member
    Posted 1 year ago #

    ok it work if i use the widget product categories in the sidebar, but my site require to put those page in the main nav. and not in the sidebar, how can put it there? thanks :)

  10. Roy Ho
    Member
    Posted 1 year ago #

    It works just like any page/category in the menu...drag and drop the items you want. If you don't see the category, go to top right screen options and pull down the tab and then select all the items you want show.

  11. servicewordpress
    Member
    Posted 1 year ago #

    I didn't have a register sidebar in the header.. maybe it is why it doesn't work for category widget..? I use Woostore theme. I look further about how to replace the main menu for the sidebar header.

  12. Roy Ho
    Member
    Posted 1 year ago #

    ?? I was not talking about widgets...I am talking about Native WordPress Menu. It is in the appearance section.

  13. servicewordpress
    Member
    Posted 1 year ago #

    Yes It work! I had this menu before, but instead of using product categories, I used simple pages, that's why.. Now I clicked on "product categories" in the screen option tab (at top) and that's it. I have my nav bar in the bottom too:)

    Thank you very much! Great support :)

  14. servicewordpress
    Member
    Posted 1 year ago #

    .

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic